pub struct WindowConfig {
pub title: String,
pub size: UVec2,
pub min_size: UVec2,
pub resizable: bool,
pub fullscreen: bool,
pub vsync: bool,
}Expand description
What window to open.
Fields§
§title: StringThe text in the title bar.
size: UVec2The size of the inside of the window, in logical pixels. The window gets this many physical pixels times the scale factor.
min_size: UVec2The smallest size the user can give the window, in logical pixels. A zero means no limit in that direction.
resizable: boolWhether the user can resize the window.
fullscreen: boolWhether the window starts fullscreen. Fullscreen is borderless: the window covers the monitor, and the video mode does not change.
vsync: boolWhether a swap waits for the display’s refresh, so that frames do not
tear: a swap interval of 1, or else 0. If the driver cannot do it, the
window opens anyway, and a warning is logged. See
GlContext::set_swap_interval. Windows and macOS ignore it for now.
Trait Implementations§
Source§impl Clone for WindowConfig
impl Clone for WindowConfig
Source§impl Debug for WindowConfig
impl Debug for WindowConfig
impl Eq for WindowConfig
Source§impl PartialEq for WindowConfig
impl PartialEq for WindowConfig
impl StructuralPartialEq for WindowConfig
Auto Trait Implementations§
impl Forget for WindowConfig
impl Freeze for WindowConfig
impl Move for WindowConfig
impl RefUnwindSafe for WindowConfig
impl Send for WindowConfig
impl Sync for WindowConfig
impl Unpin for WindowConfig
impl UnsafeUnpin for WindowConfig
impl UnwindSafe for WindowConfig
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