#windowing

raw-window-handle

Interoperability library for Rust Windowing applications

7 releases

✓ Uses Rust 2018 edition

new 0.3.3 Dec 1, 2019
0.3.2 Nov 29, 2019
0.3.1 Oct 27, 2019
0.2.0 Sep 27, 2019
0.0.0 Jul 25, 2019

#91 in Rendering

Download history 961/week @ 2019-08-18 1591/week @ 2019-08-25 1916/week @ 2019-09-01 1765/week @ 2019-09-08 1926/week @ 2019-09-15 1999/week @ 2019-09-22 2878/week @ 2019-09-29 3088/week @ 2019-10-06 4233/week @ 2019-10-13 5899/week @ 2019-10-20 5758/week @ 2019-10-27 6502/week @ 2019-11-03 6835/week @ 2019-11-10 7388/week @ 2019-11-17 8516/week @ 2019-11-24

19,812 downloads per month
Used in 161 crates (23 directly)

MIT license

17KB
301 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).


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

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

~25KB