{"id":21085910,"url":"https://github.com/dcubix/flexer","last_synced_at":"2025-05-16T11:31:39.099Z","repository":{"id":90695518,"uuid":"352205354","full_name":"DCubix/flexer","owner":"DCubix","description":"Simple flexible layout engine for C++","archived":false,"fork":false,"pushed_at":"2024-07-12T02:41:46.000Z","size":65,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T23:51:17.692Z","etag":null,"topics":["flexbox","flexible","layout-engine"],"latest_commit_sha":null,"homepage":"","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/DCubix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-28T00:06:50.000Z","updated_at":"2024-07-12T02:41:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2bb0ffc-b91d-4a2a-a8f7-563b3a290c70","html_url":"https://github.com/DCubix/flexer","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/DCubix%2Fflexer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCubix%2Fflexer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCubix%2Fflexer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCubix%2Fflexer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DCubix","download_url":"https://codeload.github.com/DCubix/flexer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254521917,"owners_count":22085007,"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":["flexbox","flexible","layout-engine"],"created_at":"2024-11-19T20:41:21.841Z","updated_at":"2025-05-16T11:31:34.077Z","avatar_url":"https://github.com/DCubix.png","language":"C++","readme":"# Flexer\n\nHeader-only, simple, flexible layout engine for C++.\n\n# Example\n```cpp\nauto flex = std::make_unique\u003cFlexer\u003e();\n\nEID par1 = flex-\u003ecreateElement({\n\t.bounds = Rect(10, 10, ScreenWidth() - 20, ScreenHeight() - 20),\n\t.axis = Axis::Vertical\n});\nEID par2 = flex-\u003ecreateElement({\n\t.parent = par1,\n\t.bounds = Rect(0, 0, 0, 80),\n\t.proportion = 0,\n\t.axis = Axis::Horizontal\n});\n\nflex-\u003ecreateElement({\n\t.parent = par2,\n\t.bounds = Rect(0, 0, 120, 0),\n\t.proportion = 1\n});\n\nflex-\u003ecreateElement({\n\t.parent = par2,\n\t.bounds = Rect(0, 0, 120, 0),\n\t.proportion = 0\n});\n\nflex-\u003ecreateElement({\n\t.parent = par2,\n\t.bounds = Rect(0, 0, 120, 0),\n\t.proportion = 1\n});\n```\n\n## Result\n![Centering an element with a fixed size](https://i.imgur.com/sfOVew0.png)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcubix%2Fflexer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcubix%2Fflexer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcubix%2Fflexer/lists"}