Available on
macos_platform
only.Expand description
§macOS / AppKit
Winit has an OS requirement of macOS 10.11 or higher (same as Rust itself), and is regularly tested on macOS 10.14.
A lot of functionality expects the application to be ready before you start doing anything; this includes creating windows, fetching monitors, drawing, and so on, see issues #2238, #2051 and #2087.
If you encounter problems, you should try doing your initialization inside
Event::Resumed
.
Enums§
- Activation
Policy - Corresponds to
NSApplicationActivationPolicy
. - Option
AsAlt - Option as alt behavior.
Traits§
- Active
Event Loop ExtMacOS - Additional methods on
ActiveEventLoop
that are specific to macOS. - Event
Loop Builder ExtMacOS - Monitor
Handle ExtMacOS - Additional methods on
MonitorHandle
that are specific to MacOS. - Window
Attributes ExtMacOS - Additional methods on
WindowAttributes
that are specific to MacOS. - Window
ExtMacOS - Additional methods on
Window
that are specific to MacOS.