pub enum State {
Outdated,
Updated {
mouse_interaction: Interaction,
redraw_request: RedrawRequest,
input_method: InputMethod,
has_layout_changed: bool,
},
}Expand description
The resulting state after updating a UserInterface.
Variants§
Outdated
The UserInterface is outdated and needs to be rebuilt.
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)