Struct chrome_remote_interface_model::emulation::DisplayFeature[][src]

pub struct DisplayFeature { /* fields omitted */ }

Implementations

impl DisplayFeature[src]

pub fn new(
    orientation: DisplayFeatureOrientation,
    offset: u32,
    mask_length: u32
) -> Self
[src]

pub fn orientation(&self) -> &DisplayFeatureOrientation[src]

Orientation of a display feature in relation to screen

pub fn offset(&self) -> u32[src]

The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction.

pub fn mask_length(&self) -> u32[src]

A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length.

Trait Implementations

impl Clone for DisplayFeature[src]

impl Debug for DisplayFeature[src]

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

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