Enum freya_core::plugins::PluginEvent
source · pub enum PluginEvent<'a> {
WindowCreated(&'a Window),
BeforeRender(&'a Canvas, &'a FontCollection),
AfterRender(&'a Canvas, &'a FontCollection),
StartedLayout(&'a Torin<NodeId>),
FinishedLayout(&'a Torin<NodeId>),
}Expand description
Event emitted to Plugins.
Variants§
WindowCreated(&'a Window)
The Window just got created.
BeforeRender(&'a Canvas, &'a FontCollection)
Just before starting to render the app to the Canvas.
AfterRender(&'a Canvas, &'a FontCollection)
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