[−][src]Struct graphics::circle_arc::CircleArc
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.
Methods
impl CircleArc
[src]
pub fn new(
color: Color,
radius: Radius,
start: Scalar,
end: Scalar
) -> CircleArc
[src]
color: Color,
radius: Radius,
start: Scalar,
end: Scalar
) -> CircleArc
Creates a new arc
pub fn color(self, value: Color) -> Self
[src]
Sets the arcs color.
pub fn radius(self, value: Radius) -> Self
[src]
Sets the radius of the arc (Thickness of the arc, not the radius of the circle it wraps)
pub fn start(self, value: Scalar) -> Self
[src]
Sets the start of the arc (in radians).
pub fn end(self, value: Scalar) -> Self
[src]
Sets the end of the arc (in radians).
pub fn resolution(self, value: Resolution) -> Self
[src]
Sets the resolution of the arcs smoothness.
pub fn draw<R: Into<Rectangle>, G>(
&self,
rectangle: R,
draw_state: &DrawState,
transform: Matrix2d,
g: &mut G
) where
G: Graphics,
[src]
&self,
rectangle: R,
draw_state: &DrawState,
transform: Matrix2d,
g: &mut G
) where
G: Graphics,
Draws circle arc using default method.
pub fn draw_tri<R: Into<Rectangle>, G>(
&self,
rectangle: R,
draw_state: &DrawState,
transform: Matrix2d,
g: &mut G
) where
G: Graphics,
[src]
&self,
rectangle: R,
draw_state: &DrawState,
transform: Matrix2d,
g: &mut G
) where
G: Graphics,
Draws circle arc using triangulation.
Trait Implementations
impl Clone for CircleArc
[src]
fn clone(&self) -> CircleArc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for CircleArc
[src]
Auto Trait Implementations
impl Sync for CircleArc
impl Send for CircleArc
impl Unpin for CircleArc
impl RefUnwindSafe for CircleArc
impl UnwindSafe for CircleArc
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,