mafiaqueen
mafiaqueen

Reputation: 31

How to handle events in skia?

I am intending to use skia for an app. How to handle events like web input box click, wheel events etc in Skia ? What are the possible events in skia? How to handle events in skia?

Upvotes: 1

Views: 979

Answers (2)

user8300370
user8300370

Reputation: 11

If your using Skia on desktop there are many options. You can use native OS based IO libraries, like WIN32 on Windows, or NSApp, IOKit on MacOS. If you want an easier approach, that is also cross-platform, you can use SDL3, or glfw3, which you could also integrate your Skia rendering into (Example).

If you are using WebAssembly you can use WASI for IO.

If you elaborate more on your development environment, it would help find a better solution.

Upvotes: 0

softmarshmallow
softmarshmallow

Reputation: 1284

React Graphics Library Built on Skia - https://github.com/bridgedxyz/nothing

It'll have Similar api such like Konva React, but built on skia instead. - better performance

Upvotes: 0

Related Questions