FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ElementComposition

    struct · ferroui-base · v0.5.0

    struct ElementComposition
    

    Access to the composition visuals of the visuals of the visual tree.

    View source

    Members

    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.

    Source

    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.

    Source

    get_element_child_visual

    fn get_element_child_visual(visual: &Visual) -> Option<Rc<CompositionVisual>>
    

    Gets the composition visual set with set_element_child_visual.

    Source

    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.

    Source

    is_translation_enabled

    fn is_translation_enabled(visual: &Visual) -> bool
    

    Whether set_is_translation_enabled was called with true for visual.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.