Struct ggez::conf::WindowSetup [] [src]

pub struct WindowSetup {
    pub title: String,
    pub icon: String,
    pub resizable: bool,
    pub allow_highdpi: bool,
    pub samples: NumSamples,
}

A builder structure containing window settings that must be set at init time and cannot be changed afterwards.

Defaults:

This example is not tested
WindowSetup {
    title: "An easy, good game".to_owned(),
    icon: "".to_owned(),
    resizable: false,
    allow_highdpi: true,
    samples: NumSamples::One,
}

Fields

The window title.

A file path to the window's icon. It is rooted in the resources directory (see the filesystem module for details), and an empty string results in a blank/default icon.

Whether or not the window is resizable

Whether or not to allow high DPI mode when creating the window

Number of samples for multisample anti-aliasing

Methods

impl WindowSetup
[src]

[src]

Set window title

[src]

Set the window's icon.

[src]

Set resizable

[src]

Set allow_highdpi

[src]

Set number of samples

Returns None if given an invalid value (valid values are powers of 2 from 1 to 16)

Trait Implementations

impl Debug for WindowSetup
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for WindowSetup
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for WindowSetup
[src]

[src]

Return WindowSetup { title: "An easy, good game".to_owned(), icon: "".to_owned(), resizable: false, allow_highdpi: true, samples: NumSamples::One }

impl PartialEq for WindowSetup
[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 WindowSetup
[src]

Auto Trait Implementations

impl Send for WindowSetup

impl Sync for WindowSetup