#[repr(C)]pub struct LayoutableVTable {
pub base: <Visual as ObjectType>::VTable,
pub apply_template: fn(&Layoutable),
pub measure_core: fn(&Layoutable, Size) -> Size,
pub measure_override: fn(&Layoutable, Size) -> Size,
pub arrange_core: fn(&Layoutable, Rect),
pub arrange_override: fn(&Layoutable, Size) -> Size,
pub on_measure_invalidated: fn(&Layoutable),
}Expand description
The virtual table of the class.
Fields§
§base: <Visual as ObjectType>::VTable§apply_template: fn(&Layoutable)§measure_core: fn(&Layoutable, Size) -> Size§measure_override: fn(&Layoutable, Size) -> Size§arrange_core: fn(&Layoutable, Rect)§arrange_override: fn(&Layoutable, Size) -> Size§on_measure_invalidated: fn(&Layoutable)Trait Implementations§
Source§impl Clone for LayoutableVTable
impl Clone for LayoutableVTable
impl Copy for LayoutableVTable
Auto Trait Implementations§
impl Freeze for LayoutableVTable
impl RefUnwindSafe for LayoutableVTable
impl Send for LayoutableVTable
impl Sync for LayoutableVTable
impl Unpin for LayoutableVTable
impl UnsafeUnpin for LayoutableVTable
impl UnwindSafe for LayoutableVTable
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