[][src]Struct beryllium::DisplayMode

pub struct DisplayMode {
    pub format: PixelFormatEnum,
    pub width: i32,
    pub height: i32,
    pub refresh_rate: i32,
    // some fields omitted
}

A description of a fullscreen display mode.

Fields

format: PixelFormatEnum

The screen's format

width: i32

Width, in logical units

height: i32

Height, in logical units

refresh_rate: i32

Refresh rate in Hz, or 0 if unspecified.

Methods

impl DisplayMode[src]

pub const fn new(
    format: PixelFormatEnum,
    width: i32,
    height: i32,
    refresh_rate: i32
) -> Self
[src]

Constructs a new display mode as specified.

This is necessary because the display mode has a hidden driver data pointer which must be initialized to null and not altered by outside users.

Trait Implementations

impl From<SDL_DisplayMode> for DisplayMode[src]

impl From<DisplayMode> for SDL_DisplayMode[src]

impl Clone for DisplayMode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for DisplayMode[src]

impl Debug for DisplayMode[src]

Auto Trait Implementations

Blanket Implementations

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]