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
20GooeyDropdown *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
33bool GooeyDropdown_HandleClick(GooeyWindow *win, int x, int y);
39void GooeyDropdown_Draw(GooeyWindow *win);
40
41
42
43#endif
bool GooeyDropdown_HandleClick(GooeyWindow *win, int x, int y)
Handles dropdown menu click events.
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.
void GooeyDropdown_Draw(GooeyWindow *win)
Draws the drop down menu on the window.