Struct piston_window::CircleArc
source · pub struct CircleArc {
pub color: [f32; 4],
pub radius: f64,
pub start: f64,
pub end: f64,
pub resolution: u32,
}
Expand description
A curved line
Fields§
§color: [f32; 4]
The arcs color
radius: f64
The radius of the arc (Thickness of the drawing, not the radius of the circle)
start: f64
The start of the arc in radians
end: f64
The end of the arc in radians
resolution: u32
The resolution for the arc.
Implementations§
source§impl CircleArc
impl CircleArc
sourcepub fn radius(self, value: f64) -> CircleArc
pub fn radius(self, value: f64) -> CircleArc
Sets the radius of the arc (Thickness of the arc, not the radius of the circle it wraps)
sourcepub fn resolution(self, value: u32) -> CircleArc
pub fn resolution(self, value: u32) -> CircleArc
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§
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