#include "../collision.h"
#include "../draw.h"
Go to the source code of this file.
|
| int | gmw_button (double x, double y, double width, double height, const char *text, double fontsize) |
| | Creates and renders an interactive button widget.
|
◆ gmw_button()
| int gmw_button |
( |
double | x, |
|
|
double | y, |
|
|
double | width, |
|
|
double | height, |
|
|
const char * | text, |
|
|
double | fontsize ) |
Creates and renders an interactive button widget.
- Parameters
-
| x | The x-coordinate of the button's center. |
| y | The y-coordinate of the button's center. |
| width | The width of the button. |
| height | The height of the button. |
| text | The text to display on the button (can be NULL). |
| fontsize | The size of the text font. |
- Returns
- 1 if the button is currently hovered, 0 otherwise.
◆ gmwButton
Global button theme instance with default values.