pub struct ViewportHandle(/* private fields */);Expand description
A viewport’s stable identity and reactive geometry, owned by its component instance.
Implementations§
Source§impl ViewportHandle
impl ViewportHandle
pub fn dragging(&self) -> bool
pub fn flicking(&self) -> bool
pub fn moving(&self) -> bool
pub fn rebounding(&self) -> bool
pub fn horizontal_overshoot(&self) -> Length
pub fn vertical_overshoot(&self) -> Length
pub fn content_x(&self) -> Length
pub fn content_y(&self) -> Length
pub fn visible_width(&self) -> Length
pub fn visible_height(&self) -> Length
pub fn effective_scroll_bar_width(&self) -> Length
pub fn effective_scroll_bar_height(&self) -> Length
pub fn scroll_position(&self, axis: Orientation) -> f64
pub fn scroll_size(&self, axis: Orientation) -> f64
pub fn request(&self, action: ScrollAction)
Trait Implementations§
Source§impl Clone for ViewportHandle
impl Clone for ViewportHandle
Source§impl Debug for ViewportHandle
impl Debug for ViewportHandle
Source§impl Default for ViewportHandle
impl Default for ViewportHandle
Auto Trait Implementations§
impl !RefUnwindSafe for ViewportHandle
impl !Send for ViewportHandle
impl !Sync for ViewportHandle
impl !UnwindSafe for ViewportHandle
impl Forget for ViewportHandle
impl Freeze for ViewportHandle
impl Move for ViewportHandle
impl Unpin for ViewportHandle
impl UnsafeUnpin for ViewportHandle
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