[][src]Struct compositing::windowing::EmbedderCoordinates

pub struct EmbedderCoordinates {
    pub hidpi_factor: Scale<f32, DeviceIndependentPixel, DevicePixel>,
    pub screen: DeviceIntSize,
    pub screen_avail: DeviceIntSize,
    pub window: (DeviceIntSize, DeviceIntPoint),
    pub framebuffer: DeviceIntSize,
    pub viewport: DeviceIntRect,
}

Fields

hidpi_factor: Scale<f32, DeviceIndependentPixel, DevicePixel>

The pixel density of the display.

screen: DeviceIntSize

Size of the screen.

screen_avail: DeviceIntSize

Size of the available screen space (screen without toolbars and docks).

window: (DeviceIntSize, DeviceIntPoint)

Size of the native window.

framebuffer: DeviceIntSize

Size of the GL buffer in the window.

viewport: DeviceIntRect

Coordinates of the document within the framebuffer.

Implementations

impl EmbedderCoordinates[src]

pub fn get_flipped_viewport(&self) -> DeviceIntRect[src]

Trait Implementations

impl Clone for EmbedderCoordinates[src]

impl Copy for EmbedderCoordinates[src]

impl Debug for EmbedderCoordinates[src]

Auto Trait Implementations

impl RefUnwindSafe for EmbedderCoordinates

impl Send for EmbedderCoordinates

impl Sync for EmbedderCoordinates

impl Unpin for EmbedderCoordinates

impl UnwindSafe for EmbedderCoordinates

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SetParameter for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]