#[repr(C)]pub struct TopLevelVTable {
pub base: <ContentControl as ObjectType>::VTable,
pub handle_closed: fn(&TopLevel),
pub handle_resized: fn(&TopLevel, Size, WindowResizeReason),
pub on_opened: fn(&TopLevel),
pub on_closed: fn(&TopLevel),
pub opened_popups: fn(&TopLevel) -> Vec<Ref<Popup>>,
}Expand description
The virtual table of the class.
Fields§
§base: <ContentControl as ObjectType>::VTable§handle_closed: fn(&TopLevel)§handle_resized: fn(&TopLevel, Size, WindowResizeReason)§on_opened: fn(&TopLevel)§on_closed: fn(&TopLevel)§opened_popups: fn(&TopLevel) -> Vec<Ref<Popup>>Trait Implementations§
Source§impl Clone for TopLevelVTable
impl Clone for TopLevelVTable
impl Copy for TopLevelVTable
Auto Trait Implementations§
impl Freeze for TopLevelVTable
impl RefUnwindSafe for TopLevelVTable
impl Send for TopLevelVTable
impl Sync for TopLevelVTable
impl Unpin for TopLevelVTable
impl UnsafeUnpin for TopLevelVTable
impl UnwindSafe for TopLevelVTable
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more