Gama C Library
Gama C API Documentation
Loading...
Searching...
No Matches
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

◆ background

gmColor gmwSwitchTheme::background

Background color when switched off

Background color when switched on

◆ border

gmColor gmwSwitchTheme::border

Border color when switched off

Border color when switched on

Border color when focused/hovered

Border color when active pressed

◆ border_width

double gmwSwitchTheme::border_width

Width of the switch border

◆ enabled

int gmwSwitchTheme::enabled

Whether the switch is enabled

◆ [struct]

struct { ... } gmwSwitchTheme::focussed

◆ knob

gmColor gmwSwitchTheme::knob

Knob color when switched off

Knob color when switched on

◆ knob_border

gmColor gmwSwitchTheme::knob_border

Knob border color when switched off

Knob border color when switched on

◆ [struct]

struct { ... } gmwSwitchTheme::off

◆ [struct]

struct { ... } gmwSwitchTheme::on

◆ scale

double gmwSwitchTheme::scale

Default scale of the switch

Scale factor when focused/hovered

Scale factor when active pressed


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