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

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,


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.


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Erased for T[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> MaybeBoxed<Box<T, Global>> for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,