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 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 Debug for DisplayConfig
[src]
impl Default for DisplayConfig
[src]
impl Element for DisplayConfig
[src]
fn from_yaml(meta: &ConfigMeta, config: &Yaml) -> Result<Self, ConfigError>
TODO: Needs documentation!
fn to_yaml(&self, path: &Path) -> Yaml
TODO: Needs documentation!
fn set_meta(&mut self, meta: &ConfigMeta)
TODO: Needs documentation!
fn meta(&self) -> Option<ConfigMeta>
TODO: Needs documentation!
fn write_file(&self) -> Result<(), ConfigError>
TODO: Needs documentation!
fn from_string(src: &str) -> Result<Self, ConfigError>
From some string (should be used for top level elements if you want to embed the code)
fn from_file_raw<P: AsRef<Path>>(
meta: &ConfigMeta,
path: P
) -> Result<Self, ConfigError>
meta: &ConfigMeta,
path: P
) -> Result<Self, ConfigError>
From a file relative to current config
fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
From a file relative to project