mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00

Port to the latest accesskit and accesskit_winit: - NodeId is now a u64 instead of u128, so trim the component/item encoding. - Adjust to some enum renamings. - TreeUpdate now always requires a focus node, which we set to the root. - Fixed focus handling on macOS: Report FocusIn to the accesskit adapter, so that it can update its internal host_is_focused state correctly.
12 lines
474 B
Rust
12 lines
474 B
Rust
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
|
|
|
|
use cfg_aliases::cfg_aliases;
|
|
|
|
fn main() {
|
|
// Setup cfg aliases
|
|
cfg_aliases! {
|
|
enable_skia_renderer: { any(feature = "renderer-skia", feature = "renderer-skia-opengl", feature = "renderer-skia-vulkan")},
|
|
enable_accesskit: { all(feature = "accessibility", not(target_arch = "wasm32")) },
|
|
}
|
|
}
|