Package-level declarations

Types

Link copied to clipboard
class AndSelector(val a: Selector, val b: Selector) : Selector

A ThemeSelector, which matches, only when either a and b match.

Link copied to clipboard
class ChildSelector(val parentSelector: Selector, val childSelector: Selector) : Selector

Equivalent to the CSS selector :

Link copied to clipboard

CustomisableTheme supports multiple color schemes (e.g. a dark theme and a light theme). This holds the colors for one color scheme.

Link copied to clipboard
abstract class CustomisableTheme

Bind Scene.themeProperty to this themeProperty, then you can changed buttonColor, fontProperty etc. and the scene will be re-styled.

Link copied to clipboard
class DescendantSelector(val ancestorSelector: Selector, val childSelector: Selector) : Selector

Equivalent to the CSS selector :

Link copied to clipboard
class IDSelector(val id: String) : Selector
Link copied to clipboard
class OrSelector(val a: Selector, val b: Selector) : Selector

A ThemeSelector, which matches, when either a or b match.

Link copied to clipboard
class PseudoStyleSelector(val pseudoStyle: String) : Selector
Link copied to clipboard

A special selector, so we can change the scene's background color.

Link copied to clipboard

Looks for a method with this signature : get{PropertyName}Property() : StylableProperty<*> If one is found, invokes the method, and returns the value. Otherwise, return null.

Link copied to clipboard
interface Selector

A rule which considers one node only, ancestors are not considered.

Link copied to clipboard
class StyleSelector(val style: String) : Selector

A Node matches, if Node.styles contains style.

Link copied to clipboard
Link copied to clipboard
class Theme

A theme defines all the visual aspects of glok controls, as well as some non-visual aspects (e.g. which controls accept input focus).

Functions

Link copied to clipboard
expect fun findStylableProperty(node: Any, valueType: KClass<*>, propertyName: String, selector: Selector): StylableProperty<*>?
actual fun findStylableProperty(node: Any, valueType: KClass<*>, propertyName: String, selector: Selector): StylableProperty<*>?

Looks for a method with this signature : get{PropertyName}Property() : StylableProperty<*> If one is found, invokes the method, and returns the value. Otherwise, return null.

actual fun findStylableProperty(node: Any, valueType: KClass<*>, propertyName: String, selector: Selector): StylableProperty<*>?

Looks for a method with this signature : get{PropertyName}Property() : StylableProperty<*> If one is found, invokes the method, and returns the value. Otherwise, return null.