Struct chrome_remote_interface_model::page::VisualViewport [−][src]
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]
fn clone(&self) -> VisualViewport
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VisualViewport
[src]
impl<'de> Deserialize<'de> for VisualViewport
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for VisualViewport
[src]
Auto Trait Implementations
impl RefUnwindSafe for VisualViewport
[src]
impl Send for VisualViewport
[src]
impl Sync for VisualViewport
[src]
impl Unpin for VisualViewport
[src]
impl UnwindSafe for VisualViewport
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,