#[repr(C)]pub struct DrawingVTable {
pub base: <FerroObject as ObjectType>::VTable,
pub draw_core: fn(&Drawing, &mut DrawingContext<'_>),
pub get_bounds: fn(&Drawing) -> Rect,
}Expand description
The virtual table of the class.
Fields§
§base: <FerroObject as ObjectType>::VTable§draw_core: fn(&Drawing, &mut DrawingContext<'_>)§get_bounds: fn(&Drawing) -> RectTrait Implementations§
Source§impl Clone for DrawingVTable
impl Clone for DrawingVTable
impl Copy for DrawingVTable
Auto Trait Implementations§
impl Freeze for DrawingVTable
impl RefUnwindSafe for DrawingVTable
impl Send for DrawingVTable
impl Sync for DrawingVTable
impl Unpin for DrawingVTable
impl UnsafeUnpin for DrawingVTable
impl UnwindSafe for DrawingVTable
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