#raw-window-handle #interop #windowing #applications #accessing

no-std luminvent-raw-window-handle

Interoperability library for Rust Windowing applications

1 unstable release

0.4.3 Apr 20, 2022

#7 in #raw-window-handle


Used in luminvent_winit

MIT OR Apache-2.0 OR Zlib

16KB
222 lines

raw-window-handle: A common windowing interoperability library for Rust

Crates.io Docs

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

~255–670KB
~12K SLoC