Struct three_d::window::WindowSettings
source · pub struct WindowSettings {
pub title: String,
pub min_size: (u32, u32),
pub max_size: Option<(u32, u32)>,
pub vsync: bool,
pub multisamples: u8,
pub borderless: bool,
}Expand description
Window settings.
Fields§
§title: StringThe title of the window.
On web this has no effect.
min_size: (u32, u32)The minimum size of the window (width, height).
On web this has no effect.
max_size: Option<(u32, u32)>The maximum size of the window (width, height). If None is specified, the window is maximized.
On web this has no effect.
vsync: boolWhether VSync is enabled.
On web this has no effect since VSync is always on.
multisamples: u8Number of antialiasing samples.
On web, this can only be off (0) or on (>0). The actual number of samples depends on browser settings.
borderless: boolBorderless mode.
On web this has no effect.
Trait Implementations§
source§impl Clone for WindowSettings
impl Clone for WindowSettings
source§fn clone(&self) -> WindowSettings
fn clone(&self) -> WindowSettings
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WindowSettings
impl Debug for WindowSettings
source§impl Default for WindowSettings
impl Default for WindowSettings
source§impl PartialEq<WindowSettings> for WindowSettings
impl PartialEq<WindowSettings> for WindowSettings
source§fn eq(&self, other: &WindowSettings) -> bool
fn eq(&self, other: &WindowSettings) -> bool
This method tests for
self and other values to be equal, and is used
by ==.