{"id":15655355,"url":"https://github.com/mlomb/flexui","last_synced_at":"2025-05-04T08:38:52.819Z","repository":{"id":38230896,"uuid":"316858116","full_name":"mlomb/flexui","owner":"mlomb","description":"A light UI for C++ with XML and CSS support","archived":false,"fork":false,"pushed_at":"2021-12-29T00:13:55.000Z","size":6302,"stargazers_count":43,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-04T01:28:44.631Z","etag":null,"topics":["css","flex","flexbox","light","ui","xml","yoga-layout"],"latest_commit_sha":null,"homepage":"https://mlomb.github.io/flexui","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlomb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-29T02:04:46.000Z","updated_at":"2025-04-09T07:39:08.000Z","dependencies_parsed_at":"2022-08-18T07:05:10.173Z","dependency_job_id":null,"html_url":"https://github.com/mlomb/flexui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlomb%2Fflexui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlomb%2Fflexui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlomb%2Fflexui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlomb%2Fflexui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlomb","download_url":"https://codeload.github.com/mlomb/flexui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252310923,"owners_count":21727512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","flex","flexbox","light","ui","xml","yoga-layout"],"created_at":"2024-10-03T12:58:24.057Z","updated_at":"2025-05-04T08:38:52.791Z","avatar_url":"https://github.com/mlomb.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flexui\n\n*Still in very very early development, for now just prototyping*\n\nA light UI for C++ with XML and CSS support.\n\n### Example\n\n```xml\n\u003cElement class=\"container\"\u003e\n    \u003cText id=\"some\"\u003eSome text:\u003c/Text\u003e\n    \u003cButton\u003e\u003cText\u003eA button\u003c/Text\u003e\u003c/Button\u003e\n\u003c/Element\u003e\n```\n```css\n* {\n    font-family: \"Roboto-Regular.ttf\";\n    font-size: 24px;\n}\n.container {\n    background-color: white;\n    color: black;\n\n    height: 90px;\n    padding: 25px;\n    align-items: center;\n}\n#some {\n    margin-right: 5px;\n}\nButton {\n    background-color: #1266f1;\n    color: white;\n\n    align-items: center;\n    padding: 5px;\n\n    border-color: #0d6efd;\n    border-width: 1px;\n    border-radius: 4px;\n\n    cursor: pointer;\n}\nButton:hover {\n    /* ... */\n}\n```\n\nRender using OpenGL (and GLFW)  \n![docs/render.png](docs/render.png)\n\n# Demo\n\nOnline demo available here: https://mlomb.github.io/flexui  \nNote that the demo is a build of the master branch for now, it may contain anything I'm currently working on (and probably broken)\n\n# Goals\n\n* Support a subset of CSS\n* Support XML for building elements\n* Fully based on a Flex layout engine (the same engine used by [React Native](https://reactnative.dev), [Yoga Layout](https://yogalayout.com))\n* All lists to be virtualized out of the box\n* Be render agnostic, the library should only generate vertices and indices\n* Be system agnostic, the library should not handle window creation or events\n\n# Non-goals\n\n* Be a browser\n* Implement a script layer (no JS or similar)\n\n# Dependencies\n\n* [FreeType](https://www.freetype.org), an open source font rasterizer\n* [Yoga Layout](https://yogalayout.com), an open source layout engine\n* An embedded copy of [tinyxml2](https://github.com/leethomason/tinyxml2), a fast XML parser\n\nWe may require harfbuzz-ng for complex text later on.\n\n# License\n\nMIT, see [LICENSE](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlomb%2Fflexui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlomb%2Fflexui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlomb%2Fflexui/lists"}