Struct chrome_remote_interface_model::page::VisualViewport[][src]

pub struct VisualViewport { /* fields omitted */ }

Visual viewport position, dimensions, and scale.

Implementations

impl VisualViewport[src]

pub fn builder() -> VisualViewportBuilder[src]

pub fn offset_x(&self) -> f64[src]

Horizontal offset relative to the layout viewport (CSS pixels).

pub fn offset_y(&self) -> f64[src]

Vertical offset relative to the layout viewport (CSS pixels).

pub fn page_x(&self) -> f64[src]

Horizontal offset relative to the document (CSS pixels).

pub fn page_y(&self) -> f64[src]

Vertical offset relative to the document (CSS pixels).

pub fn client_width(&self) -> f64[src]

Width (CSS pixels), excludes scrollbar if present.

pub fn client_height(&self) -> f64[src]

Height (CSS pixels), excludes scrollbar if present.

pub fn scale(&self) -> f64[src]

Scale relative to the ideal viewport (size at width=device-width).

pub fn zoom(&self) -> Option<&f64>[src]

Page zoom factor (CSS to device independent pixels ratio).

Trait Implementations

impl Clone for VisualViewport[src]

impl Debug for VisualViewport[src]

impl<'de> Deserialize<'de> for VisualViewport[src]

impl Serialize for VisualViewport[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.