|
Gama C Library
Gama C API Documentation
|
Defines the theme and functionality for a button widget. More...
Go to the source code of this file.
Data Structures | |
| struct | gmwButtonTheme |
| Structure defining the visual theme for a button widget. More... | |
Functions | |
| int | gmw_button (double x, double y, double width, double height, const char *text, double fontsize) |
| Creates and renders an interactive button widget. | |
Variables | |
| gmwButtonTheme | gmwButton |
| Global button theme instance with default values. | |
Defines the theme and functionality for a button widget.
This file provides structures for customizing the appearance of buttons and a function to render an interactive button that responds to mouse input.
| int gmw_button | ( | double | x, |
| double | y, | ||
| double | width, | ||
| double | height, | ||
| const char * | text, | ||
| double | fontsize ) |
Creates and renders an interactive button widget.
This function draws a button at the specified coordinates and handles its interactive states (normal, hovered, active, disabled) based on mouse input and the global gmwButton theme.
| 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. |
| gmwButtonTheme gmwButton |
Global button theme instance with default values.