pub struct ScrollMetrics {
pub x: f64,
pub y: f64,
pub viewport_width: f64,
pub viewport_height: f64,
pub content_width: f64,
pub content_height: f64,
}Expand description
Logical pixels at one accepted query watermark. Native/browser offsets can be negative (RTL/elastic scrolling); dimensions are finite and nonnegative. Content dimensions are independent and need not exceed viewport dimensions.
Fields§
§x: f64§y: f64§viewport_width: f64§viewport_height: f64§content_width: f64§content_height: f64Implementations§
Trait Implementations§
Source§impl Clone for ScrollMetrics
impl Clone for ScrollMetrics
Source§fn clone(&self) -> ScrollMetrics
fn clone(&self) -> ScrollMetrics
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 moreimpl Copy for ScrollMetrics
Source§impl Debug for ScrollMetrics
impl Debug for ScrollMetrics
Source§impl Default for ScrollMetrics
impl Default for ScrollMetrics
Source§fn default() -> ScrollMetrics
fn default() -> ScrollMetrics
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScrollMetrics
impl PartialEq for ScrollMetrics
impl StructuralPartialEq for ScrollMetrics
Auto Trait Implementations§
impl Freeze for ScrollMetrics
impl RefUnwindSafe for ScrollMetrics
impl Send for ScrollMetrics
impl Sync for ScrollMetrics
impl Unpin for ScrollMetrics
impl UnsafeUnpin for ScrollMetrics
impl UnwindSafe for ScrollMetrics
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