Polygon
struct · ferroui-controls · v0.5.0
struct Polygon
Represents a closed figure made of straight lines between points.
Members
TYPEto_refpoints_propertyfill_rule_propertyconstructnewpointsset_pointsfill_ruleset_fill_rule
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Polygon>
Returns a strong reference to this object.
points_property
fn points_property() -> &'static StyledProperty<Option<Points>>
Defines the Points property.
fill_rule_property
fn fill_rule_property() -> &'static StyledProperty<FillRule>
Defines the FillRule property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
points
fn points(self: &Self) -> Option<Points>
The vertices of the polygon.
set_points
fn set_points(self: &Self, value: Option<Points>)
fill_rule
fn fill_rule(self: &Self) -> FillRule
Gets how the interior of the polygon is determined when a fill is applied.
set_fill_rule
fn set_fill_rule(self: &Self, value: FillRule)
Sets how the interior of the polygon is determined when a fill is applied.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeShapeImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Polygon>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplFerroObjectImplShapeImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.