Document InteractionState
This commit is contained in:
parent
bec61123fd
commit
f04deeb5f9
1 changed files with 10 additions and 0 deletions
|
@ -24,12 +24,22 @@ pub enum OverflowStyle {
|
||||||
|
|
||||||
#[derive(Default, PartialEq, Copy, Clone, EnumIter, strum::Display)]
|
#[derive(Default, PartialEq, Copy, Clone, EnumIter, strum::Display)]
|
||||||
pub enum InteractionState {
|
pub enum InteractionState {
|
||||||
|
/// An element that is enabled and not hovered, active, focused, or disabled.
|
||||||
|
///
|
||||||
|
/// This is often referred to as the "default" state.
|
||||||
#[default]
|
#[default]
|
||||||
Enabled,
|
Enabled,
|
||||||
|
/// An element that is hovered.
|
||||||
Hovered,
|
Hovered,
|
||||||
|
/// An element has an active mouse down or touch start event on it.
|
||||||
Active,
|
Active,
|
||||||
|
/// An element that is focused using the keyboard.
|
||||||
Focused,
|
Focused,
|
||||||
|
/// An element that is disabled.
|
||||||
Disabled,
|
Disabled,
|
||||||
|
/// A toggleable element that is selected, like the active button in a
|
||||||
|
/// button toggle group.
|
||||||
|
Selected,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InteractionState {
|
impl InteractionState {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue