Struct ggez::conf::Conf [−][src]
pub struct Conf { pub window_mode: WindowMode, pub window_setup: WindowSetup, pub backend: Backend, }
A structure containing configuration data for the game engine.
Defaults:
ⓘThis example is not tested
Conf { window_mode: WindowMode::default(), window_setup: WindowSetup::default(), backend: Backend::OpenGL(3, 2), }
Fields
window_mode: WindowMode
Window setting information that can be set at runtime
window_setup: WindowSetup
Window setting information that must be set at init-time
backend: Backend
Backend configuration
Methods
impl Conf
[src]
impl Conf
pub fn new() -> Self
[src]
pub fn new() -> Self
Same as Conf::default()
pub fn from_toml_file<R: Read>(file: &mut R) -> GameResult<Conf>
[src]
pub fn from_toml_file<R: Read>(file: &mut R) -> GameResult<Conf>
Load a TOML file from the given Read
and attempts to parse
a Conf
from it.
pub fn to_toml_file<W: Write>(&self, file: &mut W) -> GameResult<()>
[src]
pub fn to_toml_file<W: Write>(&self, file: &mut W) -> GameResult<()>
Saves the Conf
to the given Write
object,
formatted as TOML.
Trait Implementations
impl Debug for Conf
[src]
impl Debug for Conf
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Conf
[src]
impl PartialEq for Conf
fn eq(&self, other: &Conf) -> bool
[src]
fn eq(&self, other: &Conf) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Conf) -> bool
[src]
fn ne(&self, other: &Conf) -> bool
This method tests for !=
.
impl Default for Conf
[src]
impl Default for Conf