Struct cogl::Output[][src]

pub struct Output(_, _);

Implementations

impl Output[src]

pub fn get_height(&self) -> i32[src]

Gets the height of the output in pixels.

Returns

the height of the output in pixels

pub fn get_mm_height(&self) -> i32[src]

Gets the physical height of the output. In some cases (such as as a projector), the value returned here might correspond to nominal resolution rather than the actual physical size of the output device.

Returns

the height of the output in millimeters. A value of 0 indicates that the height is unknown

pub fn get_mm_width(&self) -> i32[src]

Gets the physical width of the output. In some cases (such as as a projector), the value returned here might correspond to nominal resolution rather than the actual physical size of the output device.

Returns

the height of the output in millimeters. A value of 0 indicates the width is unknown

pub fn get_refresh_rate(&self) -> f32[src]

Gets the number of times per second that the output device refreshes the display contents.

Returns

the refresh rate of the output device. A value of zero indicates that the refresh rate is unknown.

pub fn get_subpixel_order(&self) -> SubpixelOrder[src]

For an output device where each pixel is made up of smaller components with different colors, returns the layout of the subpixel components.

Returns

the order of subpixel components for the output device

pub fn get_width(&self) -> i32[src]

Gets the width of the output in pixels.

Returns

the width of the output in pixels

pub fn get_x(&self) -> i32[src]

Gets the X position of the output with respect to the coordinate system of the screen.

Returns

the X position of the output as a pixel offset from the left side of the screen coordinate space

pub fn get_y(&self) -> i32[src]

Gets the Y position of the output with respect to the coordinate system of the screen.

Returns

the Y position of the output as a pixel offset from the top side of the screen coordinate space

Trait Implementations

impl Clone for Output[src]

impl Debug for Output[src]

impl Display for Output[src]

impl Eq for Output[src]

impl Hash for Output[src]

impl IsA<Object> for Output[src]

impl Ord for Output[src]

impl<T: ObjectType> PartialEq<T> for Output[src]

impl<T: ObjectType> PartialOrd<T> for Output[src]

impl StaticType for Output[src]

Auto Trait Implementations

impl RefUnwindSafe for Output

impl !Send for Output

impl !Sync for Output

impl Unpin for Output

impl UnwindSafe for Output

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<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

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

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

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

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.