ElementComposition
struct · ferroui-base · v0.5.0
struct ElementComposition
Access to the composition visuals of the visuals of the visual tree.
Members
get_element_visualset_element_child_visualget_element_child_visualset_is_translation_enabledis_translation_enabled
get_element_visual
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.
set_element_child_visual
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.
get_element_child_visual
fn get_element_child_visual(visual: &Visual) -> Option<Rc<CompositionVisual>>
Gets the composition visual set with
set_element_child_visual.
set_is_translation_enabled
fn set_is_translation_enabled(visual: &Visual, value: bool)
ElementCompositionPreview.SetIsTranslationEnabled. Every composition visual has a
Translation property applied after its other transforms, so translation is always
enabled; the request is recorded and changes nothing else.
is_translation_enabled
fn is_translation_enabled(visual: &Visual) -> bool
Whether set_is_translation_enabled was called with
true for visual.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.