#[repr(C)]pub struct VisualVTable {Show 17 fields
pub base: <StyledElement as ObjectType>::VTable,
pub render: fn(&Visual, &mut DrawingContext<'_>),
pub on_attached_to_visual_tree_core: fn(&Visual, &VisualTreeAttachmentEventArgs),
pub on_detached_from_visual_tree_core: fn(&Visual, &VisualTreeAttachmentEventArgs),
pub on_attached_to_visual_tree: fn(&Visual, &VisualTreeAttachmentEventArgs),
pub on_detached_from_visual_tree: fn(&Visual, &VisualTreeAttachmentEventArgs),
pub on_visual_parent_changed: fn(&Visual, Option<&Ref<Visual>>, Option<&Ref<Visual>>),
pub bypass_flow_direction_policies: fn(&Visual) -> bool,
pub invalidate_mirror_transform: fn(&Visual),
pub clip_to_bounds_radius: fn(&Visual) -> Option<CornerRadius>,
pub custom_hit_test: fn(&Visual, Point) -> Option<bool>,
pub custom_hit_test_geometry: fn(&Visual, &Ref<Geometry>) -> Option<IntersectionResult>,
pub ensure_initialized_for_visual_brush: fn(&Visual),
pub create_composition_visual: fn(&Visual, &Rc<Compositor>) -> CompositionDrawListVisual,
pub detach_from_compositor: fn(&Visual),
pub synchronize_composition_child_visuals: fn(&Visual),
pub synchronize_composition_properties: fn(&Visual),
}Expand description
The virtual table of the class.
Fields§
§base: <StyledElement as ObjectType>::VTable§render: fn(&Visual, &mut DrawingContext<'_>)§on_attached_to_visual_tree_core: fn(&Visual, &VisualTreeAttachmentEventArgs)§on_detached_from_visual_tree_core: fn(&Visual, &VisualTreeAttachmentEventArgs)§on_attached_to_visual_tree: fn(&Visual, &VisualTreeAttachmentEventArgs)§on_detached_from_visual_tree: fn(&Visual, &VisualTreeAttachmentEventArgs)§on_visual_parent_changed: fn(&Visual, Option<&Ref<Visual>>, Option<&Ref<Visual>>)§bypass_flow_direction_policies: fn(&Visual) -> bool§invalidate_mirror_transform: fn(&Visual)§clip_to_bounds_radius: fn(&Visual) -> Option<CornerRadius>§custom_hit_test: fn(&Visual, Point) -> Option<bool>§custom_hit_test_geometry: fn(&Visual, &Ref<Geometry>) -> Option<IntersectionResult>§ensure_initialized_for_visual_brush: fn(&Visual)§create_composition_visual: fn(&Visual, &Rc<Compositor>) -> CompositionDrawListVisual§detach_from_compositor: fn(&Visual)§synchronize_composition_child_visuals: fn(&Visual)§synchronize_composition_properties: fn(&Visual)Trait Implementations§
Source§impl Clone for VisualVTable
impl Clone for VisualVTable
impl Copy for VisualVTable
Auto Trait Implementations§
impl Freeze for VisualVTable
impl RefUnwindSafe for VisualVTable
impl Send for VisualVTable
impl Sync for VisualVTable
impl Unpin for VisualVTable
impl UnsafeUnpin for VisualVTable
impl UnwindSafe for VisualVTable
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