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§
source§impl 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 Freeze for CircleArc
impl RefUnwindSafe for CircleArc
impl Send for CircleArc
impl Sync for CircleArc
impl Unpin for CircleArc
impl UnwindSafe for CircleArc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)