1 unstable release
0.4.3 | Apr 20, 2022 |
---|
#9 in #raw-window-handle
26 downloads per month
Used in luminvent_winit
16KB
222 lines
raw-window-handle
: A common windowing interoperability library for Rust
This library provides standard types for accessing a window's platform-specific raw window 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).
lib.rs
:
Interoperability library for Rust Windowing applications.
This library provides standard types for accessing a window's platform-specific raw window 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 HasRawWindowHandle
.
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.
Dependencies
~265–690KB
~12K SLoC