Raw platform window types for interoperability

3 releases

✓ Uses Rust 2018 edition

0.1.2 Aug 13, 2019
0.1.1 Aug 13, 2019
0.1.0 Aug 13, 2019
0.0.0 Jul 25, 2019

#99 in Rendering

Used in 3 crates (1 directly)


209 lines

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

Crates.io Docs Travis Build Status Appveyor Build Status

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).


Interoperability library for Rust Windowing applications.

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.