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

pub struct Conf {
    pub version: String,
    pub window_title: String,
    pub window_icon: String,
    pub window_height: u32,
    pub window_width: u32,
}

A structure containing configuration data for the game engine.

Fields

Version of ggez your game is designed to work with.

The window title.

A file path to the window's icon.

The window's default height

The window's default width

Methods

impl Conf
[src]

Create a new Conf with some vague defaults.

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

It only looks for things under the [ggez] section heading, so you can put your own sections in the file and use them for your own purposes and they will not interfere here.

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

Trait Implementations

impl Decodable for Conf
[src]

Deserialize a value using a Decoder.

impl Encodable for Conf
[src]

Serialize a value using an Encoder.

impl Debug for Conf
[src]

Formats the value using the given formatter.

impl PartialEq for Conf
[src]

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

This method tests for !=.

impl Default for Conf
[src]

Returns the "default value" for a type. Read more