pub struct IndicatorGeometry {
pub thumb: f32,
pub offset: f32,
}Expand description
Where the thumb sits inside the track and how long it is, both as fractions of the whole track.
Fields§
§thumb: f32Thumb length as a share of the track, clamped to Wear’s range.
offset: f32The thumb’s leading edge: 0.0 at the top, 1.0 - thumb at the bottom.
Trait Implementations§
Source§impl Clone for IndicatorGeometry
impl Clone for IndicatorGeometry
Source§fn clone(&self) -> IndicatorGeometry
fn clone(&self) -> IndicatorGeometry
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 IndicatorGeometry
Source§impl Debug for IndicatorGeometry
impl Debug for IndicatorGeometry
Source§impl PartialEq for IndicatorGeometry
impl PartialEq for IndicatorGeometry
impl StructuralPartialEq for IndicatorGeometry
Auto Trait Implementations§
impl Freeze for IndicatorGeometry
impl RefUnwindSafe for IndicatorGeometry
impl Send for IndicatorGeometry
impl Sync for IndicatorGeometry
impl Unpin for IndicatorGeometry
impl UnsafeUnpin for IndicatorGeometry
impl UnwindSafe for IndicatorGeometry
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