pub struct IndicatorArc { /* private fields */ }Expand description
Where the track sits on a display of the given radius.
Implementations§
Source§impl IndicatorArc
impl IndicatorArc
Sourcepub fn centreline(self) -> f32
pub fn centreline(self) -> f32
Radius of the stroke’s centreline.
Sourcepub fn segment_inset(self) -> f32
pub fn segment_inset(self) -> f32
Angular amount removed from each segment before its round caps draw.
Sourcepub fn start_angle(self) -> f32
pub fn start_angle(self) -> f32
The angle at which the track starts, measured the way a canvas measures
it: 0 at 3 o’clock, increasing clockwise.
Sourcepub fn cap_sweep(self) -> f32
pub fn cap_sweep(self) -> f32
How much angle a round cap adds beyond the nominal arc at each end.
Wear draws each segment inset by half a cap at the start and a whole cap shorter, so the round caps put the ink back exactly on the nominal bounds. A caller that draws with a butt cap wants this to be zero.
Trait Implementations§
Source§impl Clone for IndicatorArc
impl Clone for IndicatorArc
Source§fn clone(&self) -> IndicatorArc
fn clone(&self) -> IndicatorArc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IndicatorArc
Source§impl Debug for IndicatorArc
impl Debug for IndicatorArc
Source§impl PartialEq for IndicatorArc
impl PartialEq for IndicatorArc
impl StructuralPartialEq for IndicatorArc
Auto Trait Implementations§
impl Freeze for IndicatorArc
impl RefUnwindSafe for IndicatorArc
impl Send for IndicatorArc
impl Sync for IndicatorArc
impl Unpin for IndicatorArc
impl UnsafeUnpin for IndicatorArc
impl UnwindSafe for IndicatorArc
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