Skip to content
AnrDaemon edited this page Feb 20, 2015 · 2 revisions

A Window state. All Windows have a base state, and generally some additional states. Additional Window states define a deviation of the base state settings. Means, you don't need to specify all possiblу parameters, in majority of cases an alternate state will inherit [most of] base state settings.

Brushes

All states have the following 4 brushes:

(stateName): Used to render the state background.
(stateName)Outline: Used to render the state outline.
(stateName)Font: Used to render the font.
(stateName)FontStroke: Used to render the front stroke.

Background

Settings that modify the window background.

CornerRadiusX

Float. The X radius to draw corners with.
Default Value: 0

CornerRadiusY

Float. The Y radius to draw corners with.
Default Value: 0

Outline

Settings that modify the background outline.

OutlineWidth

Float. The width of the background outline.
Default Value: 0

Text

Settings related to text rendering.

Font

String. The font to use.
Default Value: Arial

FontSize

Float. The font size.
Default Value: 12

FontStretch

Enumeration. How stretched out the font is, possible values: Ultra Condensed, Extra Condensed, Condensed, Semi Condensed, Normal, Medium, Semi Expanded, Expanded, Extra Expanded, Ultra Expanded.
Default Value: Normal

FontStyle

Enumeration. The font style, possible values: Normal, Oblique, Italic.
Default Value: Normal

FontWeight

Enumeration. The weight of the font, possible values: Thin, Extra Light, Ultra Light, Light, Semi Light, Normal, Regular, Medium, Semi Bold, Bold, Extra Bold, Ultra Bold, Black, Heavy, Extra Black, Ultra Black.
Default Value: Normal

ReadingDirection

Enumeration. The direction in which reading progresses, possible values: LeftToRight, RightToLeft.
Default Value: LeftToRight

TextAlign

Enumeration. The horizontal alignment of the text, possible values: Left, Center, Right.
Default Value: Left

TextOffset

Rectangle. The offset of the text rectangle from the Window edges.
Default Value: 0 0 0 0

TextRotation

Float. Text rotation, in degrees.
Default Value: 0

TextTrimmingGranularity

Enumeration. When text needs to be cut of due to size constraints, how much to cut off. Possible values: None, Character, Word.
Default Value: Word

TextVerticalAlign

Enumeration. The vertical alignment of the text. Possible values: Top, Middle, Bottom.
Default Value: Top

WordWrapping

Enumeration. Defines how to wrap text when necessary. Possible values: Wrap, NoWrap. Default Value: NoWrap

FontStroke

Settings that modify the font stroke.

FontStrokeWidth

Float. The width of the font stroke.
Default Value: 0