GitHub - rxi/microui: A tiny immediate-mode UI library · GitHub
/" data-turbo-transient="true" />
Skip to content
Search or jump to...
Search code, repositories, users, issues, pull requests...
-->
Search
Clear
Search syntax tips
Provide feedback
--><br>We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
-->
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
rxi
microui
Public
Uh oh!
There was an error while loading. Please reload this page.
Notifications<br>You must be signed in to change notification settings
Fork<br>370
Star<br>6k
master
BranchesTags
Go to file
CodeOpen more actions menu
Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit
History<br>51 Commits<br>51 Commits
.github
.github
demo
demo
doc
doc
src
src
LICENSE
LICENSE
README.md
README.md
View all files
Repository files navigation
A tiny, portable, immediate-mode UI library written in ANSI C
Features
Tiny: around 1100 sloc of ANSI C
Works within a fixed-sized memory region: no additional memory is allocated
Built-in controls: window, scrollable panel, button, slider, textbox, label,<br>checkbox, wordwrapped text
Works with any rendering system that can draw rectangles and text
Designed to allow the user to easily add custom controls
Simple layout system
Example
if (mu_begin_window(ctx, "My Window", mu_rect(10, 10, 140, 86))) {<br>mu_layout_row(ctx, 2, (int[]) { 60, -1 }, 0);
mu_label(ctx, "First:");<br>if (mu_button(ctx, "Button1")) {<br>printf("Button1 pressed\n");
mu_label(ctx, "Second:");<br>if (mu_button(ctx, "Button2")) {<br>mu_open_popup(ctx, "My Popup");
if (mu_begin_popup(ctx, "My Popup")) {<br>mu_label(ctx, "Hello world!");<br>mu_end_popup(ctx);
mu_end_window(ctx);
Screenshot
Browser Demo
Usage
See doc/usage.md for usage instructions
See the demo directory for a usage example
Notes
The library expects the user to provide input and handle the resultant drawing<br>commands, it does not do any drawing itself.
Contributing
The library is designed to be lightweight, providing a foundation to which you<br>can easily add custom controls and UI elements; pull requests adding additional<br>features will likely not be merged. Bug reports are welcome.
License
This library is free software; you can redistribute it and/or modify it under<br>the terms of the MIT license. See LICENSE for details.
About
A tiny immediate-mode UI library
Resources
Readme
License
MIT license
Uh oh!
There was an error while loading. Please reload this page.
Activity
Stars
6k<br>stars
Watchers
87<br>watching
Forks
370<br>forks
Report repository
Releases
No releases published
Sponsor this project
Sponsor
Uh oh!
There was an error while loading. Please reload this page.
Learn more about GitHub Sponsors
Packages
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Contributors
Uh oh!
There was an error while loading. Please reload this page.
Languages
100.0%
You can’t perform that action at this time.