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 support for raw-window-handle #4918

Merged
merged 7 commits into from
Mar 22, 2024
Merged

Add support for raw-window-handle #4918

merged 7 commits into from
Mar 22, 2024

Conversation

tronical
Copy link
Member

@tronical tronical commented Mar 22, 2024

Add a raw-window-handle-06 feature to the Rust API crates, which adds support for version 0.6 of rwh to slint::Window, by delegation to the backend.

HasDisplayHandle could also be provided on the backend, but that can be done separately if needed.

Fixes #877

Add a `rwh_06` feature to the Rust API crates, which adds support for version 0.6 of rwh to slint::Window, by delegation to the backend.

HasDisplayHandle could also be provided on the backend, but that can be
done separately if needed.

This is only implemented for the winit backend right now.

Fixes #877
api/rs/slint/Cargo.toml Outdated Show resolved Hide resolved
internal/backends/selector/Cargo.toml Outdated Show resolved Hide resolved
api/rs/slint/Cargo.toml Outdated Show resolved Hide resolved
internal/core/api.rs Outdated Show resolved Hide resolved
internal/core/api.rs Show resolved Hide resolved
internal/core/api.rs Outdated Show resolved Hide resolved
internal/core/api.rs Outdated Show resolved Hide resolved
api/rs/slint/Cargo.toml Show resolved Hide resolved
@ogoffart
Copy link
Member

The Qt backend should also support this, can return something similar to the window_handle_for_qt_window function in examples/cpp/platform_qt/main.cpp
But this can be done in a follow up

@tronical
Copy link
Member Author

Right, I'll do the Qt bit in a separate change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expose window as RawWindowHandle
2 participants