Struct window::WindowSettings
[−]
[src]
pub struct WindowSettings { // some fields omitted }
Settings for window behavior.
Methods
impl WindowSettings
fn new<T: Into<String>, S: Into<Size>>(title: T, size: S) -> WindowSettings
Creates window settings with defaults. - samples: 0 - fullscreen: false - exit_on_esc: false
fn get_title(&self) -> String
Gets title.
fn title(self, value: String) -> Self
Sets title.
fn get_size(&self) -> Size
Gets size.
fn size(self, value: Size) -> Self
Sets size.
fn get_fullscreen(&self) -> bool
Gets fullscreen.
fn fullscreen(self, value: bool) -> Self
Sets fullscreen.
fn get_exit_on_esc(&self) -> bool
Gets exit on esc.
fn exit_on_esc(self, value: bool) -> Self
Sets exit on esc.
fn get_samples(&self) -> u8
Gets samples.
fn samples(self, value: u8) -> Self
Sets samples.
fn get_vsync(&self) -> bool
Gets vsync.
fn vsync(self, value: bool) -> Self
Sets vsync.