Gama C Library
Gama C API Documentation
gmwButtonTheme Struct Reference

Structure defining the visual theme for a button widget. More...

#include <button.h>

Data Fields

int enabled
double scale
gmColor background
gmColor border
gmColor text
struct { 
   gmColor   background 
   gmColor   border 
   double   scale 
   gmColor   text 
focussed
struct { 
   gmColor   background 
   gmColor   border 
   double   scale 
   gmColor   text 
active
struct { 
   gmColor   background 
   gmColor   border 
   gmColor   text 
disabled
double border_thickness
const char * font

Detailed Description

Structure defining the visual theme for a button widget.

Field Documentation

◆ [struct]

struct { ... } gmwButtonTheme::active

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

◆ background

gmColor gmwButtonTheme::background

Background color when normal.

Background color when focused/hovered.

Background color when active/pressed.

Background color when disabled.

◆ border

gmColor gmwButtonTheme::border

Border color when normal.

Border color when focused/hovered.

Border color when active/pressed.

Border color when disabled.

◆ border_thickness

double gmwButtonTheme::border_thickness

Thickness of the button border.

◆ [struct]

struct { ... } gmwButtonTheme::disabled

Theme properties when the button is disabled.

◆ enabled

int gmwButtonTheme::enabled

Whether the button is interactive (1) or disabled (0).

◆ [struct]

struct { ... } gmwButtonTheme::focussed

Theme properties when the button is focused or hovered.

◆ font

const char* gmwButtonTheme::font

Font used for button text.

◆ scale

double gmwButtonTheme::scale

Default scale of the button.

Scale when focused/hovered.

Scale when active/pressed.

◆ text

gmColor gmwButtonTheme::text

Text color when normal.

Text color when focused/hovered.

Text color when active/pressed.

Text color when disabled.


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