GGStyle struct
#include <GGUI/Public/Paint.h>
A rule's properties. Only the ones it sets apply (see UIStyle.h).
Public variables
- GGStyleValue<GGColor> Fill
- fill (or background)
- GGStyleValue<GGColor> Border
- border colour
- GGStyleValue<GGColor> Text
- color: text, inherited
- GGStyleValue<GGColor> Accent
- accent
- GGStyleValue<GGColor> Knob
- knob
- GGStyleValue<GGColor> Trail
- a progress bar's trailing fill
- GGStyleValue<float> Radius
- radius
- GGStyleValue<float> BorderWidth
- GGStyleValue<GGColor> FillTo
- With FillTo, the fill is a gradient from Fill to FillTo along FillAngle (degrees clockwise from left-to-right; default top to bottom).
- GGStyleValue<float> FillAngle
- see FillTo
- GGStyleValue<GGColor> Outline
- outline colour
- GGStyleValue<float> OutlineWidth
- outline-width
- GGStyleValue<GGColor> Shadow
- shadow colour
- GGStyleValue<float> ShadowBlur
- shadow blur
- GGStyleValue<float> ShadowX
- shadow offset
- GGStyleValue<float> ShadowY
- shadow offset
- GGStyleValue<GGColor> TextOutline
- text-outline: width and colour, around each glyph
- GGStyleValue<float> TextOutlineWidth
- see TextOutline
- GGStyleValue<GGColor> TextShadow
- text-shadow: offset and colour, under the glyphs
- GGStyleValue<float> TextShadowX
- see TextShadow
- GGStyleValue<float> TextShadowY
- see TextShadow
- GGStyleValue<float> TextShadowBlur
- see TextShadow
- GGStyleValue<GGFont> Font
- font, inherited
- GGStyleValue<float> FontSize
- font-size, inherited
- GGStyleValue<GGEdges> Padding
- four sides; a numeric token applies to all
- GGStyleValue<float> Gap
- gap
- GGStyleValue<float> MinWidth
- min-width
- GGStyleValue<float> MinHeight
- min-height
- GGStyleValue<GGSize> Width
- number, Grow, percent; a numeric token is a fixed size
- GGStyleValue<GGSize> Height
- as Width
- GGStyleValue<GGAlign> Align
- align
- GGStyleValue<GGAlign> Justify
- GGTransitions Transition
- Transition durations for paint properties when state or class changes (GGTransitions). Spacing and fonts never transition.
Variable documentation
GGStyleValue<float> GGUI:: GGStyle:: BorderWidth
border-width
GGStyleValue<GGColor> GGUI:: GGStyle:: FillTo
With FillTo, the fill is a gradient from Fill to FillTo along FillAngle (degrees clockwise from left-to-right; default top to bottom).
A later rule that sets Fill without FillTo makes it solid again.
GGStyleValue<GGAlign> GGUI:: GGStyle:: Justify
justify