FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CombinedGeometry

    struct · ferroui-base · v0.5.0

    struct CombinedGeometry
    

    Represents a 2-D geometric shape defined by the combination of two geometry objects.

    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<CombinedGeometry>
    

    Returns a strong reference to this object.

    Source

    geometry1_property

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

    Source

    geometry2_property

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

    Source

    geometry_combine_mode_property

    fn geometry_combine_mode_property() -> &'static StyledProperty<GeometryCombineMode>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_geometries

    fn with_geometries(geometry1: Ref<Geometry>, geometry2: Ref<Geometry>) -> Ref<Self>
    

    Creates the union of the two geometries.

    Source

    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.

    Source

    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.

    Source

    geometry1

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

    The first geometry that should be combined.

    Source

    set_geometry1

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

    Source

    geometry2

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

    The second geometry that should be combined.

    Source

    set_geometry2

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

    Source

    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.

    Source

    set_geometry_combine_mode

    fn set_geometry_combine_mode(self: &Self, value: GeometryCombineMode)
    

    Source

    Trait implementations

    Availability

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