ArcSegment
struct · ferroui-base · v0.5.0
struct ArcSegment
An elliptical arc segment of a path figure.
Members
TYPEto_refis_large_arc_propertypoint_propertyrotation_angle_propertysize_propertysweep_direction_propertyconstructnewis_large_arcset_is_large_arcpointset_pointrotation_angleset_rotation_anglesizeset_sizesweep_directionset_sweep_direction
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ArcSegment>
Returns a strong reference to this object.
is_large_arc_property
fn is_large_arc_property() -> &'static StyledProperty<bool>
point_property
fn point_property() -> &'static StyledProperty<Point>
rotation_angle_property
fn rotation_angle_property() -> &'static StyledProperty<f64>
size_property
fn size_property() -> &'static StyledProperty<Size>
sweep_direction_property
fn sweep_direction_property() -> &'static StyledProperty<SweepDirection>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
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.
set_is_large_arc
fn set_is_large_arc(self: &Self, value: bool)
point
fn point(self: &Self) -> Point
The destination point where the arc ends.
set_point
fn set_point(self: &Self, value: Point)
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.
set_rotation_angle
fn set_rotation_angle(self: &Self, value: f64)
size
fn size(self: &Self) -> Size
The radii of the ellipse whose path is used to draw the arc.
set_size
fn set_size(self: &Self, value: Size)
sweep_direction
fn sweep_direction(self: &Self) -> SweepDirection
The sweep direction which indicates whether the arc is drawn in the Clockwise or Counterclockwise direction.
set_sweep_direction
fn set_sweep_direction(self: &Self, value: SweepDirection)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePathSegmentImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<ArcSegment>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplPathSegmentImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.