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
Just before starting to render the app to the Canvas.
AfterRender
Just after rendering the app to the Canvas.
StartedLayout(&'a Torin<NodeId>)
Just before starting to measure the layout.
FinishedLayout(&'a Torin<NodeId>)
Just fater 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