Struct oxygengine_user_interface::raui::core::widget::WidgetLifeCycle
source · pub struct WidgetLifeCycle { /* private fields */ }
Implementations§
source§impl WidgetLifeCycle
impl WidgetLifeCycle
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, Global>, Global>, Vec<Box<dyn FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync, Global>, Global>, Vec<Box<dyn FnMut(WidgetUnmountContext<'_, '_>) + Send + Sync, Global>, Global>)
Trait Implementations§
source§impl Default for WidgetLifeCycle
impl Default for WidgetLifeCycle
source§fn default() -> WidgetLifeCycle
fn default() -> WidgetLifeCycle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for WidgetLifeCycle
impl Send for WidgetLifeCycle
impl Sync for WidgetLifeCycle
impl Unpin for WidgetLifeCycle
impl !UnwindSafe for WidgetLifeCycle
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more