Comments (6)
For Win32, there isn't really a concept of a display. Some structures are thread local, but overall there is very little context for the windows. Leaving it empty is probably the right choice. I am not familiar with WinRT.
Web stuff is generally contextualized by the window
/document
, which is often cached. But given that it can be derived from anywhere it might not be worth it.
I don't know other platforms well enough to comment on them.
from raw-window-handle.
The documentation, as far as I could find it, says that you're allowed to pass EGL_DEFAULT_DISPLAY (i.e. a null-ptr) on Wayland too? So why are we restricting that?
you could try, but it'll fail.
from raw-window-handle.
Everything which is not implemented is not needed or doesn't exist as a concept. I remember discussing it with you on #matrix
and I told that it's more about platforms having a concept of multiple display servers, so they need a way to distinguish between them, which is only an issue on platforms with the freedom to choose the display server.
from raw-window-handle.
I do remember too, I was just unsure if we were still missing something.
I guess I'll reword that section at some point then, and then close this issue.
from raw-window-handle.
The documentation, as far as I could find it, says that you're allowed to pass EGL_DEFAULT_DISPLAY
(i.e. a null-ptr) on Wayland too? So why are we restricting that?
from raw-window-handle.
And it seems like HaikuOS just got the ability to pass a handle as well, although that doesn't really sound stable yet.
from raw-window-handle.
Related Issues (20)
- `v0.6` release planning HOT 6
- Type-system relationship between `HasRaw*Handle` and `Has*Handle` traits HOT 3
- Does `RawWindowHandle` need to be `Copy`? HOT 3
- Should X display/connection handles be nullable? HOT 4
- Proposal: Remove `Copy` from `RawDisplayHandle` HOT 3
- Proposal: Make the error type implementor-selectable? HOT 2
- Follow the Rust API Guidelines HOT 2
- Take `self` instead of `&self` in raw window handles? HOT 9
- Add tests for Rust subleties HOT 2
- Add relevant categories to `Cargo.toml`
- Improve documentation
- Question: Why are we exposing canvas elements instead of just any node? HOT 2
- What is the right way of handling web handles? HOT 2
- Add a bitset that allows libraries to state what types of raw window/display handles are supported HOT 1
- Add safe constructors for display and window handles HOT 3
- Remove `WebWindowHandle`? HOT 2
- Make safe `WindowHandle` s to imilictly ref-count HOT 27
- Info about sdl HOT 2
- Support DirectFB in RawWindowHandle and RawDisplayHandle? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raw-window-handle.