Struct mini_gl_fb::config::Config[][src]

pub struct Config<S: ToString> {
    pub buffer_size: (u32, u32),
    pub resizable: bool,
    pub window_title: S,
    pub window_size: (f64, f64),
}

Configuration for "advanced" use cases, when gotta_go_fast isn't doing what you need.

The following pattern is reccomended when creating a config:

let config = Config {
    /* specify whichever fields you need to set, for example: */
    window_size: (100.0, 100.0),
    resizable: false,
    .. Default::default()
}

If there's a config option you want to see or think is missing, please open an issue!

Fields

Sets the scale of the buffer. The buffer will automatically scale to the size of the window. By default this will be the same size as the window_size.

Trait Implementations

impl<'a> Default for Config<&'a str>
[src]

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

impl Default for Config<String>
[src]

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

Auto Trait Implementations

impl<S> Send for Config<S> where
    S: Send

impl<S> Sync for Config<S> where
    S: Sync