Enum freya::hooks::ScrollController
pub enum ScrollController {
Vertical(StateMode),
Horizontal(StateMode),
Both {
vertical: StateMode,
horizontal: StateMode,
},
}
Variants§
Implementations§
§impl ScrollController
impl ScrollController
pub fn new_vertical(mode: StateMode) -> ScrollController
pub fn new_horizontal(mode: StateMode) -> ScrollController
pub fn new_both(vertical: StateMode, horizontal: StateMode) -> ScrollController
pub fn scroll_y(&self, pos: i32)
pub fn scroll_x(&self, pos: i32)
pub fn read_y(&self) -> i32
pub fn read_x(&self) -> i32
Trait Implementations§
§impl Clone for ScrollController
impl Clone for ScrollController
§fn clone(&self) -> ScrollController
fn clone(&self) -> ScrollController
Returns a copy of the value. Read more
1.0.0 · 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 ScrollController
impl !Send for ScrollController
impl !Sync for ScrollController
impl Unpin for ScrollController
impl !UnwindSafe for ScrollController
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