UI.Style
Index
Constructors
constructor
Constructs new UI.Style object with bindings from UI.Style.DEFAULT.
Returns Style
Properties
staticreadonlyCLASSIC
Classic (0.16.*-like) windows style, which also used before legacy version.
staticreadonlyDEFAULT
Default windows style.
staticreadonlyLEGACY
Methods
addAllBindings
Adds all values from given UI.BindingSet object.
Parameters
bindings: BindingSet
Returns void
addBinding
Adds gui texture name to use for the specified window part.
Parameters
key: string
binding name
name: string
gui texture name
Returns void
addStyle
Adds an additional style object to the current style.
Parameters
style: Style
additional style object to be added
Returns void
copy
Returns Style
A copy of the current style. Only style bindings of the current style are copied, no parent/additional styles are copied.
getAllBindingNames
Returns Collection<string>
Collection containing all binding names from the current style object.
getBinding
Gets texture binding bt it's name. Searches first in the additional styles, then in the current style, then in all it's parents.
Parameters
key: string
binding name
fallback: string
value to return on binding failure
Returns string
Ui texture name if current object, additional styles or one of the parents contains such a binding name, fallback otherwise.
getBitmapName
If name is a style value (starts with
"style:"), returns corresponding gui texture name, else returns input string.Parameters
name: string
style value or bitmap name
Returns string
getBooleanProperty
Parameters
name: string
fallback: boolean
Returns boolean
getColorProperty
getDoubleProperty
Parameters
name: string
fallback: number
Returns number
getFloatProperty
Parameters
name: string
fallback: number
Returns number
getIntProperty
Parameters
name: string
fallback: number
Returns number
getStringProperty
Parameters
name: string
fallback: string
Returns string
inherit
Specifies parent style object for the current style.
Parameters
style: Style
style to be set as parent
Returns void
setProperty
Parameters
name: string
value: any
Returns void
staticgetBitmapByDescription
Parameters
style: Style
description: string
Returns IBitmapWrap
Object representing window style. Window styles allows to customize the way your windows look like.