pub struct ScrollbarAxis {
pub enabled: bool,
pub offset: f64,
pub content: f64,
pub hovered_bar: bool,
pub hovered_thumb: bool,
pub dragging: bool,
pub drag_thumb_offset: f64,
pub hover_anim: Tween,
pub visibility_anim: Tween,
}Fields§
§enabled: bool§offset: f64§content: f64§hovered_bar: bool§hovered_thumb: bool§dragging: bool§drag_thumb_offset: f64§hover_anim: Tween§visibility_anim: TweenImplementations§
Source§impl ScrollbarAxis
impl ScrollbarAxis
pub fn max_scroll(&self, viewport: f64) -> f64
pub fn interact(&self) -> bool
pub fn animation_active(&self) -> bool
pub fn can_scroll(&self, viewport: f64) -> bool
pub fn clamp_offset(&mut self, viewport: f64)
pub fn scroll_by(&mut self, delta: f64, viewport: f64) -> bool
pub fn thumb_metrics( &self, viewport: f64, style: ScrollBarStyle, geom: ScrollbarGeometry, ) -> Option<(f64, f64)>
pub fn pos_on_thumb( &self, pos: Point, viewport: f64, style: ScrollBarStyle, geom: ScrollbarGeometry, ) -> bool
pub fn pos_in_hover( &self, pos: Point, style: ScrollBarStyle, geom: ScrollbarGeometry, ) -> bool
pub fn update_hover( &mut self, pos: Point, viewport: f64, style: ScrollBarStyle, geom: ScrollbarGeometry, ) -> bool
pub fn begin_drag( &mut self, pos: Point, viewport: f64, style: ScrollBarStyle, geom: ScrollbarGeometry, ) -> bool
pub fn drag_to( &mut self, pos: Point, viewport: f64, style: ScrollBarStyle, geom: ScrollbarGeometry, ) -> bool
pub fn page_at( &mut self, pos: Point, viewport: f64, style: ScrollBarStyle, geom: ScrollbarGeometry, ) -> bool
pub fn should_paint( &self, viewport: f64, style: ScrollBarStyle, visibility: ScrollBarVisibility, ) -> bool
pub fn prepare_paint( &mut self, viewport: f64, style: ScrollBarStyle, visibility: ScrollBarVisibility, geom: ScrollbarGeometry, ) -> Option<PreparedScrollbar>
Trait Implementations§
Source§impl Clone for ScrollbarAxis
impl Clone for ScrollbarAxis
impl Copy for ScrollbarAxis
Auto Trait Implementations§
impl Freeze for ScrollbarAxis
impl RefUnwindSafe for ScrollbarAxis
impl Send for ScrollbarAxis
impl Sync for ScrollbarAxis
impl Unpin for ScrollbarAxis
impl UnsafeUnpin for ScrollbarAxis
impl UnwindSafe for ScrollbarAxis
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().