WindowState

Struct WindowState 

Source
pub struct WindowState(/* private fields */);

Implementations§

Source§

impl WindowState

Source

pub fn vsync_hint(&self) -> bool

Source

pub fn set_vsync_hint(self, enabled: bool) -> WindowState

Set to try enabling V-Sync on GPU

Source

pub fn fullscreen_mode(&self) -> bool

Source

pub fn set_fullscreen_mode(self, enabled: bool) -> WindowState

Set to run program in fullscreen

Source

pub fn window_resizable(&self) -> bool

Source

pub fn set_window_resizable(self, enabled: bool) -> WindowState

Set to allow resizable window

Source

pub fn window_undecorated(&self) -> bool

Source

pub fn set_window_undecorated(self, enabled: bool) -> WindowState

Set to disable window decoration (frame and buttons)

Source

pub fn window_hidden(&self) -> bool

Source

pub fn set_window_hidden(self, enabled: bool) -> WindowState

Set to hide window

Source

pub fn window_minimized(&self) -> bool

Source

pub fn set_window_minimized(self, enabled: bool) -> WindowState

Set to minimize window (iconify)

Source

pub fn window_maximized(&self) -> bool

Source

pub fn set_window_maximized(self, enabled: bool) -> WindowState

Set to maximize window (expanded to monitor)

Source

pub fn window_unfocused(&self) -> bool

Source

pub fn set_window_unfocused(self, enabled: bool) -> WindowState

Set to window non focused

Source

pub fn window_topmost(&self) -> bool

Source

pub fn set_window_topmost(self, enabled: bool) -> WindowState

Set to window always on top

Source

pub fn window_always_run(&self) -> bool

Source

pub fn set_window_always_run(self, enabled: bool) -> WindowState

Set to allow windows running while minimized

Source

pub fn window_transparent(&self) -> bool

Source

pub fn set_window_transparent(self, enabled: bool) -> WindowState

Set to allow transparent framebuffer

Source

pub fn window_highdpi(&self) -> bool

Source

pub fn set_window_highdpi(self, enabled: bool) -> WindowState

Set to support HighDPI

Source

pub fn msaa(&self) -> bool

Source

pub fn set_msaa(self, enabled: bool) -> WindowState

Set to try enabling MSAA 4X

Source

pub fn interlaced_hint(&self) -> bool

Source

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

Source§

fn clone(&self) -> WindowState

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WindowState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for WindowState

Source§

fn default() -> WindowState

Returns the “default value” for a type. Read more
Source§

impl PartialEq for WindowState

Source§

fn eq(&self, other: &WindowState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for WindowState

Source§

impl StructuralPartialEq for WindowState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.