Enum freya_core::plugins::PluginEvent
source · pub enum PluginEvent<'a> {
WindowCreated(&'a Window),
BeforeRender {
canvas: &'a Canvas,
font_collection: &'a FontCollection,
freya_dom: &'a FreyaDOM,
viewports: &'a Viewports,
},
AfterRender {
canvas: &'a Canvas,
font_collection: &'a FontCollection,
freya_dom: &'a FreyaDOM,
viewports: &'a Viewports,
},
StartedLayout(&'a Torin<NodeId>),
FinishedLayout(&'a Torin<NodeId>),
}
Expand description
Event emitted to Plugins.
Variants§
WindowCreated(&'a Window)
The Window just got created.
BeforeRender
Before starting to render the app to the Canvas.
AfterRender
After rendering the app to the Canvas.
StartedLayout(&'a Torin<NodeId>)
Before starting to measure the layout.
FinishedLayout(&'a Torin<NodeId>)
After measuring the layout.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PluginEvent<'a>
impl<'a> !Send for PluginEvent<'a>
impl<'a> !Sync for PluginEvent<'a>
impl<'a> Unpin for PluginEvent<'a>
impl<'a> !UnwindSafe for PluginEvent<'a>
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