pub enum State {
Outdated {
clipboard: Clipboard,
auto_focus_pending: bool,
},
Updated {
mouse_interaction: Interaction,
redraw_request: RedrawRequest,
input_method: InputMethod,
clipboard: Clipboard,
has_layout_changed: bool,
auto_focus_pending: bool,
},
}Expand description
The resulting state after updating a UserInterface.
Variants§
Outdated
The UserInterface is outdated and needs to be rebuilt.
Clipboard requests from the update cycle are still preserved so they can be processed even when the widget tree needs rebuilding.
Fields
Updated
The UserInterface is up-to-date and can be reused without
rebuilding.
Fields
§
mouse_interaction: InteractionThe current mouse::Interaction of the user interface.
§
redraw_request: RedrawRequestThe window::RedrawRequest describing when a redraw should be performed.
§
input_method: InputMethodThe current InputMethod strategy of the user interface.
§
has_layout_changed: boolWhether the layout of the UserInterface has changed.
Implementations§
Source§impl State
impl State
Sourcepub fn has_layout_changed(&self) -> bool
pub fn has_layout_changed(&self) -> bool
Returns whether the layout of the UserInterface has changed.
Sourcepub fn is_auto_focus_pending(&self) -> bool
pub fn is_auto_focus_pending(&self) -> bool
Returns whether an auto-focus operation is pending.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for State
impl !Send for State
impl !Sync for State
impl !UnwindSafe for State
impl Freeze for State
impl Unpin for State
impl UnsafeUnpin for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more