{"id":13424707,"url":"https://github.com/rxi/microui","last_synced_at":"2025-05-14T19:10:11.282Z","repository":{"id":39954496,"uuid":"149854705","full_name":"rxi/microui","owner":"rxi","description":"A tiny immediate-mode UI library","archived":false,"fork":false,"pushed_at":"2024-08-13T19:01:59.000Z","size":54,"stargazers_count":3828,"open_issues_count":31,"forks_count":265,"subscribers_count":82,"default_branch":"master","last_synced_at":"2025-05-07T21:57:26.872Z","etag":null,"topics":[],"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/rxi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"rxi"}},"created_at":"2018-09-22T07:17:38.000Z","updated_at":"2025-05-07T21:25:51.000Z","dependencies_parsed_at":"2024-08-13T22:06:59.151Z","dependency_job_id":"cdaf504e-411a-45f4-a585-c5d61faa583c","html_url":"https://github.com/rxi/microui","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/rxi%2Fmicroui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxi%2Fmicroui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxi%2Fmicroui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxi%2Fmicroui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxi","download_url":"https://codeload.github.com/rxi/microui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254209859,"owners_count":22032897,"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":[],"created_at":"2024-07-31T00:00:58.149Z","updated_at":"2025-05-14T19:10:10.318Z","avatar_url":"https://github.com/rxi.png","language":"C","readme":"# ![microui](https://user-images.githubusercontent.com/3920290/75171571-be83c500-5723-11ea-8a50-504cc2ae1109.png)\nA *tiny*, portable, immediate-mode UI library written in ANSI C\n\n## Features\n* Tiny: around `1100 sloc` of ANSI C\n* Works within a fixed-sized memory region: no additional memory is allocated\n* Built-in controls: window, scrollable panel, button, slider, textbox, label,\n  checkbox, wordwrapped text\n* Works with any rendering system that can draw rectangles and text\n* Designed to allow the user to easily add custom controls\n* Simple layout system\n\n## Example\n![example](https://user-images.githubusercontent.com/3920290/75187058-2b598800-5741-11ea-9358-38caf59f8791.png)\n```c\nif (mu_begin_window(ctx, \"My Window\", mu_rect(10, 10, 140, 86))) {\n  mu_layout_row(ctx, 2, (int[]) { 60, -1 }, 0);\n\n  mu_label(ctx, \"First:\");\n  if (mu_button(ctx, \"Button1\")) {\n    printf(\"Button1 pressed\\n\");\n  }\n\n  mu_label(ctx, \"Second:\");\n  if (mu_button(ctx, \"Button2\")) {\n    mu_open_popup(ctx, \"My Popup\");\n  }\n\n  if (mu_begin_popup(ctx, \"My Popup\")) {\n    mu_label(ctx, \"Hello world!\");\n    mu_end_popup(ctx);\n  }\n\n  mu_end_window(ctx);\n}\n```\n\n## Screenshot\n![screenshot](https://user-images.githubusercontent.com/3920290/75188642-63ae9580-5744-11ea-9eee-d753ff5c0aa7.png)\n\n[**Browser Demo**](https://floooh.github.io/sokol-html5/sgl-microui-sapp.html)\n\n## Usage\n* See [`doc/usage.md`](doc/usage.md) for usage instructions\n* See the [`demo`](demo) directory for a usage example\n\n## Notes\nThe library expects the user to provide input and handle the resultant drawing\ncommands, it does not do any drawing itself.\n\n## Contributing\nThe library is designed to be lightweight, providing a foundation to which you\ncan easily add custom controls and UI elements; pull requests adding additional\nfeatures will likely not be merged. Bug reports are welcome.\n\n## License\nThis library is free software; you can redistribute it and/or modify it under\nthe terms of the MIT license. See [LICENSE](LICENSE) for details.\n\n","funding_links":["https://github.com/sponsors/rxi"],"categories":["C","Graphical User Interface","图形用户界面","Graphics","UI"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxi%2Fmicroui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxi%2Fmicroui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxi%2Fmicroui/lists"}