https://github.com/raysan5/raygui Skip to content Sign up * Product + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} raysan5 / raygui Public * * Notifications * Fork 138 * Star 1.4k A simple and easy-to-use immediate-mode gui library Zlib License 1.4k stars 138 forks Star Notifications * Code * Issues 2 * Pull requests 1 * Actions * Security * Insights More * Code * Issues * Pull requests * Actions * Security * Insights This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 4 tags Code Latest commit @raysan5 raysan5 Updated raygui icons info ... 6d79cdf Mar 26, 2022 Updated raygui icons info 6d79cdf Git stats * 851 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github Create FUNDING.yml Aug 27, 2019 examples Update the examples to match the latest raygui.h (#184) Mar 14, 2022 images Added tools images Oct 5, 2021 logo Reviewed logo Mar 25, 2022 projects Update project to VS2022 Jan 5, 2022 src Updated raygui icons info Mar 26, 2022 styles Update enefete.h Mar 7, 2022 .gitattributes Create .gitattributes Sep 15, 2016 .gitignore Add CMake definitions (#79) Apr 16, 2020 HISTORY.md Create HISTORY.md Aug 24, 2019 LICENSE Update year to 2022 Dec 31, 2021 README.md Mac instructions (#187) Mar 19, 2022 View code [ ] features raygui controls basic controls container/separator controls advanced controls raygui styles raygui icons raygui support tools building license README.md [raygui_256x256] raygui is a simple and easy-to-use immediate-mode-gui library. raygui was initially inspired by Unity IMGUI (immediate mode GUI API). raygui was originated as an auxiliar module for raylib to create simple GUI interfaces using raylib graphic style (simple colors, plain rectangular shapes, wide borders...). raygui is intended for tools development; it has already been used to develop multiple published tools. features * Immediate-mode gui, no retained data * +25 controls provided (basic and advanced) * Powerful styling system for colors, font and metrics * Standalone usage mode supported (for other graphic libs) * Icons support, embedding a complete 1-bit icons pack * Multiple tools provided for raygui development raygui controls basic controls Label | Button | LabelButton | Toggle | ToggleGroup | CheckBox ComboBox | DropdownBox | TextBox | TextBoxMulti | ValueBox | Spinner Slider | SliderBar | ProgressBar | StatusBar | DummyRec | Grid container/separator controls WindowBox | GroupBox | Line | Panel | ScrollPanel advanced controls ListView | ColorPicker | MessageBox | TextInputBox raygui styles raygui comes with a default style automatically loaded at runtime: raygui default style Some additional styles are also provided for convenience, just check styles directory for details: raygui additional styles Custom styles can also be created very easily using rGuiStyler tool. Styles can be loaded at runtime using raygui GuiLoadStyle() function. Simple and easy-to-use. raygui icons raygui supports custom icons, by default, a predefined set of icons is provided inside raygui as an array of binary data; it contains 256 possible icons defined as 16x16 pixels each; each pixel is codified using 1-bit. The total size of the array is 2048 bytes. [raygui_ric] To use any of those icons just prefix the #iconId# number to any text written within raygui controls: if (GuiButton(rec, "#05#Open Image")) { /* ACTION */ } It's also possible to use the provided GuiIconText() function to prefix it automatically, using a clearer identifier (defined in raygui.h). if (GuiButton(rec, GuiIconText(RICON_FILE_OPEN, "Open Image"))) { /* ACTION */ } Provided set of icons can be reviewed and customized using rGuiIcons tool. raygui support tools * rGuiStyler - A simple and easy-to-use raygui styles editor. rGuiStyler v3.1 * rGuiIcons - A simple and easy-to-use raygui icons editor. rGuiIcons v1.0 * rGuiLayout - A simple and easy-to-use raygui layouts editor. rGuiLayout v2.2 building raygui is intended to be used as a portable single-file header-only library, to be directly integrated into any C/C++ codebase but some users could require a shared/dynamic version of the library, for example, to create bindings: * Windows (MinGW, GCC) copy src/raygui.h src/raygui.c gcc -o src/raygui.dll src/raygui.c -shared -DRAYGUI_IMPLEMENTATION -DBUILD_LIBTYPE_SHARED -static-libgcc -lopengl32 -lgdi32 -lwinmm -Wl,--out-implib,src/librayguidll.a * Linux (GCC) mv src/raygui.h src/raygui.c gcc -o raygui.so src/raygui.c -shared -fpic -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 * Mac (clang, homebrew installed raylib) cp src/raygui.h src/raygui.c brew install raylib gcc -o raygui.dynlib src/raygui.c -shared -fpic -DRAYGUI_IMPLEMENTATION -framework OpenGL -lm -lpthread -ldl $(pkg-config --libs --cflags raylib) license raygui is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check LICENSE for further details. About A simple and easy-to-use immediate-mode gui library Topics tools imgui raylib Resources Readme License Zlib License Stars 1.4k stars Watchers 41 watching Forks 138 forks Releases 4 raygui v3.1 Latest Jan 12, 2022 + 3 releases Sponsor this project Sponsor Learn more about GitHub Sponsors Contributors 39 * @raysan5 * @anidealgift * @Demizdor * @RobLoach * @simonwashere * @ChrisDill * @Julianiolo * @jdeokkim * @kamisori * @JeffM2501 * @lokeb + 28 contributors Languages * C 99.4% * CMake 0.6% * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.