Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WinRT CoreWindow handle #68

Merged
merged 2 commits into from
Feb 24, 2021

Conversation

nathanvoglsam
Copy link
Contributor

Currently this crate lacks an entry for Windows WinRT, which uses CoreWindow instead of HWND and other Win32 stuff for handling the windowing.

This pull request implements the WinRT variant on RawWindowHandle, holding WinRTHandle struct. The WinRTHandle struct currently has a single member, core_window, which is intended to contain a pointer to a CoreWindow instance. This implementation is chosen to match SDL2 which also exposes only the CoreWindow, and because it is the minimum currently needed for creating a swapchain on DX12 under WinRT see here.

I just copy pasted the existing Windows variant, renamed it and replaced the struct members.

@msiglreith msiglreith mentioned this pull request Feb 23, 2021
@Lokathor Lokathor merged commit 1e3255a into rust-windowing:master Feb 24, 2021
Friz64 pushed a commit to Friz64/raw-window-handle that referenced this pull request Jun 2, 2021
* Add WinRT core window handle

* cargo fmt
@Friz64 Friz64 mentioned this pull request Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants