raw-window-handle
raw-window-handle copied to clipboard
A common windowing interoperability library for Rust
I'm writing a GUI framework that may use [`breadx`](https://github.com/bread-graphics/breadx), which is an X implementation not based on either Xlib or XCB, but written by hand. I'd like this GUI framework...
When user wants to deal with platform specific code they most of the time need raw display, like e.g. wl_display. However RawWindowHandle provides with both of them. I'd suggest to...
Windows are apparently effectively `!Send` on [Windows and macOS](https://github.com/rust-windowing/raw-window-handle/issues/71#issuecomment-863597284), and the [lifetime issues](https://github.com/rust-windowing/raw-window-handle/issues/71#issuecomment-863584973) that Android's window handles have make marking window handles `Send` perhaps a bit suspect. I believe we...
Window handles on Android can be [invalidated between a pair of "suspend" and "resume" events](https://github.com/rust-windowing/raw-window-handle/issues/71#issuecomment-863579611). This makes it difficult to safely use window handles without asking end users to wire...
so I got sent here by a error ...... ``` thread 'main' panicked at 'Could not retrieve any SDL2 window info, and Osspial wrote the trait to be infallible despite...
Say I create the iOS struct, pass in pointers to `UIView` alone, without the rest - because technically they would be unnecessary and unused. How would `gfx-hal` know wether or...
Given that rust 1.64 got released we can get rid of it.
Following from https://github.com/rust-windowing/winit/issues/2259, the `WebWindowHandle.id` is a flaky way to share canvas references between crates. As discussed in that thread, synchronizing the IDs is challenging (leading to duplicates) and it...
Follow-up to https://github.com/rust-windowing/raw-window-handle/pull/152 to consider documenting our decision on main thread safety, and making some handles `!Send` and `!Sync`.
We now have `WebCanvasWindowHandle` and `WebOffscreenCanvasWindowHandle`, which are much safer, so we should probably work on removing `WebWindowHandle`. Probably with a deprecation period first.