[−][src]Struct ggez::conf::Conf
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_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
modules: ModuleConf
Which modules to enable.
Methods
impl Conf
[src]
pub fn new() -> Self
[src]
Same as Conf::default()
pub 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.
pub fn to_toml_file<W: Write>(&self, file: &mut W) -> GameResult
[src]
Saves the Conf
to the given Write
object,
formatted as TOML.
pub fn window_mode(self, window_mode: WindowMode) -> Self
[src]
Sets the window mode
pub fn backend(self, backend: Backend) -> Self
[src]
Sets the backend
pub fn modules(self, modules: ModuleConf) -> Self
[src]
Sets the backend
Trait Implementations
impl PartialEq<Conf> for Conf
[src]
impl Clone for Conf
[src]
fn clone(&self) -> Conf
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Conf
[src]
fn default() -> Self
[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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Conf
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> SetParameter for T
default fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.