GGUI::PaintStyle struct

The resolved appearance of a style class. Layout props are not here; they are the builder's.

Public variables

GGColor Fill
box background; progress track. Clear = none
GGColor Border
drawn if BorderWidth != 0
GGColor Text
text and button labels
GGColor Accent
progress fill; slider track up to the thumb; a toggle that is on
GGColor Knob
slider thumb; toggle knob
GGColor Trail
a progress bar's trailing fill. Clear = the accent at half strength
float Radius
UI units.
float BorderWidth
UI units.
GGColor FillTo
gradient end colour (with bGradient)
float FillAngle
gradient direction, degrees clockwise from left-to-right; 90 = top to bottom
bool bGradient
Fill is a gradient to FillTo.
GGColor Outline
drawn outside the box, OutlineWidth wide; shows focus without shifting layout
float OutlineWidth
UI units.
GGColor Shadow
drawn under the box, offset by (ShadowX, ShadowY), blurred over ShadowBlur
float ShadowBlur
UI units.
float ShadowX
UI units.
float ShadowY
UI units.
GGColor TextOutline
drawn around each glyph, TextOutlineWidth out, for text over the scene
float TextOutlineWidth
UI units.
GGColor TextShadow
a copy of the glyphs under them, offset by (TextShadowX, TextShadowY)
float TextShadowX
UI units.
float TextShadowY
UI units.
float TextShadowBlur
UI units; 0 = a sharp copy.
bool bTextSet
Text was set explicitly, not just defaulted.
uint64_t Font
hash of the font name; 0 = not set
float FontSize
UI units; 0 = not set.
GGEdges Padding
used where the builder set none
float Gap
used where the builder set none
float MinWidth
used where the builder set none
float MinHeight
used where the builder set none
GGSize Width
used where the builder left the size to the content
GGSize Height
used where the builder left the size to the content
GGAlign Align
cross-axis alignment of children
GGAlign Justify
main-axis alignment of children
uint8_t Spacing
StyledSpace bits: which of these a rule set.
float TransitionSeconds
by GGStyleProperty bit; 0 = instant
GGEase TransitionEase
by GGStyleProperty bit