Skip to content

Commit

Permalink
feat(platforms/winit): New winit adapter (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcampbell authored Jul 22, 2022
1 parent 386ca0a commit fdc274e
Show file tree
Hide file tree
Showing 11 changed files with 381 additions and 177 deletions.
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://github.com/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

0 comments on commit fdc274e

Please sign in to comment.