diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-06 23:46:59 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-07 02:37:25 +0200 |
| commit | 251bd41c4499521baa2c810155f85a7fcb528116 (patch) | |
| tree | b7abb43109eb85369cec0c804de17507eca3f5b4 /src/gui/privinc | |
| parent | a0363cef8578c098de48e8863db98a35750fbaac (diff) | |
| download | rts-251bd41c4499521baa2c810155f85a7fcb528116.tar.gz | |
Allow multiple button types
Diffstat (limited to 'src/gui/privinc')
| -rw-r--r-- | src/gui/privinc/gui_button_private.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gui/privinc/gui_button_private.h b/src/gui/privinc/gui_button_private.h new file mode 100644 index 0000000..7c2f897 --- /dev/null +++ b/src/gui/privinc/gui_button_private.h @@ -0,0 +1,22 @@ +#ifndef GUI_BUTTON_PRIVATE_H +#define GUI_BUTTON_PRIVATE_H + +#include <gui/button.h> + +#ifdef __cplusplus +extern "C" +{ +#endif + +void gui_button_init_type1(struct gui_button *b); +void gui_button_init_sprite(struct gui_button *b); +int gui_button_render_type1(const struct gui_button *b); +int gui_button_render_sprite(const struct gui_button *b); +void gui_button_get_dim_type1(const struct gui_button *b, short *w, short *h); +void gui_button_get_dim_sprite(const struct gui_button *b, short *w, short *h); + +#ifdef __cplusplus +} +#endif + +#endif /* GUI_BUTTON_PRIVATE_H */ |
