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

The base class for the default theme Tantalum. This doesn't declare any styles, or colors.

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
interface Styled

An interface common to Node and Scene; the two classes whose properties are changed by a Theme.

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

A Node matches, if Node.styles contains style.

Link copied to clipboard

The default Theme.

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).

Link copied to clipboard
abstract class ThemeBuilder

Builds a Theme. A Theme can be thought of as the rules which change colors, size and other attributes of Nodes within a Scene.

Functions

Link copied to clipboard
expect fun findStylableProperty(node: Styled, valueType: KClass<*>, propertyName: String, selector: Selector): StylableProperty<*>?
actual fun findStylableProperty(node: Styled, valueType: KClass<*>, propertyName: String, selector: Selector): StylableProperty<*>?
actual fun findStylableProperty(node: Styled, 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.