FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GeometryDrawing

    struct · ferroui-base · v0.5.0

    struct GeometryDrawing
    

    Represents a drawing of a Geometry with a brush and a pen.

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

    Returns a strong reference to this object.

    Source

    geometry_property

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

    Defines the Geometry property.

    Source

    brush_property

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

    Defines the Brush property.

    Source

    pen_property

    fn pen_property() -> &'static StyledProperty<Option<Rc<dyn IPen>>>
    

    Defines the Pen property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    geometry

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

    The geometry that describes the shape of this drawing.

    Source

    set_geometry

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

    Source

    brush

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

    The brush used to fill the interior of the shape described by this drawing.

    Source

    set_brush

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

    Source

    pen

    fn pen(self: &Self) -> Option<Rc<dyn IPen>>
    

    The pen used to stroke this drawing.

    Source

    set_pen

    fn set_pen(self: &Self, value: Option<Rc<dyn IPen>>)
    

    Source

    Trait implementations

    Availability

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