pub enum InitHint {
JoystickHatButtons(bool),
CocoaChdirResources(bool),
CocoaMenubar(bool),
}
Expand description
Initialization hints that can be set using the init_hint
function.
Variants§
JoystickHatButtons(bool)
Specifies whether to also expose joystick hats as buttons, for compatibility with earlier
versions of GLFW that did not have glfwGetJoystickHats
.
CocoaChdirResources(bool)
Specifies whether to set the current directory to the application to the Contents/Resources
subdirectory of the application’s bundle, if present.
This is ignored on platforms besides macOS.
CocoaMenubar(bool)
Specifies whether to create a basic menu bar, either from a nib or manually, when the first window is created, which is when AppKit is initialized.
This is ignored on platforms besides macOS.
Trait Implementations§
source§impl Ord for InitHint
impl Ord for InitHint
source§impl PartialEq for InitHint
impl PartialEq for InitHint
source§impl PartialOrd for InitHint
impl PartialOrd for InitHint
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InitHint
impl Eq for InitHint
impl StructuralPartialEq for InitHint
Auto Trait Implementations§
impl RefUnwindSafe for InitHint
impl Send for InitHint
impl Sync for InitHint
impl Unpin for InitHint
impl UnwindSafe for InitHint
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