#[repr(u8)]pub enum RawWindowHandleKind {
Show 16 variants
UiKitWindowHandle = 0,
AppKitWindowHandle = 1,
OrbitalWindowHandle = 2,
OhosNdkWindowHandle = 3,
XlibWindowHandle = 4,
XcbWindowHandle = 5,
WaylandWindowHandle = 6,
DrmWindowHandle = 7,
GbmWindowHandle = 8,
Win32WindowHandle = 9,
WinRtWindowHandle = 10,
WebWindowHandle = 11,
WebCanvasWindowHandle = 12,
WebOffscreenCanvasWindowHandle = 13,
AndroidNdkWindowHandle = 14,
HaikuWindowHandle = 15,
}
Variants§
UiKitWindowHandle = 0
A raw window handle for UIKit (Apple’s non-macOS windowing library).
§Availability Hints
This variant is likely to be used on iOS, tvOS, (in theory) watchOS, and
Mac Catalyst ($arch-apple-ios-macabi
targets, which can notably use
UIKit or AppKit), as these are the targets that (currently) support
UIKit.
AppKitWindowHandle = 1
A raw window handle for AppKit.
§Availability Hints
This variant is likely to be used on macOS, although Mac Catalyst
($arch-apple-ios-macabi
targets, which can notably use UIKit or
AppKit) can also use it despite being target_os = "ios"
.
OrbitalWindowHandle = 2
A raw window handle for the Redox operating system.
§Availability Hints
This variant is used by the Orbital Windowing System in the Redox operating system.
OhosNdkWindowHandle = 3
A raw window handle for the OpenHarmony OS NDK
§Availability Hints
This variant is used on OpenHarmony OS (target_env = "ohos"
).
XlibWindowHandle = 4
A raw window handle for Xlib.
§Availability Hints
This variant is likely to show up anywhere someone manages to get X11 working that Xlib can be built for, which is to say, most (but not all) Unix systems.
XcbWindowHandle = 5
A raw window handle for Xcb.
§Availability Hints
This variant is likely to show up anywhere someone manages to get X11 working that XCB can be built for, which is to say, most (but not all) Unix systems.
WaylandWindowHandle = 6
A raw window handle for Wayland.
§Availability Hints
This variant should be expected anywhere Wayland works, which is currently some subset of unix systems.
DrmWindowHandle = 7
A raw window handle for the Linux Kernel Mode Set/Direct Rendering Manager
§Availability Hints
This variant is used on Linux when neither X nor Wayland are available
GbmWindowHandle = 8
A raw window handle for the Linux Generic Buffer Manager.
§Availability Hints
This variant is present regardless of windowing backend and likely to be used with EGL_MESA_platform_gbm or EGL_KHR_platform_gbm.
Win32WindowHandle = 9
WinRtWindowHandle = 10
WebWindowHandle = 11
A raw window handle for the Web.
§Availability Hints
This variant is used on Wasm or asm.js targets when targeting the Web/HTML5.
WebCanvasWindowHandle = 12
A raw window handle for a Web canvas registered via wasm-bindgen
.
§Availability Hints
This variant is used on Wasm or asm.js targets when targeting the Web/HTML5.
WebOffscreenCanvasWindowHandle = 13
A raw window handle for a Web offscreen canvas registered via wasm-bindgen
.
§Availability Hints
This variant is used on Wasm or asm.js targets when targeting the Web/HTML5.
AndroidNdkWindowHandle = 14
HaikuWindowHandle = 15
Trait Implementations§
Source§impl Clone for RawWindowHandleKind
impl Clone for RawWindowHandleKind
Source§fn clone(&self) -> RawWindowHandleKind
fn clone(&self) -> RawWindowHandleKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more