Sector
struct · ferroui-controls · v0.5.0
struct Sector
Represents a circular or elliptical sector (a pie-shaped closed region of a circle or ellipse).
Members
TYPEto_refstart_angle_propertysweep_angle_propertyconstructnewstart_angleset_start_anglesweep_angleset_sweep_angle
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Sector>
Returns a strong reference to this object.
start_angle_property
fn start_angle_property() -> &'static StyledProperty<f64>
Defines the StartAngle property.
sweep_angle_property
fn sweep_angle_property() -> &'static StyledProperty<f64>
Defines the SweepAngle property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
start_angle
fn start_angle(self: &Self) -> f64
Gets the angle at which the sector's arc starts, in degrees.
set_start_angle
fn set_start_angle(self: &Self, value: f64)
Sets the angle at which the sector's arc starts, in degrees.
sweep_angle
fn sweep_angle(self: &Self) -> f64
Gets the angle, in degrees, added to the StartAngle defining where
the sector's arc ends. A positive value is clockwise, negative is
counter-clockwise.
set_sweep_angle
fn set_sweep_angle(self: &Self, value: f64)
Sets the angle, in degrees, added to the StartAngle defining where
the sector's arc ends. A positive value is clockwise, negative is
counter-clockwise.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeShapeImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Sector>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplFerroObjectImplShapeImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.