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
window_title: String
The window title.
window_icon: String
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.
window_height: u32
The window's height
window_width: u32
The window's width
vsync: bool
Whether or not the graphics draw rate should be synchronized with the monitor's draw rate.
resizable: bool
Methods
impl Conf
[src]
fn new() -> Self
[src]
Same as Conf::default()
fn from_toml_file<R: Read>(file: &mut R) -> GameResult<Conf>
[src]
Load a TOML file from the given Read
and attempts to parse
a Conf
from it.
fn to_toml_file<W: Write>(&self, file: &mut W) -> GameResult<()>
[src]
Saves the Conf
to the given Write
object,
formatted as TOML.
Trait Implementations
impl Debug for Conf
[src]
impl PartialEq for Conf
[src]
fn eq(&self, __arg_0: &Conf) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Conf) -> bool
[src]
This method tests for !=
.