Gooey GUI Library
Loading...
Searching...
No Matches
gooey_menu.h
Go to the documentation of this file.
1
11#ifndef GOOEY_MENU_H
12#define GOOEY_MENU_H
13
14#include "common/gooey_common.h"
15
24GooeyMenu *GooeyMenu_Set(GooeyWindow *win);
25
35GooeyMenuChild *GooeyMenu_AddChild(GooeyWindow *win, char *title);
36
44void GooeyMenuChild_AddElement(GooeyMenuChild *child, char *title, void (*callback)());
45
46
47#endif // GOOEY_MENU_H
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.
GooeyMenu * GooeyMenu_Set(GooeyWindow *win)
Sets the menu for the specified Gooey window.