CombinedGeometry
struct · ferroui-base · v0.5.0
struct CombinedGeometry
Represents a 2-D geometric shape defined by the combination of two geometry objects.
Members
TYPEto_refgeometry1_propertygeometry2_propertygeometry_combine_mode_propertyconstructnewwith_geometrieswith_modewith_mode_and_transformgeometry1set_geometry1geometry2set_geometry2geometry_combine_modeset_geometry_combine_mode
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<CombinedGeometry>
Returns a strong reference to this object.
geometry1_property
fn geometry1_property() -> &'static StyledProperty<Option<Ref<Geometry>>>
geometry2_property
fn geometry2_property() -> &'static StyledProperty<Option<Ref<Geometry>>>
geometry_combine_mode_property
fn geometry_combine_mode_property() -> &'static StyledProperty<GeometryCombineMode>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
with_geometries
fn with_geometries(geometry1: Ref<Geometry>, geometry2: Ref<Geometry>) -> Ref<Self>
Creates the union of the two geometries.
with_mode
fn with_mode(combine_mode: GeometryCombineMode, geometry1: Option<Ref<Geometry>>, geometry2: Option<Ref<Geometry>>) -> Ref<Self>
Creates a combination of the two geometries with the given mode.
with_mode_and_transform
fn with_mode_and_transform(combine_mode: GeometryCombineMode, geometry1: Option<Ref<Geometry>>, geometry2: Option<Ref<Geometry>>, transform: impl Into<Nullable<Transform>>) -> Ref<Self>
Creates a combination of the two geometries with the given mode and transform.
geometry1
fn geometry1(self: &Self) -> Option<Ref<Geometry>>
The first geometry that should be combined.
set_geometry1
fn set_geometry1(self: &Self, value: impl Into<Nullable<Geometry>>)
geometry2
fn geometry2(self: &Self) -> Option<Ref<Geometry>>
The second geometry that should be combined.
set_geometry2
fn set_geometry2(self: &Self, value: impl Into<Nullable<Geometry>>)
geometry_combine_mode
fn geometry_combine_mode(self: &Self) -> GeometryCombineMode
The method by which the two geometries (specified by the
geometry1 and geometry2
properties) are combined. The default value is
GeometryCombineMode::Union.
set_geometry_combine_mode
fn set_geometry_combine_mode(self: &Self, value: GeometryCombineMode)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeGeometryImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<CombinedGeometry>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplGeometryImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.