badlydrawnrod 60605f01b6
Handle CRLF line endings reading fontFileName. (#114)
If you have a style file with CRLF line endings and specify a font file on a system that expects LF line endings, then the font file will fail to load with an error such as...

WARNING: FILEIO: [./assets/terminal/Mecha.ttf
] Failed to open file

...because it sees the CR as part of the name.

Adding '\r' to the negated scanset for sscanf() fixes the issue.
2020-12-14 16:11:17 +01:00
2019-08-27 13:19:06 +02:00
2019-08-28 11:59:47 +02:00
2019-08-21 12:50:57 +02:00
2020-05-18 19:32:22 +02:00
2019-10-21 17:59:47 +02:00
2016-09-15 12:20:40 +02:00
2020-04-16 13:24:03 +02:00
2019-08-24 21:08:56 +02:00
2020-01-06 13:50:05 +01:00

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 the following tools: rFXGen, rTexViewer, rTexPacker rGuiStyler, rGuiLayout and rGuiIcons


raygui provided controls

Container/separator controls

WindowBox   |  GroupBox    |  Line        |  Panel

Basic controls

Label       |  Button      |  LabelButton |  ImageButton  |  Toggle      |  ToggleGroup |  CheckBox
ComboBox    |  DropdownBox |  TextBox     |  TextBoxMulti |  ValueBox    |  Spinner     |  Slider   
SliderBar   |  ProgressBar |  StatusBar   |  ScrollBar    |  ScrollPanel |  DummyRec    |  Grid

Advance 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.

rGuiStyler v3.1

rGuiStyler v3.1 - raygui styles editor, useful to create custom styles

raygui icons

raygui supports custom icons provided as an external array of data. To support icons just define RAYGUI_SUPPORT_ICONS before including raygui.

A set of custom handcrafted icons is provided in riconsdata. This set of icons can be created and customized using rGuiIcons tool.

#define RAYGUI_IMPLEMENTATION
#define RAYGUI_SUPPORT_ICONS
#include "raygui.h"

To use any of those icons in your gui, just preprend iconId to any text written within raygui controls:

if (GuiButton(rec, "#05#Open Image")) { /* ACTION */ }

or use the provided GuiIconText() function to prepend it automatically, using a clearer identifier.

if (GuiButton(rec, GuiIconText(RICON_FILE_OPEN, "Open Image"))) { /* ACTION */ }

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.

Description
A simple and easy-to-use immediate-mode gui library
Readme
Languages
C 99.7%
CMake 0.3%