Struct ggez::conf::WindowSetup [−][src]
pub struct WindowSetup {
pub title: String,
pub samples: NumSamples,
pub vsync: bool,
pub icon: String,
pub srgb: bool,
}
Expand description
A builder structure containing window settings that must be set at init time and cannot be changed afterwards.
Defaults:
WindowSetup {
title: "An easy, good game".to_owned(),
samples: NumSamples::One,
vsync: true,
icon: "".to_owned(),
srgb: true,
}
Fields
title: String
The window title.
samples: NumSamples
Number of samples to use for multisample anti-aliasing.
vsync: bool
Whether or not to enable vsync.
icon: String
A file path to the window’s icon.
It takes a path rooted in the resources
directory (see the filesystem
module for details), and an empty string results in a blank/default icon.
srgb: bool
Whether or not to enable sRGB (gamma corrected color) handling on the display.
Implementations
Set number of samples to use for multisample anti-aliasing.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WindowSetup
impl Send for WindowSetup
impl Sync for WindowSetup
impl Unpin for WindowSetup
impl UnwindSafe for WindowSetup
Blanket Implementations
Mutably borrows from an owned value. Read more