Struct three_d::window::WindowSettings
source · pub struct WindowSettings {
pub title: String,
pub min_size: (u32, u32),
pub max_size: Option<(u32, u32)>,
pub borderless: bool,
pub surface_settings: SurfaceSettings,
}
Expand description
Settings for the default Window.
Fields§
§title: String
The title of the window.
On web this has no effect.
min_size: (u32, u32)
The minimum size of the window (width, height)
, in logical pixels.
On web this has no effect.
max_size: Option<(u32, u32)>
The maximum and initial size of the window (width, height)
, in logical pixels.
If None
is specified, the window is maximized.
On web, the size will be applied to the [canvas][WindowSettings::canvas], in logical pixels.
If None
is specified, the canvas will be resized to the same size as
the owner Window
’s inner width and height.
borderless: bool
Borderless mode.
On web this has no effect.
surface_settings: SurfaceSettings
Settings related to the surface on where to draw.
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 Deref for WindowSettings
impl Deref for WindowSettings
source§impl DerefMut for WindowSettings
impl DerefMut for WindowSettings
source§impl PartialEq for WindowSettings
impl PartialEq 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 ==
.impl Eq for WindowSettings
impl StructuralPartialEq for WindowSettings
Auto Trait Implementations§
impl RefUnwindSafe for WindowSettings
impl Send for WindowSettings
impl Sync for WindowSettings
impl Unpin for WindowSettings
impl UnwindSafe for WindowSettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more