|
Gama C Library
Gama C API Documentation
|
Structure defining the visual theme for a switch widget. More...
#include <switch.h>
Data Fields | |
| int | enabled |
| double | scale |
| struct { | |
| gmColor background | |
| gmColor border | |
| gmColor knob | |
| gmColor knob_border | |
| } | off |
| struct { | |
| gmColor background | |
| gmColor border | |
| gmColor knob | |
| gmColor knob_border | |
| } | on |
| struct { | |
| double scale | |
| gmColor border | |
| } | focussed |
| struct { | |
| double scale | |
| gmColor border | |
| } | active |
| double | border_width |
Structure defining the visual theme for a switch widget.
| struct { ... } gmwSwitchTheme::active |
Theme properties when the switch is active (mouse button down on it).
| gmColor gmwSwitchTheme::background |
Background color when the switch is off.
Background color when the switch is on.
| gmColor gmwSwitchTheme::border |
Border color when the switch is off.
Border color when the switch is on.
Border color when focused/hovered.
Border color when active.
| double gmwSwitchTheme::border_width |
Width of the switch's outer border.
| int gmwSwitchTheme::enabled |
Whether the switch is enabled for interaction (1) or disabled (0).
| struct { ... } gmwSwitchTheme::focussed |
Theme properties when the switch is focused or hovered.
| gmColor gmwSwitchTheme::knob |
Knob color when the switch is off.
Knob color when the switch is on.
| gmColor gmwSwitchTheme::knob_border |
Knob border color when the switch is off.
Knob border color when the switch is on.
| struct { ... } gmwSwitchTheme::off |
Theme properties for the 'off' state of the switch.
| struct { ... } gmwSwitchTheme::on |
Theme properties for the 'on' state of the switch.
| double gmwSwitchTheme::scale |
Default overall widget scale when normal.
Scale factor when focused/hovered.
Scale factor when active (being clicked).