pub struct ScrollState { /* private fields */ }Implementations§
Source§impl ScrollState
impl ScrollState
pub fn new() -> Self
pub fn offset_x(&self) -> f32
pub fn offset_y(&self) -> f32
pub fn content_width(&self) -> f32
pub fn content_height(&self) -> f32
pub fn viewport_width(&self) -> f32
pub fn viewport_height(&self) -> f32
pub fn set_offset_x(&self, next: f32)
pub fn set_offset_y(&self, next: f32)
pub fn set_content_width(&self, next: f32)
pub fn set_content_height(&self, next: f32)
pub fn set_viewport_width(&self, next: f32)
pub fn set_viewport_height(&self, next: f32)
pub fn subscribe_offset_x(&self, handler: impl Fn() + 'static) -> Subscription
pub fn subscribe_offset_y(&self, handler: impl Fn() + 'static) -> Subscription
pub fn subscribe_content_width( &self, handler: impl Fn() + 'static, ) -> Subscription
pub fn subscribe_content_height( &self, handler: impl Fn() + 'static, ) -> Subscription
pub fn subscribe_viewport_width( &self, handler: impl Fn() + 'static, ) -> Subscription
pub fn subscribe_viewport_height( &self, handler: impl Fn() + 'static, ) -> Subscription
Trait Implementations§
Source§impl Clone for ScrollState
impl Clone for ScrollState
Source§fn clone(&self) -> ScrollState
fn clone(&self) -> ScrollState
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 !RefUnwindSafe for ScrollState
impl !Send for ScrollState
impl !Sync for ScrollState
impl !UnwindSafe for ScrollState
impl Freeze for ScrollState
impl Unpin for ScrollState
impl UnsafeUnpin for ScrollState
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