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

feat(platforms/winit): New winit adapter #121

Merged
merged 1 commit into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ members = [
"common",
"consumer",
"platforms/windows",
"platforms/winit",
]
default-members = [
"common",
"consumer",
"platforms/winit",
]

[profile.release]
Expand Down
176 changes: 0 additions & 176 deletions platforms/windows/examples/winit.rs

This file was deleted.

25 changes: 25 additions & 0 deletions platforms/winit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "accesskit_winit"
version = "0.0.0"
authors = ["Matt Campbell <[email protected]>"]
license = "Apache-2.0"
description = "AccessKit UI accessibility infrastructure: winit adapter"
categories = ["gui"]
keywords = ["gui", "ui", "accessibility", "winit"]
repository = "https:/AccessKit/accesskit"
readme = "README.md"
edition = "2021"

[dependencies]
accesskit = { version = "0.3.0", path = "../../common" }
parking_lot = "0.11.2"
winit = "0.26.1"

[target.'cfg(target_os = "windows")'.dependencies]
accesskit_windows = { version = "0.3.0", path = "../windows" }

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.37.0"
features = [
"Win32_Foundation",
]
3 changes: 3 additions & 0 deletions platforms/winit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# AccessKit winit adapter

This is the winit adapter for [AccessKit](https://accesskit.dev/). It exposes an AccessKit accessibility tree through the platform-native accessibility API on any platform supported by AccessKit. On platforms not supported by AccessKit, this adapter does nothing, but still compiles.
Loading