Struct oxygengine_user_interface::widget::WidgetLifeCycle [−][src]
pub struct WidgetLifeCycle { /* fields omitted */ }
Implementations
pub fn mount<F>(&mut self, f: F) where
F: 'static + FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync,
pub fn change<F>(&mut self, f: F) where
F: 'static + FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync,
pub fn unmount<F>(&mut self, f: F) where
F: 'static + FnMut(WidgetUnmountContext<'_, '_>) + Send + Sync,
pub fn unwrap(
self
) -> (Vec<Box<dyn FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync + 'static, Global>, Global>, Vec<Box<dyn FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync + 'static, Global>, Global>, Vec<Box<dyn FnMut(WidgetUnmountContext<'_, '_>) + Send + Sync + 'static, Global>, Global>)
Trait Implementations
Returns the “default value” for a type. Read more