pub enum EventLoopMessage {
PollVDOM,
RequestRerender,
RequestFullRerender,
InvalidateArea(Area),
RemeasureTextGroup(TextGroupMeasurement),
SetCursorIcon(CursorIcon),
Accessibility(WindowEvent),
FocusAccessibilityNode(AccessibilityFocusStrategy),
ExitApp,
WithWindow(Box<dyn FnOnce(&Window) + Send + Sync>),
PlatformEvent(PlatformEvent),
}Expand description
Custom EventLoop messages
Variants§
PollVDOM
Poll the VirtualDOM
RequestRerender
Request a rerender
RequestFullRerender
Request a full rerender
InvalidateArea(Area)
Invalidate a certain drawing area
RemeasureTextGroup(TextGroupMeasurement)
Remeasure a text elements group
SetCursorIcon(CursorIcon)
Change the cursor icon
Accessibility(WindowEvent)
Accessibility Window Event
FocusAccessibilityNode(AccessibilityFocusStrategy)
Focus with the given strategy
ExitApp
Close the whole app
WithWindow(Box<dyn FnOnce(&Window) + Send + Sync>)
Callback to access the Window.
PlatformEvent(PlatformEvent)
Raw platform event, this are low level events.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventLoopMessage
impl !RefUnwindSafe for EventLoopMessage
impl Send for EventLoopMessage
impl Sync for EventLoopMessage
impl Unpin for EventLoopMessage
impl !UnwindSafe for EventLoopMessage
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.