Skip to content

Integrating via C API #351

Closed Answered by DataTriny
ethindp asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @ethindp,

To answer your question about windowing providers: AccessKit can't quite be agnostic as none of the currently available libraries expose an API to properly install an accessibility provider. What is required also depends on the platform. Our example shows how to do this with SDL2, but the process will be very similar for SFML and GLFW:

  • Windows and macOS: create the window hidden
  • Windows and macOS: retrieve the native window handle: SDL2, SFML, GLFW
  • macOS: you might need to call accesskit_macos_add_focus_forwarder_to_window_class, unfortunately you will have to read the source code of the windowing library to find out if you need this, and if yes, find what is the class name

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ethindp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants