Get elements Background object
Type of Background is generic, see UIBackground for minimum interface.
Background object
Subscribe to highlight object event. This is called whenever an object is highlighted.
Token that can be used to unsubscribe from the event.
Function that is called when event is triggered.
Method for mutating Background of object.
Type of Background is generic, see UIBackground for minimum interface.
Object itself for fluent interface
Mutator function for Background
Set state of component highlighting.
// Example usage
component.setHighlight(true)
Object itself
Boolean or number between 0 and 1, where 1 is fully highlighted.
Set padding around object in pixels. Padding is empty space between the UiElements content and Background
Object itself
Number with pixel margins for all sides or datastructure with individual pixel paddings for each side. Any side can be omitted, only passed values will be overridden.
Interface for an object that has stylable background.