Struct ggez::conf::Conf [] [src]

pub struct Conf {
    pub window_title: String,
    pub window_icon: String,
    pub window_height: u32,
    pub window_width: u32,
    pub vsync: bool,
    pub resizable: bool,
}

A structure containing configuration data for the game engine.

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.

The window's height

The window's width

Whether or not the graphics draw rate should be synchronized with the monitor's draw rate.

Methods

impl Conf
[src]

[src]

Same as Conf::default()

[src]

Load a TOML file from the given Read and attempts to parse a Conf from it.

[src]

Saves the Conf to the given Write object, formatted as TOML.

Trait Implementations

impl Debug for Conf
[src]

[src]

Formats the value using the given formatter.

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

[src]

Create a new Conf with some vague defaults.

Be careful when using this code, it's not being tested!
Conf {
    window_title: "An easy, good game"
    window_icon: ""
    window_height: 600
    window_width: 800
    vsync: true
}