Struct graphics::circle_arc::CircleArc
source · pub struct CircleArc {
pub color: Color,
pub radius: Radius,
pub start: Scalar,
pub end: Scalar,
pub resolution: Resolution,
}
Expand description
A curved line
Fields
color: Color
The arcs color
radius: Radius
The radius of the arc (Thickness of the drawing, not the radius of the circle)
start: Scalar
The start of the arc in radians
end: Scalar
The end of the arc in radians
resolution: Resolution
The resolution for the arc.
Implementations
sourceimpl CircleArc
impl CircleArc
sourcepub fn new(color: Color, radius: Radius, start: Scalar, end: Scalar) -> CircleArc
pub fn new(color: Color, radius: Radius, start: Scalar, end: Scalar) -> CircleArc
Creates a new arc
sourcepub fn radius(self, value: Radius) -> Self
pub fn radius(self, value: Radius) -> Self
Sets the radius of the arc (Thickness of the arc, not the radius of the circle it wraps)
sourcepub fn resolution(self, value: Resolution) -> Self
pub fn resolution(self, value: Resolution) -> Self
Sets the resolution of the arcs smoothness.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CircleArc
impl Send for CircleArc
impl Sync for CircleArc
impl Unpin for CircleArc
impl UnwindSafe for CircleArc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more