FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionTarget

    struct · ferroui-base · v0.5.0

    struct CompositionTarget
    

    The root of a composition visual tree: what a renderer draws to a render target.

    View source

    Members

    compositor

    fn compositor(self: &Self) -> &Rc<Compositor>
    

    Source

    id

    fn id(self: &Self) -> i64
    

    The identity of the target, shared with its server side.

    Source

    is_disposed

    fn is_disposed(self: &Self) -> bool
    

    Source

    dispose

    fn dispose(self: &Self)
    

    Source

    root

    fn root(self: &Self) -> Option<Rc<CompositionVisual>>
    

    Source

    set_root

    fn set_root(self: &Self, value: Option<Rc<CompositionVisual>>)
    

    Source

    is_enabled

    fn is_enabled(self: &Self) -> bool
    

    Source

    set_is_enabled

    fn set_is_enabled(self: &Self, value: bool)
    

    Source

    debug_overlays

    fn debug_overlays(self: &Self) -> RendererDebugOverlays
    

    Source

    set_debug_overlays

    fn set_debug_overlays(self: &Self, value: RendererDebugOverlays)
    

    Source

    scaling

    fn scaling(self: &Self) -> f64
    

    Source

    set_scaling

    fn set_scaling(self: &Self, value: f64)
    

    Source

    size

    fn size(self: &Self) -> Size
    

    Source

    set_size

    fn set_size(self: &Self, value: Size)
    

    Source

    transparency_level

    fn transparency_level(self: &Self) -> CompositionTransparencyLevel
    

    Source

    set_transparency_level

    fn set_transparency_level(self: &Self, value: CompositionTransparencyLevel)
    

    Source

    platform_specific_scene_info

    fn platform_specific_scene_info(self: &Self) -> Option<std::sync::Arc<dyn Any + Send + Sync>>
    

    Source

    set_platform_specific_scene_info

    fn set_platform_specific_scene_info(self: &Self, value: Option<std::sync::Arc<dyn Any + Send + Sync>>)
    

    Source

    request_redraw

    fn request_redraw(self: &Self)
    

    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
    • CompositionTargetHooks
    • IRegisterForSerialization
    • ICompositionObjectHost
    • ICompositionObjectAnimations
    • AsCompositionObject
    • ICompositionObject
    • ICompositorSerializable

    Availability

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