slint/internal/backends/selector
Simon Hausmann ed2816331e
Add support for raw-window-handle (#4918)
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 adding a `window_handle()` function that returns a struct that implements the corresponding traits from rwh.

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.

cc #877
2024-03-22 14:25:05 +01:00
..
LICENSES reuse: remove glob for markdown files 2023-08-17 08:55:28 +02:00
build.rs Change alias to the native style depending on the platform 2023-09-29 17:05:10 +02:00
Cargo.toml Add support for raw-window-handle (#4918) 2024-03-22 14:25:05 +01:00
lib.rs Only depends on i-slint-backend-linuxkms on linux, even if the feature is enabled 2024-01-26 13:46:11 +01:00
README.md reuse: remove glob for markdown files 2023-08-17 08:55:28 +02:00

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.

The purpose of this crate is to select the default backend for Slint

The backend can either be a runtime or a build time decision. The runtime decision is decided by the SLINT_BACKEND environment variable. The built time default depends on the platform. In order for the crate to be available at runtime, they need to be added as feature