#[repr(i32)]pub enum ConfigFlag {
Show 16 variants
VsyncHint = 64,
FullscreenMode = 2,
WindowResizable = 4,
WindowUndecorated = 8,
WindowHidden = 128,
WindowMinimized = 512,
WindowMaximized = 1_024,
WindowUnfocused = 2_048,
WindowTopmost = 4_096,
WindowAlwaysRun = 256,
WindowTransparent = 16,
WindowHighdpi = 8_192,
WindowMousePassthrough = 16_384,
BorderlessWindowedMode = 32_768,
Msaa4xHint = 32,
InterlacedHint = 65_536,
}Expand description
System/Window config flags
NOTE: Every bit registers one state (use it with bit masks)
By default all flags are set to 0
Variants§
VsyncHint = 64
Set to try enabling V-Sync on GPU
FullscreenMode = 2
Set to run program in fullscreen
WindowResizable = 4
Set to allow resizable window
WindowUndecorated = 8
Set to disable window decoration (frame and buttons)
WindowHidden = 128
Set to hide window
WindowMinimized = 512
Set to minimize window (iconify)
WindowMaximized = 1_024
Set to maximize window (expanded to monitor)
WindowUnfocused = 2_048
Set to window non focused
WindowTopmost = 4_096
Set to window always on top
WindowAlwaysRun = 256
Set to allow windows running while
WindowTransparent = 16
Set to allow transparent framebuffer
WindowHighdpi = 8_192
Set to support HighDPI
WindowMousePassthrough = 16_384
Set to support mouse passthrough, only supported when ConfigFlag::WindowUndecorated
BorderlessWindowedMode = 32_768
Set to run program in borderless windowed mode
Msaa4xHint = 32
Set to try enabling MSAA 4X
InterlacedHint = 65_536
Set to try enabling interlaced video format (for V3D)
Trait Implementations§
Source§impl Clone for ConfigFlag
impl Clone for ConfigFlag
Source§fn clone(&self) -> ConfigFlag
fn clone(&self) -> ConfigFlag
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 ConfigFlag
impl Debug for ConfigFlag
Source§impl Hash for ConfigFlag
impl Hash for ConfigFlag
Source§impl PartialEq for ConfigFlag
impl PartialEq for ConfigFlag
impl Copy for ConfigFlag
impl Eq for ConfigFlag
impl StructuralPartialEq for ConfigFlag
Auto Trait Implementations§
impl Freeze for ConfigFlag
impl RefUnwindSafe for ConfigFlag
impl Send for ConfigFlag
impl Sync for ConfigFlag
impl Unpin for ConfigFlag
impl UnwindSafe for ConfigFlag
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