FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DrawingGroup

    struct · ferroui-base · v0.5.0

    struct DrawingGroup
    

    Represents a collection of drawings that can be operated upon as a single drawing.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<DrawingGroup>
    

    Returns a strong reference to this object.

    Source

    opacity_property

    fn opacity_property() -> &'static StyledProperty<f64>
    

    Defines the Opacity property.

    Source

    transform_property

    fn transform_property() -> &'static StyledProperty<Option<Ref<Transform>>>
    

    Defines the Transform property.

    Source

    clip_geometry_property

    fn clip_geometry_property() -> &'static StyledProperty<Option<Ref<Geometry>>>
    

    Defines the ClipGeometry property.

    Source

    opacity_mask_property

    fn opacity_mask_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the OpacityMask property.

    Source

    effect_property

    fn effect_property() -> &'static StyledProperty<Option<Rc<dyn IEffect>>>
    

    Defines the Effect property.

    Source

    children_property

    fn children_property() -> &'static DirectProperty<DrawingGroup, DrawingCollection>
    

    Defines the Children property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    opacity

    fn opacity(self: &Self) -> f64
    

    The opacity the children are drawn with.

    Source

    set_opacity

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

    Source

    transform

    fn transform(self: &Self) -> Option<Ref<Transform>>
    

    The transform applied to the children.

    Source

    set_transform

    fn set_transform(self: &Self, value: impl Into<Nullable<Transform>>)
    

    Source

    clip_geometry

    fn clip_geometry(self: &Self) -> Option<Ref<Geometry>>
    

    The geometry the children are clipped to.

    Source

    set_clip_geometry

    fn set_clip_geometry(self: &Self, value: impl Into<Nullable<Geometry>>)
    

    Source

    opacity_mask

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

    The opacity mask the children are drawn through.

    Source

    set_opacity_mask

    fn set_opacity_mask(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    effect

    fn effect(self: &Self) -> Option<Rc<dyn IEffect>>
    

    The effect applied to the children.

    Source

    set_effect

    fn set_effect(self: &Self, value: Option<Rc<dyn IEffect>>)
    

    Source

    children

    fn children(self: &Self) -> DrawingCollection
    

    The collection that contains the child drawings.

    Source

    set_children

    fn set_children(self: &Self, value: DrawingCollection)
    

    Source

    open

    fn open(self: &Self) -> DrawingContext<'static>
    

    Opens the group for populating: what is drawn on the returned context replaces the children of the group when the context is disposed (or dropped).

    Panics when no platform render interface is registered.

    Source

    Trait implementations

    Availability

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