pub struct HorizontalScrollState { /* private fields */ }Expand description
X-only state
Implementations§
Source§impl HorizontalScrollState
impl HorizontalScrollState
pub fn new() -> Self
pub fn set_overscroll_enabled(&mut self, enabled: bool)
pub fn overscroll_offset(&self) -> f32
pub fn set_nested_scroll_parent(&self, conn: NestedScrollConnection)
pub fn set_show_scrollbar(&self, show: bool)
pub fn set_viewport_width(&self, w: f32)
pub fn set_content_width(&self, w: f32)
pub fn set_overscroll(&self, val: f32)
pub fn set_offset(&self, off: f32)
pub fn get(&self) -> f32
pub fn scroll_immediate(&self, dx: f32) -> f32
pub fn tick(&self) -> bool
pub fn show_scrollbar(&self) -> bool
pub fn to_binding(&self) -> ScrollBinding
Trait Implementations§
Source§impl Clone for HorizontalScrollState
impl Clone for HorizontalScrollState
Source§fn clone(&self) -> HorizontalScrollState
fn clone(&self) -> HorizontalScrollState
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 moreAuto Trait Implementations§
impl !Freeze for HorizontalScrollState
impl !RefUnwindSafe for HorizontalScrollState
impl !Send for HorizontalScrollState
impl !Sync for HorizontalScrollState
impl !UnwindSafe for HorizontalScrollState
impl Unpin for HorizontalScrollState
impl UnsafeUnpin for HorizontalScrollState
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