Struct chrome_remote_interface_model::overlay::ScreenshotRequestedEvent[][src]

pub struct ScreenshotRequestedEvent { /* fields omitted */ }
This is supported on crate features experimental and Overlay and DOM and Page and Runtime only.

Fired when user asks to capture screenshot of some area on the page.

Implementations

impl ScreenshotRequestedEvent[src]

pub fn new(viewport: Viewport) -> Self[src]

pub fn viewport(&self) -> &Viewport[src]

Viewport to capture, in device independent pixels (dip).

Methods from Deref<Target = Viewport>

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

This is supported on crate features Debugger and IO and Network only.

X offset in device independent pixels (dip).

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

This is supported on crate features Debugger and IO and Network only.

Y offset in device independent pixels (dip).

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

This is supported on crate features Debugger and IO and Network only.

Rectangle width in device independent pixels (dip).

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

This is supported on crate features Debugger and IO and Network only.

Rectangle height in device independent pixels (dip).

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

This is supported on crate features Debugger and IO and Network only.

Page scale factor.

Trait Implementations

impl Clone for ScreenshotRequestedEvent[src]

impl Debug for ScreenshotRequestedEvent[src]

impl Deref for ScreenshotRequestedEvent[src]

type Target = Viewport

The resulting type after dereferencing.

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

impl Serialize for ScreenshotRequestedEvent[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.