microui
cimgui
Our great sponsors
microui | cimgui | |
---|---|---|
13 | 14 | |
3,105 | 1,337 | |
- | 3.1% | |
0.0 | 7.1 | |
4 months ago | 7 days ago | |
C | Lua | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
microui
-
Immediate Mode GUI Programming
There is also microui, which I like[0].
Which I forked to work with SDL2[1], no guarantees. It's fun to hack on.
[0]https://github.com/rxi/microui
[1]https://github.com/kennethrapp/microui
- MicroUI: Tiny immediate-mode UI library
-
What should I use to make GUI with SDL
Otherwise, https://github.com/rxi/microui is small enough that you can hack around. Look at the issue though, there's a bit of unaligned access there.
-
ImGui or text rendering libraries
For GUI, there are lots, most well-known of course being Dear Imgui, for which people have made auto-generated C bindings. Another mature but a lot simpler option is Nuklear, as others have mentioned. Even more minimalistic (it's just 1KLOC) is microui. There are a lot more, just google "imgui library c".
- A lightweight, simple, fast, feature-filled, text editor written in C, and Lua
-
Nuklear – A single-header ANSI C immediate mode cross-platform GUI library
The price for the 'lightest' UI toolkit probably goes to microui:
https://github.com/rxi/microui
Just around 1100 lines of C code.
You need to bring your own renderer, but that's the same for Nuklear or Dear ImGui.
I wrote a WASM wrapper for the microui demo too:
https://floooh.github.io/sokol-html5/sgl-microui-sapp.html
-
I made a shortlist of good libraries for my GUI C project and I want your thoughts and comments.
Good C library list: https://en.cppreference.com/w/c/links/libs https://github.com/Immediate-Mode-UI/Nuklear + C89, no dependencies, public license. 5/5 https://www.tecgraf.puc-rio.br/iup/ + good tutorial and wiki guides 5/5 https://libsdl.org/ + infinite possibilities - whole library for making games, forums, wiki - complicated, not many C tutorials, need to manage game states... 4/5 https://github.com/lvgl/lvgl + good docs - for embedded systems 4/5 https://github.com/ocornut/imgui + Popular, inspired Nuklear - for C++ 3/5 https://docs.enlightenment.org/api/imlib2/html/ + very efficient, used in Conky - uses X so only for Linux, just for displaying images and text and stuff 2/5 https://github.com/rxi/microui + simple, small - you need to handle your own drawing 2/5 GTK+ - no
-
I haven't been using Linux that much yet, but because of my experience with Xfce, and because others don't seem to enjoy desktop environments on Linux too much, I want to create my own.
Really? Here's a minimal UI with I believe less LOC than Suckless DWM. It's not a full DE, but I imagine you could probably turn it into one without adding that much more code.
- Best way to write a cross-platform graphical program in C while using only bare minimum third-party libraries?
- resources for making a gui library
cimgui
-
Beside SDL, is there an easier way to just show a custom rectangle with text, cross-platform?
I would recommend C bindings for the Dear ImGui (https://github.com/cimgui/cimgui)
-
ImGui or text rendering libraries
For GUI, there are lots, most well-known of course being Dear Imgui, for which people have made auto-generated C bindings. Another mature but a lot simpler option is Nuklear, as others have mentioned. Even more minimalistic (it's just 1KLOC) is microui. There are a lot more, just google "imgui library c".
- Steps to setup cimgui on windows 10.
-
Nuklear – A single-header ANSI C immediate mode cross-platform GUI library
DearIMGUI has both an unofficial C wrapper and a new official C binding generator. I have personally used the CIMGUI wrapper with C99 apps using the Direct3D11 backend and it works great. The new API is started by the DearIMGUI creator but is still adding features that are available in CIMGUI.
Unofficial C API - https://github.com/cimgui/cimgui
-
Create a Window in C/Where to Begin
I would give ImGui a look, it is technically a c++ api, but there is a plain c version https://github.com/cimgui/cimgui/tree/docking_inter which is a free cross platform gui toolset
-
Imgui Zig bindings(based on ZGui)
Whilst this is great. I have a (slightly dumb) question -What advantage does using these bindings give us over just using the generated C IMGUI bindings (cimgui) directly in Zig??Especially given the fact that that the latter are autogenerated from the original C++ IMGUI.
-
What ImGUI library would work well with programs written in C?
cimgui
-
Ideas for fast UI that can be easily rendered using OpenGL
This is worth a look: https://github.com/cimgui/cimgui
-
Are there any cross-platform GUI libraries out there?
Dear ImGui is a C++ library, however a C port exists.
-
Should I switch to python after learning the basics of C?
Explore GUI frameworks for C Here's another and another
What are some alternatives?
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
Zig-ImGui - Zig bindings for ocornut/imgui, generated using cimgui/cimgui
sokol - minimal cross-platform standalone C headers
nanovg - Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zig-upaya - Zig-based framework for creating game tools and helper apps
pixeltoaster - PixelToaster is a framebuffer library for C++
lvgl - Embedded graphics library to create beautiful UIs for any MCU, MPU and display type.
minifb - MiniFB is a small cross platform library to create a frame buffer that you can draw pixels in
imgui-sfml - Dear ImGui backend for use with SFML
nuklear
nuklear - A single-header ANSI C immediate mode cross-platform GUI library