pub struct WindowState(/* private fields */);Implementations§
Source§impl WindowState
impl WindowState
pub fn vsync_hint(&self) -> bool
Sourcepub fn set_vsync_hint(self, enabled: bool) -> WindowState
pub fn set_vsync_hint(self, enabled: bool) -> WindowState
Set to try enabling V-Sync on GPU
pub fn fullscreen_mode(&self) -> bool
Sourcepub fn set_fullscreen_mode(self, enabled: bool) -> WindowState
pub fn set_fullscreen_mode(self, enabled: bool) -> WindowState
Set to run program in fullscreen
pub fn window_resizable(&self) -> bool
Sourcepub fn set_window_resizable(self, enabled: bool) -> WindowState
pub fn set_window_resizable(self, enabled: bool) -> WindowState
Set to allow resizable window
pub fn window_undecorated(&self) -> bool
Sourcepub fn set_window_undecorated(self, enabled: bool) -> WindowState
pub fn set_window_undecorated(self, enabled: bool) -> WindowState
Set to disable window decoration (frame and buttons)
Set to hide window
pub fn window_minimized(&self) -> bool
Sourcepub fn set_window_minimized(self, enabled: bool) -> WindowState
pub fn set_window_minimized(self, enabled: bool) -> WindowState
Set to minimize window (iconify)
pub fn window_maximized(&self) -> bool
Sourcepub fn set_window_maximized(self, enabled: bool) -> WindowState
pub fn set_window_maximized(self, enabled: bool) -> WindowState
Set to maximize window (expanded to monitor)
pub fn window_unfocused(&self) -> bool
Sourcepub fn set_window_unfocused(self, enabled: bool) -> WindowState
pub fn set_window_unfocused(self, enabled: bool) -> WindowState
Set to window non focused
pub fn window_topmost(&self) -> bool
Sourcepub fn set_window_topmost(self, enabled: bool) -> WindowState
pub fn set_window_topmost(self, enabled: bool) -> WindowState
Set to window always on top
pub fn window_always_run(&self) -> bool
Sourcepub fn set_window_always_run(self, enabled: bool) -> WindowState
pub fn set_window_always_run(self, enabled: bool) -> WindowState
Set to allow windows running while minimized
pub fn window_transparent(&self) -> bool
Sourcepub fn set_window_transparent(self, enabled: bool) -> WindowState
pub fn set_window_transparent(self, enabled: bool) -> WindowState
Set to allow transparent framebuffer
pub fn window_highdpi(&self) -> bool
Sourcepub fn set_window_highdpi(self, enabled: bool) -> WindowState
pub fn set_window_highdpi(self, enabled: bool) -> WindowState
Set to support HighDPI
pub fn msaa(&self) -> bool
Sourcepub fn set_msaa(self, enabled: bool) -> WindowState
pub fn set_msaa(self, enabled: bool) -> WindowState
Set to try enabling MSAA 4X
pub fn interlaced_hint(&self) -> bool
Sourcepub fn set_interlaced_hint(self, enabled: bool) -> WindowState
pub fn set_interlaced_hint(self, enabled: bool) -> WindowState
Set to try enabling interlaced video format (for V3D)
Trait Implementations§
Source§impl Clone for WindowState
impl Clone for WindowState
Source§fn clone(&self) -> WindowState
fn clone(&self) -> WindowState
Returns a duplicate 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 WindowState
impl Debug for WindowState
Source§impl Default for WindowState
impl Default for WindowState
Source§fn default() -> WindowState
fn default() -> WindowState
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowState
impl PartialEq for WindowState
impl Copy for WindowState
impl StructuralPartialEq for WindowState
Auto Trait Implementations§
impl Freeze for WindowState
impl RefUnwindSafe for WindowState
impl Send for WindowState
impl Sync for WindowState
impl Unpin for WindowState
impl UnwindSafe for WindowState
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