- class arcade.gui.UIStyleBase#
Base class for styles to ensure a general interface and implement additional magic.
Support dict like access syntax.
A styled widget should own a dataclass, which subclasses this class
- class arcade.gui.UIStyledWidget(*, style: Mapping[str, StyleRef], **kwargs)#
- abstract get_current_state() str #
Return the current state of the widget. These should be contained in the style dict.
Well known states: - normal - hover - press - disabled
- get_current_style() StyleRef #
Return style based on any state of the widget
- style: Mapping#
Property that represents a dict. Only dict are allowed. Any other classes are forbidden.