#[repr(C)]pub struct TextBlockVTable {
pub base: <Control as ObjectType>::VTable,
pub render_core: fn(&TextBlock, &mut DrawingContext<'_>),
pub render_text_layout: fn(&TextBlock, &mut DrawingContext<'_>, Point),
pub create_text_layout: fn(&TextBlock, Option<&str>) -> Rc<TextLayout>,
}Expand description
The virtual table of the class.
Fields§
§base: <Control as ObjectType>::VTable§render_core: fn(&TextBlock, &mut DrawingContext<'_>)§render_text_layout: fn(&TextBlock, &mut DrawingContext<'_>, Point)§create_text_layout: fn(&TextBlock, Option<&str>) -> Rc<TextLayout>Trait Implementations§
Source§impl Clone for TextBlockVTable
impl Clone for TextBlockVTable
impl Copy for TextBlockVTable
Auto Trait Implementations§
impl Freeze for TextBlockVTable
impl RefUnwindSafe for TextBlockVTable
impl Send for TextBlockVTable
impl Sync for TextBlockVTable
impl Unpin for TextBlockVTable
impl UnsafeUnpin for TextBlockVTable
impl UnwindSafe for TextBlockVTable
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