Name Description Size
android.rs 1961
appkit.rs 3410
borrowed.rs Borrowable window handles based on the ones in this crate. These should be 100% safe to pass around and use, no possibility of dangling or invalidity. 10412
haiku.rs 2143
lib.rs Interoperability library for Rust Windowing applications. This library provides standard types for accessing a window's platform-specific raw window handle and platforms display handle. This does not provide any utilities for creating and managing windows; instead, it provides a common interface that window creation libraries (e.g. Winit, SDL) can use to easily talk with graphics libraries (e.g. gfx-hal). ## Safety guarantees Please see the docs of [`HasWindowHandle`] and [`HasDisplayHandle`]. ## Platform handle initialization Each platform handle struct is purposefully non-exhaustive, so that additional fields may be added without breaking backwards compatibility. Each struct provides an `empty` method that may be used along with the struct update syntax to construct it. See each specific struct for examples. ## Display Handles Some windowing systems use a separate display handle for some operations. The display usually represents a connection to some display server, but it is not necessarily tied to a particular window. See [`RawDisplayHandle`] for more details. 21271
ohos.rs [OpenHarmony] OS Window Handles ## Background Applications on [OpenHarmony] use [ArkUI] for defining their UI. Applications can use an [XComponent] to render using native Code (e.g. Rust) via EGL. Native code will receive a callback `OnSurfaceCreatedCB(OH_NativeXComponent *component, void *window)` when the `XComponent` is created. The window argument has the type [`OHNativeWindow`] / `EGLNativeWindowType`. The window can then be used to create a surface with `eglCreateWindowSurface(eglDisplay_, eglConfig_, window, NULL)` [OpenHarmony]: https://gitee.com/openharmony/docs/blob/master/en/OpenHarmony-Overview.md [ArkUI]: https://gitee.com/openharmony/docs/blob/master/en/application-dev/ui/arkui-overview.md [XComponent]: https://gitee.com/openharmony/docs/blob/master/en/application-dev/ui/arkts-common-components-xcomponent.md [`OHNativeWindow`]: https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis-arkgraphics2d/_native_window.md 3895
redox.rs 2099
uikit.rs 3615
unix.rs 8228
web.rs 7427
windows.rs 3270