Style

style properties

class Style {}

Constructors

this
this(Theme theme, string id)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

createState
Style createState(uint stateMask, uint stateValue)

create state substyle for this style

createSubstyle
Style createSubstyle(string id)

create named substyle of this style

forState
const(Style) forState(uint state)

find substyle based on widget state (e.g. focused, pressed, ...)

setCustomDrawable
Style setCustomDrawable(string id, string resourceId)

sets custom drawable attribute for style

Properties

alignment
ubyte alignment [@property getter]

get full alignment (both vertical and horizontal)

alignment
ubyte alignment [@property setter]

set alignment

backgroundColor
uint backgroundColor [@property getter]

background color

backgroundColor
uint backgroundColor [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
backgroundDrawable
DrawableRef backgroundDrawable [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
backgroundImageId
string backgroundImageId [@property getter]

font size

backgroundImageId
string backgroundImageId [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
customDrawable
string customDrawable [@property setter]

get custom drawable attribute

customDrawableId
string customDrawableId [@property setter]

get custom drawable attribute

font
FontRef font [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
fontFace
string fontFace [@property getter]

font size

fontFace
string fontFace [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
fontFamily
FontFamily fontFamily [@property getter]

font size

fontFamily
FontFamily fontFamily [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
fontItalic
bool fontItalic [@property getter]

font style - italic

fontSize
ushort fontSize [@property getter]

font size

fontSize
ushort fontSize [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
fontStyle
ubyte fontStyle [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
fontWeight
ushort fontWeight [@property getter]

font weight

fontWeight
ushort fontWeight [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
halign
ubyte halign [@property getter]

horizontal alignment: Left / HCenter / Right

id
string id [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
layoutHeight
uint layoutHeight [@property getter]

layout height parameter

layoutHeight
int layoutHeight [@property setter]

set layout height

layoutWeight
uint layoutWeight [@property getter]

layout weight parameter

layoutWeight
int layoutWeight [@property setter]

set layout weight

layoutWidth
uint layoutWidth [@property getter]

layout width parameter

layoutWidth
int layoutWidth [@property setter]

set layout width

margins
const(Rect) margins [@property getter]

margins

margins
Rect margins [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
maxHeight
uint maxHeight [@property getter]

max height constraint, SIZE_UNSPECIFIED if limit is not set

maxHeight
int maxHeight [@property setter]

set max height constraint

maxWidth
uint maxWidth [@property getter]

max width constraint, returns SIZE_UNSPECIFIED if limit is not set

maxWidth
int maxWidth [@property setter]

set max width constraint

minHeight
uint minHeight [@property getter]

minimal height constraint, 0 if limit is not set

minHeight
int minHeight [@property setter]

set min height constraint

minWidth
uint minWidth [@property getter]

minimal width constraint, 0 if limit is not set

minWidth
int minWidth [@property setter]

set min width constraint

padding
const(Rect) padding [@property getter]

padding

padding
Rect padding [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
parentStyle
const(Style) parentStyle [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
parentStyle
Style parentStyle [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
textColor
uint textColor [@property getter]

text color

textColor
uint textColor [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
theme
const(Theme) theme [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
theme
Theme theme [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
valign
ubyte valign [@property getter]

vertical alignment: Top / VCenter / Bottom

Variables

_align
ubyte _align;
Undocumented in source.
_backgroundColor
uint _backgroundColor;
Undocumented in source.
_backgroundDrawable
DrawableRef _backgroundDrawable;
Undocumented in source.
_backgroundImageId
string _backgroundImageId;
Undocumented in source.
_children
Style[] _children;
Undocumented in source.
_customDrawables
DrawableAttribute[string] _customDrawables;
Undocumented in source.
_font
FontRef _font;
Undocumented in source.
_fontFace
string _fontFace;
Undocumented in source.
_fontFamily
FontFamily _fontFamily;
Undocumented in source.
_fontSize
ushort _fontSize;
Undocumented in source.
_fontStyle
ubyte _fontStyle;
Undocumented in source.
_fontWeight
ushort _fontWeight;
Undocumented in source.
_id
string _id;
Undocumented in source.
_layoutHeight
int _layoutHeight;
Undocumented in source.
_layoutWeight
int _layoutWeight;
Undocumented in source.
_layoutWidth
int _layoutWidth;
Undocumented in source.
_margins
Rect _margins;
Undocumented in source.
_maxHeight
int _maxHeight;
Undocumented in source.
_maxWidth
int _maxWidth;
Undocumented in source.
_minHeight
int _minHeight;
Undocumented in source.
_minWidth
int _minWidth;
Undocumented in source.
_padding
Rect _padding;
Undocumented in source.
_parentId
string _parentId;
Undocumented in source.
_parentStyle
Style _parentStyle;
Undocumented in source.
_stateMask
uint _stateMask;
Undocumented in source.
_stateValue
uint _stateValue;
Undocumented in source.
_substates
Style[] _substates;
Undocumented in source.
_textColor
uint _textColor;
Undocumented in source.
_theme
Theme _theme;
Undocumented in source.

Meta