Enum raw_window_handle::RawWindowHandle [−][src]
#[non_exhaustive]
pub enum RawWindowHandle {
UiKit(UiKitHandle),
AppKit(AppKitHandle),
Orbital(OrbitalHandle),
Xlib(XlibHandle),
Xcb(XcbHandle),
Wayland(WaylandHandle),
Win32(Win32Handle),
WinRt(WinRtHandle),
Web(WebHandle),
AndroidNdk(AndroidNdkHandle),
}
Expand description
An enum to simply combine the different possible raw window handle variants.
Variant Availability
Note that all variants are present on all targets (none are disabled behind
#[cfg]
s), but see the “Availability Hints” section on each variant for
some hints on where this variant might be expected.
Note that these “Availability Hints” are not normative. That is to say, a
HasRawWindowHandle
implementor is completely allowed to return something
unexpected. (For example, it’s legal for someone to return a
RawWindowHandle::Xlib
on macOS, it would just be weird, and probably
requires something like XQuartz be used).
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
UiKit(UiKitHandle)
Tuple Fields
0: UiKitHandle
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.
AppKit(AppKitHandle)
Tuple Fields
0: AppKitHandle
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"
.
Orbital(OrbitalHandle)
Tuple Fields
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.
Xlib(XlibHandle)
Tuple Fields
0: XlibHandle
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.
Xcb(XcbHandle)
Tuple Fields
0: XcbHandle
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.
Wayland(WaylandHandle)
Tuple Fields
A raw window handle for Wayland.
Availability Hints
This variant should be expected anywhere Wayland works, which is currently some subset of unix systems.
Win32(Win32Handle)
Tuple Fields
0: Win32Handle
WinRt(WinRtHandle)
Tuple Fields
0: WinRtHandle
Web(WebHandle)
Tuple Fields
0: WebHandle
A raw window handle for the Web.
Availability Hints
This variant is used on Wasm or asm.js targets when targeting the Web/HTML5.
AndroidNdk(AndroidNdkHandle)
Tuple Fields
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.