DrawingGroup
struct · ferroui-base · v0.5.0
struct DrawingGroup
Represents a collection of drawings that can be operated upon as a single drawing.
Members
TYPEto_refopacity_propertytransform_propertyclip_geometry_propertyopacity_mask_propertyeffect_propertychildren_propertyconstructnewopacityset_opacitytransformset_transformclip_geometryset_clip_geometryopacity_maskset_opacity_maskeffectset_effectchildrenset_childrenopen
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DrawingGroup>
Returns a strong reference to this object.
opacity_property
fn opacity_property() -> &'static StyledProperty<f64>
Defines the Opacity property.
transform_property
fn transform_property() -> &'static StyledProperty<Option<Ref<Transform>>>
Defines the Transform property.
clip_geometry_property
fn clip_geometry_property() -> &'static StyledProperty<Option<Ref<Geometry>>>
Defines the ClipGeometry property.
opacity_mask_property
fn opacity_mask_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the OpacityMask property.
effect_property
fn effect_property() -> &'static StyledProperty<Option<Rc<dyn IEffect>>>
Defines the Effect property.
children_property
fn children_property() -> &'static DirectProperty<DrawingGroup, DrawingCollection>
Defines the Children property.
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
opacity
fn opacity(self: &Self) -> f64
The opacity the children are drawn with.
set_opacity
fn set_opacity(self: &Self, value: f64)
transform
fn transform(self: &Self) -> Option<Ref<Transform>>
The transform applied to the children.
set_transform
fn set_transform(self: &Self, value: impl Into<Nullable<Transform>>)
clip_geometry
fn clip_geometry(self: &Self) -> Option<Ref<Geometry>>
The geometry the children are clipped to.
set_clip_geometry
fn set_clip_geometry(self: &Self, value: impl Into<Nullable<Geometry>>)
opacity_mask
fn opacity_mask(self: &Self) -> Option<Rc<dyn IBrush>>
The opacity mask the children are drawn through.
set_opacity_mask
fn set_opacity_mask(self: &Self, value: Option<Rc<dyn IBrush>>)
effect
fn effect(self: &Self) -> Option<Rc<dyn IEffect>>
The effect applied to the children.
set_effect
fn set_effect(self: &Self, value: Option<Rc<dyn IEffect>>)
children
fn children(self: &Self) -> DrawingCollection
The collection that contains the child drawings.
set_children
fn set_children(self: &Self, value: DrawingCollection)
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeDrawingImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<DrawingGroup>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplDrawingImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.