pub struct ThumbGeometry {
pub length: f32,
pub offset: f32,
}Expand description
Thumb length and position, both as fractions of the track.
Fields§
§length: f32The thumb’s share of the track, in 0..=1.
offset: f32The thumb’s leading edge: 0.0 at the start of the track, and
1.0 - length once the content is scrolled to the end.
Implementations§
Trait Implementations§
Source§impl Clone for ThumbGeometry
impl Clone for ThumbGeometry
Source§fn clone(&self) -> ThumbGeometry
fn clone(&self) -> ThumbGeometry
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 ThumbGeometry
Source§impl Debug for ThumbGeometry
impl Debug for ThumbGeometry
Source§impl PartialEq for ThumbGeometry
impl PartialEq for ThumbGeometry
impl StructuralPartialEq for ThumbGeometry
Auto Trait Implementations§
impl Freeze for ThumbGeometry
impl RefUnwindSafe for ThumbGeometry
impl Send for ThumbGeometry
impl Sync for ThumbGeometry
impl Unpin for ThumbGeometry
impl UnsafeUnpin for ThumbGeometry
impl UnwindSafe for ThumbGeometry
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