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
offset_x: f64
Horizontal offset relative to the layout viewport (CSS pixels).
offset_y: f64
Vertical offset relative to the layout viewport (CSS pixels).
page_x: f64
Horizontal offset relative to the document (CSS pixels).
page_y: f64
Vertical offset relative to the document (CSS pixels).
client_width: f64
Width (CSS pixels), excludes scrollbar if present.
client_height: f64
Height (CSS pixels), excludes scrollbar if present.
scale: f64
Scale relative to the ideal viewport (size at width=device-width).
Trait Implementations
impl Clone for VisualViewport[src]
fn clone(&self) -> VisualViewport[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for VisualViewport[src]
impl PartialEq for VisualViewport[src]
fn eq(&self, __arg_0: &VisualViewport) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &VisualViewport) -> bool[src]
This method tests for !=.