Gooey GUI Library
Loading...
Searching...
No Matches
gooey_dropdown.h
Go to the documentation of this file.
1
#ifndef GOOEY_DROPDOWN_H
2
#define GOOEY_DROPDOWN_H
3
4
#include "core/gooey_backend_internal.h"
5
#include "gooey_widgets_internal.h"
6
20
GooeyDropdown *
GooeyDropdown_Add
(GooeyWindow *win,
int
x,
int
y,
int
width,
21
int
height,
const
char
**options,
22
int
num_options,
23
void
(*callback)(
int
selected_index));
24
33
bool
GooeyDropdown_HandleClick
(GooeyWindow *win,
int
x,
int
y);
39
void
GooeyDropdown_Draw
(GooeyWindow *win);
40
41
42
43
#endif
GooeyDropdown_HandleClick
bool GooeyDropdown_HandleClick(GooeyWindow *win, int x, int y)
Handles dropdown menu click events.
GooeyDropdown_Add
GooeyDropdown * GooeyDropdown_Add(GooeyWindow *win, int x, int y, int width, int height, const char **options, int num_options, void(*callback)(int selected_index))
Adds a dropdown menu to the window.
GooeyDropdown_Draw
void GooeyDropdown_Draw(GooeyWindow *win)
Draws the drop down menu on the window.
include
widgets
gooey_dropdown.h
Generated by
1.9.8