Gooey GUI Library
|
Header file for the Gooey menu system. More...
#include "common/gooey_common.h"
Go to the source code of this file.
Functions | |
GooeyMenu * | GooeyMenu_Set (GooeyWindow *win) |
Sets the menu for the specified Gooey window. | |
GooeyMenuChild * | GooeyMenu_AddChild (GooeyWindow *win, char *title) |
Adds a child menu item to the window's menu. | |
void | GooeyMenuChild_AddElement (GooeyMenuChild *child, char *title, void(*callback)()) |
Adds an element (option) to a menu child. | |
Header file for the Gooey menu system.
Provides functions to create and manage menus and menu items within a Gooey window.
GooeyMenuChild * GooeyMenu_AddChild | ( | GooeyWindow * | win, |
char * | title | ||
) |
Adds a child menu item to the window's menu.
Creates a submenu or a category inside the main menu.
win | The window to which the menu child will be added. |
title | The title of the menu child. |
GooeyMenu * GooeyMenu_Set | ( | GooeyWindow * | win | ) |
Sets the menu for the specified Gooey window.
Initializes and attaches a menu to the given window.
win | The window to set the menu for. |
void GooeyMenuChild_AddElement | ( | GooeyMenuChild * | child, |
char * | title, | ||
void(*)() | callback | ||
) |
Adds an element (option) to a menu child.
child | The menu child to which the item will be added. |
title | The title of the menu item. |
callback | The function to be called when the menu item is selected. |