- clone
Style clone()
Undocumented in source. Be warned that the author may not have intended to support it.
- createState
Style createState(uint stateMask, uint stateValue)
create state substyle for this style
- createSubstyle
Style createSubstyle(string id)
create named substyle of this style
- customColor
uint customColor(string id, uint defColor)
get custom color attribute
- customDrawable
DrawableRef customDrawable(string id)
get custom drawable attribute
- customDrawableId
string customDrawableId(string id)
get custom drawable attribute
- customLength
uint customLength(string id, uint defLength)
get custom length attribute
- forState
Style forState(uint state)
find substyle based on widget state (e.g. focused, pressed, ...)
- forState
const(Style) forState(uint state)
find substyle based on widget state (e.g. focused, pressed, ...)
- getOrCreateState
Style getOrCreateState(uint stateMask, uint stateValue)
find exact existing state style or create new if no matched styles found
- onThemeChanged
void onThemeChanged()
Undocumented in source. Be warned that the author may not have intended to support it.
- setCustomColor
Style setCustomColor(string id, uint color)
sets custom color attribute for style
- setCustomDrawable
Style setCustomDrawable(string id, string resourceId)
sets custom drawable attribute for style
- setCustomLength
Style setCustomLength(string id, uint value)
sets custom length attribute for style
- setMargins
Style setMargins(int left, int top, int right, int bottom)
Undocumented in source. Be warned that the author may not have intended to support it.
- setPadding
Style setPadding(int left, int top, int right, int bottom)
Undocumented in source. Be warned that the author may not have intended to support it.
- alignment
ubyte alignment [@property getter]
get full alignment (both vertical and horizontal)
- alignment
ubyte alignment [@property setter]
- alpha
uint alpha [@property getter]
alpha (0=opaque .. 255=transparent)
- alpha
uint alpha [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- backgroundColor
uint backgroundColor [@property getter]
- 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]
- backgroundImageId
string backgroundImageId [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- focusRectColors
const(uint[]) focusRectColors [@property getter]
returns colors to draw focus rectangle (one for solid, two for vertical gradient) or null if no focus rect should be drawn for style
- focusRectColors
uint[] focusRectColors [@property setter]
sets colors to draw focus rectangle or null if no focus rect should be drawn for style
- 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]
- 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]
- 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]
- fontSize
int fontSize [@property getter]
- fontSize
int 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]
- 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.
- id
string id [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- instanceCount
int instanceCount [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- layoutHeight
uint layoutHeight [@property getter]
- layoutHeight
int layoutHeight [@property setter]
- layoutWeight
uint layoutWeight [@property getter]
- layoutWeight
int layoutWeight [@property setter]
- layoutWidth
uint layoutWidth [@property getter]
- layoutWidth
int layoutWidth [@property setter]
- margins
const(Rect) margins [@property getter]
- 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
- maxLines
int maxLines [@property getter]
- maxLines
int maxLines [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- maxWidth
uint maxWidth [@property getter]
max width constraint, returns SIZE_UNSPECIFIED if limit is not set
- maxWidth
int maxWidth [@property setter]
- 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]
- padding
const(Rect) padding [@property getter]
- 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]
access to parent style for this style
- parentStyle
Style parentStyle [@property getter]
access to parent style for this style
- parentStyleId
string parentStyleId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- parentStyleId
string parentStyleId [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- textColor
uint textColor [@property getter]
- textColor
uint textColor [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- textFlags
uint textFlags [@property getter]
- textFlags
uint textFlags [@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
style properties