FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionBrush

    struct · ferroui-base · v0.5.0

    struct CompositionBrush
    

    A brush of the composition API.

    View source

    Members

    compositor

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

    Source

    object

    fn object(self: &Self) -> &CompositionObject
    

    The embedded CompositionObject.

    Source

    is_disposed

    fn is_disposed(self: &Self) -> bool
    

    Source

    type_name

    fn type_name(self: &Self) -> &'static str
    

    The name of the concrete class, for messages.

    Source

    to_rc

    fn to_rc(self: &Self) -> Rc<CompositionBrush>
    

    The handle of the brush, from a reference to it (an IBrush seen as a CompositionBrush through IBrush::as_composition_brush).

    Source

    as_brush

    fn as_brush(self: &Self) -> Rc<dyn IBrush>
    

    The brush as an IBrush handle.

    Source

    implicit_animations

    fn implicit_animations(self: &Self) -> Option<Rc<ImplicitAnimationCollection>>
    

    The collection of implicit animations attached to this object.

    Source

    set_implicit_animations

    fn set_implicit_animations(self: &Self, value: Option<Rc<ImplicitAnimationCollection>>)
    

    Source

    opacity

    fn opacity(self: &Self) -> f64
    

    Source

    set_opacity

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

    Source

    transform_origin

    fn transform_origin(self: &Self) -> RelativePoint
    

    Source

    set_transform_origin

    fn set_transform_origin(self: &Self, value: RelativePoint)
    

    Source

    transform

    fn transform(self: &Self) -> Option<Rc<dyn ITransform>>
    

    Source

    set_transform

    fn set_transform(self: &Self, value: Option<Rc<dyn ITransform>>)
    

    Sets the transform. What the server receives is the form a transform takes on a compositor (GetServer): an immutable transform as it is, a mutable one as a copy of its current value.

    Source

    relative_transform

    fn relative_transform(self: &Self) -> Option<Rc<dyn ITransform>>
    

    Source

    set_relative_transform

    fn set_relative_transform(self: &Self, value: Option<Rc<dyn ITransform>>)
    

    Sets the relative transform; see set_transform.

    Source

    Trait implementations

    Availability

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