Struct amethyst_config::DisplayConfig
[−]
[src]
pub struct DisplayConfig { pub title: String, pub brightness: f64, pub fullscreen: bool, pub dimensions: (u16, u16), pub min_dimensions: Option<(u16, u16)>, pub max_dimensions: Option<(u16, u16)>, pub vsync: bool, pub multisampling: u16, pub visibility: bool, // some fields omitted }
Fields
title: String
brightness: f64
fullscreen: bool
dimensions: (u16, u16)
min_dimensions: Option<(u16, u16)>
max_dimensions: Option<(u16, u16)>
vsync: bool
multisampling: u16
visibility: bool
Methods
impl DisplayConfig
[src]
Trait Implementations
impl Debug for DisplayConfig
[src]
impl Clone for DisplayConfig
[src]
fn clone(&self) -> DisplayConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for DisplayConfig
[src]
impl Element for DisplayConfig
[src]
fn from_yaml(meta: &ConfigMeta, config: &Yaml) -> Result<Self, ConfigError>
Convert yaml element into a rust type, Raises an error if it is not the yaml element expected Read more
fn to_yaml(&self, path: &Path) -> Yaml
Converts rust type into a yaml element for writing Requires the path for external configs Read more
fn set_meta(&mut self, meta: &ConfigMeta)
Sets the meta data of a config structure, only works on config structures
fn meta(&self) -> Option<ConfigMeta>
Returns meta data if it is a config structure
fn write_file(&self) -> Result<(), ConfigError>
Recursively writes to files given the configuration's current context. Read more
fn from_file_raw(meta: &ConfigMeta, path: &Path) -> Result<Self, ConfigError>
From a file relative to current config
fn from_file(path: &Path) -> Result<Self, ConfigError>
From a file relative to project