Gooey GUI Library
Loading...
Searching...
No Matches
gooey_button.h
Go to the documentation of this file.
1
10#ifndef GOOEY_BUTTON_H
11#define GOOEY_BUTTON_H
12
13#include "common/gooey_common.h"
14#include <stdbool.h>
15
30GooeyButton *GooeyButton_Create(const char *label, int x, int y,
31 int width, int height, void (*callback)());
32
33
42void GooeyButton_SetText(GooeyButton *button, const char *text);
43
44
54void GooeyButton_SetHighlight(GooeyButton *button, bool is_highlighted);
55
56#endif
void GooeyButton_SetText(GooeyButton *button, const char *text)
Sets the text of the button.
GooeyButton * GooeyButton_Create(const char *label, int x, int y, int width, int height, void(*callback)())
Adds a button to the window.
void GooeyButton_SetHighlight(GooeyButton *button, bool is_highlighted)
Highlights or unhighlights a button.