FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ArcSegment

    struct · ferroui-base · v0.5.0

    struct ArcSegment
    

    An elliptical arc segment of a path figure.

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

    Returns a strong reference to this object.

    Source

    is_large_arc_property

    fn is_large_arc_property() -> &'static StyledProperty<bool>
    

    Source

    point_property

    fn point_property() -> &'static StyledProperty<Point>
    

    Source

    rotation_angle_property

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

    Source

    size_property

    fn size_property() -> &'static StyledProperty<Size>
    

    Source

    sweep_direction_property

    fn sweep_direction_property() -> &'static StyledProperty<SweepDirection>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    is_large_arc

    fn is_large_arc(self: &Self) -> bool
    

    Whether the arc should follow the longer path around an ellipse rather than the shorter one.

    true to draw the arc greater than 180 degrees; otherwise, false.

    Source

    set_is_large_arc

    fn set_is_large_arc(self: &Self, value: bool)
    

    Source

    point

    fn point(self: &Self) -> Point
    

    The destination point where the arc ends.

    Source

    set_point

    fn set_point(self: &Self, value: Point)
    

    Source

    rotation_angle

    fn rotation_angle(self: &Self) -> f64
    

    The rotation angle (in degrees) of the ellipse that specifies the path of the arc; positive values are clockwise.

    This will rotate the entire arc relative to the X-axis and is not commonly used.

    Source

    set_rotation_angle

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

    Source

    size

    fn size(self: &Self) -> Size
    

    The radii of the ellipse whose path is used to draw the arc.

    Source

    set_size

    fn set_size(self: &Self, value: Size)
    

    Source

    sweep_direction

    fn sweep_direction(self: &Self) -> SweepDirection
    

    The sweep direction which indicates whether the arc is drawn in the Clockwise or Counterclockwise direction.

    Source

    set_sweep_direction

    fn set_sweep_direction(self: &Self, value: SweepDirection)
    

    Source

    Trait implementations

    Availability

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