FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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).

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

    Returns a strong reference to this object.

    Source

    start_angle_property

    fn start_angle_property() -> &'static StyledProperty<f64>
    

    Defines the StartAngle property.

    Source

    sweep_angle_property

    fn sweep_angle_property() -> &'static StyledProperty<f64>
    

    Defines the SweepAngle property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    start_angle

    fn start_angle(self: &Self) -> f64
    

    Gets the angle at which the sector's arc starts, in degrees.

    Source

    set_start_angle

    fn set_start_angle(self: &Self, value: f64)
    

    Sets the angle at which the sector's arc starts, in degrees.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    Availability

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