|
Gama C Library
Gama C API Documentation
|
Defines the theme and functionality for a scale (slider) widget. More...
Go to the source code of this file.
Data Structures | |
| struct | gmwScaleTheme |
| Structure defining the visual theme for a scale (slider) widget. More... | |
Functions | |
| int | gmw_scale_anim (double x, double y, double width, double height, double *value, double *anim) |
| Creates and renders an animated scale (slider) widget that can be manipulated with the mouse. | |
Variables | |
| gmwScaleTheme | gmwScale |
| Global scale theme instance with default values. | |
Defines the theme and functionality for a scale (slider) widget.
This file provides structures for customizing the appearance of a slider control and a function to render an interactive slider that allows users to select a value within a range.
| int gmw_scale_anim | ( | double | x, |
| double | y, | ||
| double | width, | ||
| double | height, | ||
| double * | value, | ||
| double * | anim ) |
Creates and renders an animated scale (slider) widget that can be manipulated with the mouse.
This function draws a slider, tracks mouse interaction to update its value, and animates the knob's position.
| x | The x-coordinate of the scale's center. |
| y | The y-coordinate of the scale's center. |
| width | The width of the scale track. |
| height | The height of the scale track. |
| value | Pointer to a double to store the current scale value (0.0 to 1.0). This value is updated by user interaction. |
| anim | Pointer to a double for the animated visual position of the knob. If NULL, value is used for the knob's position (non-animated). |
| gmwScaleTheme gmwScale |
Global scale theme instance with default values.