marcj / Pesto

Pesto is a high-performance GUI framework in C++ highly inspired by CSS and HTML, using Skia as rendering engine.
69 stars 21 forks source link

Use browser-grade css or html parser from cobalt.foo #2

Closed blockspacer closed 4 years ago

blockspacer commented 5 years ago

See https://github.com/blockspacer/skia-opengl-emscripten/blob/master/src/cobalt/cobalt_css_parser.cmake as CMake integration example

Pros: tiny parser based on chromium

Cons: Requires chromium`s base and icu

May be interesting: https://www.reddit.com/r/cpp/comments/dcwq61/how_you_can_create_c_gui_framework_and_maybe_earn/

marcj commented 4 years ago

Good idea. I plan to rework the api to use intermediate mode in combination with a virtual dom that uses css to style the stuff. It has then mostly the workflow of React, so another more powerful css parser would be handy. Maybe use directly something like SCSS.

What do you mean with that reddit link? There are only 2 comments

blockspacer commented 4 years ago

Good idea. I plan to rework the api to use intermediate mode in combination with a virtual dom that uses css to style the stuff. It has then mostly the workflow of React, so another more powerful css parser would be handy. Maybe use directly something like SCSS.

What do you mean with that reddit link? There are only 2 comments

Reddit link broken, here fixed link https://github.com/blockspacer/skia-opengl-emscripten/issues/9