Gooey GUI Library
Loading...
Searching...
No Matches
gooey_menu.h
Go to the documentation of this file.
1#ifndef GOOEY_MENU_H
2#define GOOEY_MENU_H
3
4#include "core/gooey_backend_internal.h"
5#include "gooey_widgets_internal.h"
6
15GooeyMenu *GooeyMenu_Set(GooeyWindow *win);
16
24GooeyMenuChild *GooeyMenu_AddChild(GooeyWindow *win, char *title);
25
33void GooeyMenu_HandleClick(GooeyWindow *win, int x, int y);
34
42void GooeyMenuChild_AddElement(GooeyMenuChild *child, char *title, void (*callback)());
43
44
45void GooeyMenu_Draw(GooeyWindow *win);
46
47
48#endif
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 a menu item to a menu child.
void GooeyMenu_HandleClick(GooeyWindow *win, int x, int y)
Handles menu item click events.
GooeyMenu * GooeyMenu_Set(GooeyWindow *win)
Sets the menu for the Gooey window.
void GooeyMenu_Draw(GooeyWindow *win)