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
30
GooeyButton *
GooeyButton_Create
(
const
char
*label,
int
x,
int
y,
31
int
width,
int
height,
void
(*callback)());
32
33
42
void
GooeyButton_SetText
(GooeyButton *button,
const
char
*text);
43
44
54
void
GooeyButton_SetHighlight
(GooeyButton *button,
bool
is_highlighted);
55
56
#endif
GooeyButton_SetText
void GooeyButton_SetText(GooeyButton *button, const char *text)
Sets the text of the button.
GooeyButton_Create
GooeyButton * GooeyButton_Create(const char *label, int x, int y, int width, int height, void(*callback)())
Adds a button to the window.
GooeyButton_SetHighlight
void GooeyButton_SetHighlight(GooeyButton *button, bool is_highlighted)
Highlights or unhighlights a button.
include
widgets
gooey_button.h
Generated by
1.9.8