Struct ggez::conf::WindowMode [] [src]

pub struct WindowMode {
    pub width: u32,
    pub height: u32,
    pub borderless: bool,
    pub fullscreen_type: FullscreenType,
    pub vsync: bool,
    pub min_width: u32,
    pub min_height: u32,
    pub max_width: u32,
    pub max_height: u32,
}

A builder structure containing window settings that can be set at runtime and changed with graphics::set_mode()

Defaults:

Be careful when using this code, it's not being tested!
WindowMode {
    width: 800,
    height: 600,
    borderless: false,
    fullscreen_type: FullscreenType::Off,
    vsync: true,
    min width: 0,
    max_width: 0,
    min_height: 0,
    max_height: 0,
}

Fields

Window width

Window height

Whether or not to show window decorations

Fullscreen type

Whether or not to enable vsync

Minimum width for resizable windows; 0 means no limit

Minimum height for resizable windows; 0 means no limit

Maximum width for resizable windows; 0 means no limit

Maximum height for resizable windows; 0 means no limit

Methods

impl WindowMode
[src]

[src]

Set borderless

[src]

Set the fullscreen type

[src]

Set vsync

[src]

Set default window size, or screen resolution in fullscreen mode

[src]

Set minimum window dimensions for windowed mode

[src]

Set maximum window dimensions for windowed mode

Trait Implementations

impl Debug for WindowMode
[src]

[src]

Formats the value using the given formatter.

impl Copy for WindowMode
[src]

impl Clone for WindowMode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for WindowMode
[src]

[src]

Return WindowMode { width: 800, height: 600, borderless: false, fullscreen_type: FullscreenType::Off, vsync: true, min_width: 0, min_height: 0, max_width: 0, max_height: 0 }

impl PartialEq for WindowMode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for WindowMode
[src]