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

HTML support #2782

Closed
blockspacer opened this issue Sep 16, 2019 · 0 comments
Closed

HTML support #2782

blockspacer opened this issue Sep 16, 2019 · 0 comments

Comments

@blockspacer
Copy link

blockspacer commented Sep 16, 2019

First attempt: I managed to add litehtml support to imgui, but without support for complex CSS. Inspired by #973 (comment) see for full code litehtml branch https://github.com/blockspacer/qtimgui-wasm-port/blob/feature/litehtml/container_qt5_imgui.cpp

Second attempt: Now i ask for any help with a lot better HTML/CSS system, with animations e.t.c. https://github.com/blockspacer/skia-opengl-emscripten

I found cobalt.foo project - tiny, but powerful HTML/CSS engine. I removed JS engine from it, so it became small and can run in browser (small browser in browser!). For now that cobalt-for-browser port can create custom HTML nodes and bind C++ callbacks via HTML attrs (like onclick="dosmth").

Just wrap your GUI element into html node and bind cobalt event to your GUI event. See blockspacer/skia-opengl-emscripten#3 for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant