Gama C Library
Gama C API Documentation
gmwSwitchTheme Struct Reference

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

Detailed Description

Structure defining the visual theme for a switch widget.

Field Documentation

◆ [struct]

struct { ... } gmwSwitchTheme::active

Theme properties when the switch is active (mouse button down on it).

◆ background

gmColor gmwSwitchTheme::background

Background color when the switch is off.

Background color when the switch is on.

◆ border

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.

◆ border_width

double gmwSwitchTheme::border_width

Width of the switch's outer border.

◆ enabled

int gmwSwitchTheme::enabled

Whether the switch is enabled for interaction (1) or disabled (0).

◆ [struct]

struct { ... } gmwSwitchTheme::focussed

Theme properties when the switch is focused or hovered.

◆ knob

gmColor gmwSwitchTheme::knob

Knob color when the switch is off.

Knob color when the switch is on.

◆ knob_border

gmColor gmwSwitchTheme::knob_border

Knob border color when the switch is off.

Knob border color when the switch is on.

◆ [struct]

struct { ... } gmwSwitchTheme::off

Theme properties for the 'off' state of the switch.

◆ [struct]

struct { ... } gmwSwitchTheme::on

Theme properties for the 'on' state of the switch.

◆ scale

double gmwSwitchTheme::scale

Default overall widget scale when normal.

Scale factor when focused/hovered.

Scale factor when active (being clicked).


The documentation for this struct was generated from the following file: