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
15
GooeyMenu *
GooeyMenu_Set
(GooeyWindow *win);
16
24
GooeyMenuChild *
GooeyMenu_AddChild
(GooeyWindow *win,
char
*title);
25
33
void
GooeyMenu_HandleClick
(GooeyWindow *win,
int
x,
int
y);
34
42
void
GooeyMenuChild_AddElement
(GooeyMenuChild *child,
char
*title,
void
(*callback)());
43
44
45
void
GooeyMenu_Draw
(GooeyWindow *win);
46
47
48
#endif
GooeyMenu_AddChild
GooeyMenuChild * GooeyMenu_AddChild(GooeyWindow *win, char *title)
Adds a child menu item to the window's menu.
GooeyMenuChild_AddElement
void GooeyMenuChild_AddElement(GooeyMenuChild *child, char *title, void(*callback)())
Adds a menu item to a menu child.
GooeyMenu_HandleClick
void GooeyMenu_HandleClick(GooeyWindow *win, int x, int y)
Handles menu item click events.
GooeyMenu_Set
GooeyMenu * GooeyMenu_Set(GooeyWindow *win)
Sets the menu for the Gooey window.
GooeyMenu_Draw
void GooeyMenu_Draw(GooeyWindow *win)
include
widgets
gooey_menu.h
Generated by
1.9.8