Struct cdp::page::VisualViewport [] [src]

pub struct VisualViewport {
    pub offset_x: f64,
    pub offset_y: f64,
    pub page_x: f64,
    pub page_y: f64,
    pub client_width: f64,
    pub client_height: f64,
    pub scale: f64,
}

[Experimental] Visual viewport position, dimensions, and scale.

Fields

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

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

Horizontal offset relative to the document (CSS pixels).

Vertical offset relative to the document (CSS pixels).

Width (CSS pixels), excludes scrollbar if present.

Height (CSS pixels), excludes scrollbar if present.

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

Trait Implementations

impl Clone for VisualViewport
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for VisualViewport
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for VisualViewport
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.