pub struct ElementComposition;Expand description
Access to the composition visuals of the visuals of the visual tree.
Implementations§
Source§impl ElementComposition
impl ElementComposition
Sourcepub fn get_element_visual(visual: &Visual) -> Option<Rc<CompositionVisual>>
pub fn get_element_visual(visual: &Visual) -> Option<Rc<CompositionVisual>>
Gets the composition visual of a visual; None while the visual is
not attached to a compositor.
Sourcepub fn set_element_child_visual(
visual: &Visual,
composition_visual: Option<Rc<CompositionVisual>>,
)
pub fn set_element_child_visual( visual: &Visual, composition_visual: Option<Rc<CompositionVisual>>, )
Sets a composition visual that is shown as the last child of the
composition visual of visual.
Sourcepub fn get_element_child_visual(
visual: &Visual,
) -> Option<Rc<CompositionVisual>>
pub fn get_element_child_visual( visual: &Visual, ) -> Option<Rc<CompositionVisual>>
Gets the composition visual set with
set_element_child_visual.
Auto Trait Implementations§
impl Freeze for ElementComposition
impl RefUnwindSafe for ElementComposition
impl Send for ElementComposition
impl Sync for ElementComposition
impl Unpin for ElementComposition
impl UnsafeUnpin for ElementComposition
impl UnwindSafe for ElementComposition
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