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:

This example is not 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]

Set borderless

Set the fullscreen type

Set vsync

Set default window size, or screen resolution in fullscreen mode

Set minimum window dimensions for windowed mode

Set maximum window dimensions for windowed mode

Trait Implementations

impl Debug for WindowMode
[src]

Formats the value using the given formatter. Read more

impl Copy for WindowMode
[src]

impl Clone for WindowMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for WindowMode
[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]

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

This method tests for !=.

impl Eq for WindowMode
[src]

Auto Trait Implementations

impl Send for WindowMode

impl Sync for WindowMode