invoke
Allows a string to be used as a selector for a rule. The type of selector depends on the string's contents. If it begins with a colon, then it uses PseudoStyleSelector, otherwise it uses StyleSelector. e.g.
"tool_bar" { ... } // A StyleSelector
":selected" { ... } // A PseudoStyleSelector
Content copied to clipboard
Allows us to use enums (which implement WithPseudoStyle) as selectors. e.g.
Side.TOP { ... }
Content copied to clipboard
For example :
("tool_bar" or "split_pane") { ... }
Content copied to clipboard
The "or" function creates an OrSelector. The rule in curly brackets is being applied by using the invoke
operator of the OrSelector.