ButtonStateColors
The colors used to render a button in each of its visual states.
class ButtonStateColors
Properties
resting
resting: Color
The color used in the initial (resting) state.
hovered
hovered: Color
The color used while the pointer hovers the button.
pressed
pressed: Color
The color used while the button is pressed.
disabled
disabled: Color
The color used while the button is disabled.
Methods
copy
copy() -> (ButtonStateColors)
Returns a shallow copy (nested reference objects aren't copied).
deep_copy
deep_copy() -> (ButtonStateColors)
Returns a deep copy.
overriding
overriding(_ modify: (ButtonStateColors) -> ()) -> (ButtonStateColors)
Returns a modified copy of the colors. Modify the copy inside the modify function.