#[non_exhaustive]pub enum Response {
}Expand description
Response from a widget operation.
This enum represents the various responses that a widget can return after processing an operation, such as drawing or handling interactions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Idle
No significant response, widget is idle.
Clicked
The widget was clicked (e.g., checkbox toggled).
Pressed
The widget is currently being pressed down.
Released
The widget was released.
Focused
The widget gained focus.
Defocused
The widget lost focus.
Selected
The widget was selected (e.g., radio button, list item).
Trigger
The widget was triggered (e.g., button activated).
Edited
The widget’s content was edited.
ValueChanged
The widget’s value changed.
Hovered
The widget is being hovered over.
Scrolled
The widget was scrolled.
Disabled
The widget was disabled.
User(u8)
User-defined response with custom code.
Error(GuiError)
An error occurred during the operation.
Implementations§
Source§impl Response
impl Response
Sourcepub const fn is_clicked(&self) -> bool
pub const fn is_clicked(&self) -> bool
Returns true if the response is clicked.
Sourcepub const fn is_pressed(&self) -> bool
pub const fn is_pressed(&self) -> bool
Returns true if the response is pressed.
pub const fn is_released(&self) -> bool
Sourcepub const fn is_focused(&self) -> bool
pub const fn is_focused(&self) -> bool
Returns true if the response is focused.
Sourcepub const fn is_defocused(&self) -> bool
pub const fn is_defocused(&self) -> bool
Returns true if the response is defocused.
Sourcepub const fn is_selected(&self) -> bool
pub const fn is_selected(&self) -> bool
Returns true if the response is selected.
Sourcepub const fn is_trigger(&self) -> bool
pub const fn is_trigger(&self) -> bool
Returns true if the response is trigger.
Sourcepub const fn is_value_changed(&self) -> bool
pub const fn is_value_changed(&self) -> bool
Returns true if the response indicates a value change.
Sourcepub const fn is_hovered(&self) -> bool
pub const fn is_hovered(&self) -> bool
Returns true if the response is hovered.
Sourcepub const fn is_scrolled(&self) -> bool
pub const fn is_scrolled(&self) -> bool
Returns true if the response is scrolled.
Sourcepub const fn is_disabled(&self) -> bool
pub const fn is_disabled(&self) -> bool
Returns true if the response is disabled.