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

pub struct Conf {
    pub window_mode: WindowMode,
    pub window_setup: WindowSetup,
    pub backend: Backend,
    pub modules: ModuleConf,
}

A structure containing configuration data for the game engine.

Defaults:

Conf {
    window_mode: WindowMode::default(),
    window_setup: WindowSetup::default(),
    backend: Backend::default(),
    modules: ModuleConf::default(),
}

Fields

Window setting information that can be set at runtime

Window setting information that must be set at init-time

Backend configuration

Which modules to enable.

Methods

impl Conf
[src]

Same as Conf::default()

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

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

Sets the window mode

Sets the backend

Sets the backend

Trait Implementations

impl PartialEq<Conf> for Conf
[src]

impl Clone for Conf
[src]

Performs copy-assignment from source. Read more

impl Default for Conf
[src]

Return Conf { window_mode: Default::default(), window_setup: Default::default(), backend: Default::default(), modules: Default::default() }

impl Debug for Conf
[src]

impl Serialize for Conf
[src]

impl<'de> Deserialize<'de> for Conf
[src]

Auto Trait Implementations

impl Send for Conf

impl Sync for Conf

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Same for T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]