pub struct VisualViewportState {
pub width: f64,
pub height: f64,
pub offset_x: f64,
pub offset_y: f64,
pub page_scroll_x: f64,
pub page_scroll_y: f64,
}Expand description
Browser visual viewport state used when page scrolling participates in root scroller behavior.
Fields§
§width: f64§height: f64§offset_x: f64§offset_y: f64§page_scroll_x: f64§page_scroll_y: f64Trait Implementations§
Source§impl Clone for VisualViewportState
impl Clone for VisualViewportState
impl Copy for VisualViewportState
Source§impl Debug for VisualViewportState
impl Debug for VisualViewportState
Auto Trait Implementations§
impl Freeze for VisualViewportState
impl RefUnwindSafe for VisualViewportState
impl Send for VisualViewportState
impl Sync for VisualViewportState
impl Unpin for VisualViewportState
impl UnsafeUnpin for VisualViewportState
impl UnwindSafe for VisualViewportState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.