Struct cdp::page::Viewport
[−]
[src]
pub struct Viewport { pub x: f64, pub y: f64, pub width: f64, pub height: f64, pub scale: f64, }
[Experimental] Viewport for capturing screenshot.
Fields
x: f64
X offset in CSS pixels.
y: f64
Y offset in CSS pixels
width: f64
Rectangle width in CSS pixels
height: f64
Rectangle height in CSS pixels
scale: f64
Page scale factor.
Trait Implementations
impl Clone for Viewport
[src]
fn clone(&self) -> Viewport
[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