diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dbd9c6f --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# Ignore CMake build directories +/build/ +/build-*/ +/CMakeFiles/ +/CMakeCache.txt +/compile_commands.json +/cmake_install.cmake +/Makefile \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..fb41515 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,12 @@ +{ + "configurations": [ + { + "name": "Linux", + "compileCommands": "${workspaceFolder}/build/compile_commands.json", + "compilerPath": "/usr/bin/cc", + "cStandard": "c99", + "intelliSenseMode": "linux-gcc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..0c860dc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,50 @@ +cmake_minimum_required(VERSION 3.16) + +#USE THIS TO SET THE NAME +set(APP_NAME "Render_Template") + +project(${APP_NAME} C) +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + +include(FetchContent) + +# Make FetchContent chatty so you see progress +set(FETCHCONTENT_QUIET OFF) +set(FETCHCONTENT_UPDATES_DISCONNECTED ON) # don’t re-fetch if already present + +# Raylib build toggles +set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) +set(BUILD_GAMES OFF CACHE BOOL "" FORCE) +set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) + +# Preferred: tag 5.5 via tarball (fast, reproducible) +FetchContent_Declare( + raylib + URL https://github.com/raysan5/raylib/archive/refs/tags/5.5.tar.gz + # Optional but recommended: add URL_HASH once you compute it with sha256sum + # URL_HASH SHA256= +) + +# Alternative: git (comment the URL block above and use this instead) +# FetchContent_Declare( +# raylib +# GIT_REPOSITORY https://github.com/raysan5/raylib.git +# GIT_TAG 5.5 +# GIT_SHALLOW TRUE +# ) + +FetchContent_MakeAvailable(raylib) + +add_executable(${APP_NAME} + src/main.c + src/raygui_impl.c +) + +target_link_libraries(${APP_NAME} PRIVATE raylib) +target_include_directories(${APP_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/include) + +if (CMAKE_C_COMPILER_ID MATCHES "Clang|GNU") + target_compile_options(${APP_NAME} PRIVATE -Wall -Wextra -Wpedantic) +endif() \ No newline at end of file diff --git a/How_to_CMake.txt b/How_to_CMake.txt new file mode 100644 index 0000000..f304cdf --- /dev/null +++ b/How_to_CMake.txt @@ -0,0 +1,14 @@ +Use to first build your build folder +cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug + +Use to compile your code +cmake --build build -j + +Use to run your program +./build/{your program} + + + + +### +In the CMAKE file at the top, define your program name. \ No newline at end of file diff --git a/include/raygui.h b/include/raygui.h new file mode 100644 index 0000000..6999bd5 --- /dev/null +++ b/include/raygui.h @@ -0,0 +1,5994 @@ +/******************************************************************************************* +* +* raygui v4.5-dev - A simple and easy-to-use immediate-mode gui library +* +* DESCRIPTION: +* raygui is a tools-dev-focused immediate-mode-gui library based on raylib but also +* available as a standalone library, as long as input and drawing functions are provided +* +* FEATURES: +* - Immediate-mode gui, minimal retained data +* - +25 controls provided (basic and advanced) +* - Styling system for colors, font and metrics +* - Icons supported, embedded as a 1-bit icons pack +* - Standalone mode option (custom input/graphics backend) +* - Multiple support tools provided for raygui development +* +* POSSIBLE IMPROVEMENTS: +* - Better standalone mode API for easy plug of custom backends +* - Externalize required inputs, allow user easier customization +* +* LIMITATIONS: +* - No editable multi-line word-wraped text box supported +* - No auto-layout mechanism, up to the user to define controls position and size +* - Standalone mode requires library modification and some user work to plug another backend +* +* NOTES: +* - WARNING: GuiLoadStyle() and GuiLoadStyle{Custom}() functions, allocate memory for +* font atlas recs and glyphs, freeing that memory is (usually) up to the user, +* no unload function is explicitly provided... but note that GuiLoadStyleDefault() unloads +* by default any previously loaded font (texture, recs, glyphs) +* - Global UI alpha (guiAlpha) is applied inside GuiDrawRectangle() and GuiDrawText() functions +* +* CONTROLS PROVIDED: +* # Container/separators Controls +* - WindowBox --> StatusBar, Panel +* - GroupBox --> Line +* - Line +* - Panel --> StatusBar +* - ScrollPanel --> StatusBar +* - TabBar --> Button +* +* # Basic Controls +* - Label +* - LabelButton --> Label +* - Button +* - Toggle +* - ToggleGroup --> Toggle +* - ToggleSlider +* - CheckBox +* - ComboBox +* - DropdownBox +* - TextBox +* - ValueBox --> TextBox +* - Spinner --> Button, ValueBox +* - Slider +* - SliderBar --> Slider +* - ProgressBar +* - StatusBar +* - DummyRec +* - Grid +* +* # Advance Controls +* - ListView +* - ColorPicker --> ColorPanel, ColorBarHue +* - MessageBox --> Window, Label, Button +* - TextInputBox --> Window, Label, TextBox, Button +* +* It also provides a set of functions for styling the controls based on its properties (size, color) +* +* +* RAYGUI STYLE (guiStyle): +* raygui uses a global data array for all gui style properties (allocated on data segment by default), +* when a new style is loaded, it is loaded over the global style... but a default gui style could always be +* recovered with GuiLoadStyleDefault() function, that overwrites the current style to the default one +* +* The global style array size is fixed and depends on the number of controls and properties: +* +* static unsigned int guiStyle[RAYGUI_MAX_CONTROLS*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED)]; +* +* guiStyle size is by default: 16*(16 + 8) = 384*4 = 1536 bytes = 1.5 KB +* +* Note that the first set of BASE properties (by default guiStyle[0..15]) belong to the generic style +* used for all controls, when any of those base values is set, it is automatically populated to all +* controls, so, specific control values overwriting generic style should be set after base values +* +* After the first BASE set we have the EXTENDED properties (by default guiStyle[16..23]), those +* properties are actually common to all controls and can not be overwritten individually (like BASE ones) +* Some of those properties are: TEXT_SIZE, TEXT_SPACING, LINE_COLOR, BACKGROUND_COLOR +* +* Custom control properties can be defined using the EXTENDED properties for each independent control. +* +* TOOL: rGuiStyler is a visual tool to customize raygui style: github.com/raysan5/rguistyler +* +* +* RAYGUI ICONS (guiIcons): +* raygui could use a global array containing icons data (allocated on data segment by default), +* a custom icons set could be loaded over this array using GuiLoadIcons(), but loaded icons set +* must be same RAYGUI_ICON_SIZE and no more than RAYGUI_ICON_MAX_ICONS will be loaded +* +* Every icon is codified in binary form, using 1 bit per pixel, so, every 16x16 icon +* requires 8 integers (16*16/32) to be stored in memory. +* +* When the icon is draw, actually one quad per pixel is drawn if the bit for that pixel is set +* +* The global icons array size is fixed and depends on the number of icons and size: +* +* static unsigned int guiIcons[RAYGUI_ICON_MAX_ICONS*RAYGUI_ICON_DATA_ELEMENTS]; +* +* guiIcons size is by default: 256*(16*16/32) = 2048*4 = 8192 bytes = 8 KB +* +* TOOL: rGuiIcons is a visual tool to customize/create raygui icons: github.com/raysan5/rguiicons +* +* RAYGUI LAYOUT: +* raygui currently does not provide an auto-layout mechanism like other libraries, +* layouts must be defined manually on controls drawing, providing the right bounds Rectangle for it +* +* TOOL: rGuiLayout is a visual tool to create raygui layouts: github.com/raysan5/rguilayout +* +* CONFIGURATION: +* #define RAYGUI_IMPLEMENTATION +* Generates the implementation of the library into the included file +* If not defined, the library is in header only mode and can be included in other headers +* or source files without problems. But only ONE file should hold the implementation +* +* #define RAYGUI_STANDALONE +* Avoid raylib.h header inclusion in this file. Data types defined on raylib are defined +* internally in the library and input management and drawing functions must be provided by +* the user (check library implementation for further details) +* +* #define RAYGUI_NO_ICONS +* Avoid including embedded ricons data (256 icons, 16x16 pixels, 1-bit per pixel, 2KB) +* +* #define RAYGUI_CUSTOM_ICONS +* Includes custom ricons.h header defining a set of custom icons, +* this file can be generated using rGuiIcons tool +* +* #define RAYGUI_DEBUG_RECS_BOUNDS +* Draw control bounds rectangles for debug +* +* #define RAYGUI_DEBUG_TEXT_BOUNDS +* Draw text bounds rectangles for debug +* +* VERSIONS HISTORY: +* 5.0-dev (2025) Current dev version... +* ADDED: guiControlExclusiveMode and guiControlExclusiveRec for exclusive modes +* ADDED: GuiValueBoxFloat() +* ADDED: GuiDropdonwBox() properties: DROPDOWN_ARROW_HIDDEN, DROPDOWN_ROLL_UP +* ADDED: GuiListView() property: LIST_ITEMS_BORDER_WIDTH +* ADDED: GuiLoadIconsFromMemory() +* ADDED: Multiple new icons +* REMOVED: GuiSpinner() from controls list, using BUTTON + VALUEBOX properties +* REMOVED: GuiSliderPro(), functionality was redundant +* REVIEWED: Controls using text labels to use LABEL properties +* REVIEWED: Replaced sprintf() by snprintf() for more safety +* REVIEWED: GuiTabBar(), close tab with mouse middle button +* REVIEWED: GuiScrollPanel(), scroll speed proportional to content +* REVIEWED: GuiDropdownBox(), support roll up and hidden arrow +* REVIEWED: GuiTextBox(), cursor position initialization +* REVIEWED: GuiSliderPro(), control value change check +* REVIEWED: GuiGrid(), simplified implementation +* REVIEWED: GuiIconText(), increase buffer size and reviewed padding +* REVIEWED: GuiDrawText(), improved wrap mode drawing +* REVIEWED: GuiScrollBar(), minor tweaks +* REVIEWED: GuiProgressBar(), improved borders computing +* REVIEWED: GuiTextBox(), multiple improvements: autocursor and more +* REVIEWED: Functions descriptions, removed wrong return value reference +* REDESIGNED: GuiColorPanel(), improved HSV <-> RGBA convertion +* +* 4.0 (12-Sep-2023) ADDED: GuiToggleSlider() +* ADDED: GuiColorPickerHSV() and GuiColorPanelHSV() +* ADDED: Multiple new icons, mostly compiler related +* ADDED: New DEFAULT properties: TEXT_LINE_SPACING, TEXT_ALIGNMENT_VERTICAL, TEXT_WRAP_MODE +* ADDED: New enum values: GuiTextAlignment, GuiTextAlignmentVertical, GuiTextWrapMode +* ADDED: Support loading styles with custom font charset from external file +* REDESIGNED: GuiTextBox(), support mouse cursor positioning +* REDESIGNED: GuiDrawText(), support multiline and word-wrap modes (read only) +* REDESIGNED: GuiProgressBar() to be more visual, progress affects border color +* REDESIGNED: Global alpha consideration moved to GuiDrawRectangle() and GuiDrawText() +* REDESIGNED: GuiScrollPanel(), get parameters by reference and return result value +* REDESIGNED: GuiToggleGroup(), get parameters by reference and return result value +* REDESIGNED: GuiComboBox(), get parameters by reference and return result value +* REDESIGNED: GuiCheckBox(), get parameters by reference and return result value +* REDESIGNED: GuiSlider(), get parameters by reference and return result value +* REDESIGNED: GuiSliderBar(), get parameters by reference and return result value +* REDESIGNED: GuiProgressBar(), get parameters by reference and return result value +* REDESIGNED: GuiListView(), get parameters by reference and return result value +* REDESIGNED: GuiColorPicker(), get parameters by reference and return result value +* REDESIGNED: GuiColorPanel(), get parameters by reference and return result value +* REDESIGNED: GuiColorBarAlpha(), get parameters by reference and return result value +* REDESIGNED: GuiColorBarHue(), get parameters by reference and return result value +* REDESIGNED: GuiGrid(), get parameters by reference and return result value +* REDESIGNED: GuiGrid(), added extra parameter +* REDESIGNED: GuiListViewEx(), change parameters order +* REDESIGNED: All controls return result as int value +* REVIEWED: GuiScrollPanel() to avoid smallish scroll-bars +* REVIEWED: All examples and specially controls_test_suite +* RENAMED: gui_file_dialog module to gui_window_file_dialog +* UPDATED: All styles to include ISO-8859-15 charset (as much as possible) +* +* 3.6 (10-May-2023) ADDED: New icon: SAND_TIMER +* ADDED: GuiLoadStyleFromMemory() (binary only) +* REVIEWED: GuiScrollBar() horizontal movement key +* REVIEWED: GuiTextBox() crash on cursor movement +* REVIEWED: GuiTextBox(), additional inputs support +* REVIEWED: GuiLabelButton(), avoid text cut +* REVIEWED: GuiTextInputBox(), password input +* REVIEWED: Local GetCodepointNext(), aligned with raylib +* REDESIGNED: GuiSlider*()/GuiScrollBar() to support out-of-bounds +* +* 3.5 (20-Apr-2023) ADDED: GuiTabBar(), based on GuiToggle() +* ADDED: Helper functions to split text in separate lines +* ADDED: Multiple new icons, useful for code editing tools +* REMOVED: Unneeded icon editing functions +* REMOVED: GuiTextBoxMulti(), very limited and broken +* REMOVED: MeasureTextEx() dependency, logic directly implemented +* REMOVED: DrawTextEx() dependency, logic directly implemented +* REVIEWED: GuiScrollBar(), improve mouse-click behaviour +* REVIEWED: Library header info, more info, better organized +* REDESIGNED: GuiTextBox() to support cursor movement +* REDESIGNED: GuiDrawText() to divide drawing by lines +* +* 3.2 (22-May-2022) RENAMED: Some enum values, for unification, avoiding prefixes +* REMOVED: GuiScrollBar(), only internal +* REDESIGNED: GuiPanel() to support text parameter +* REDESIGNED: GuiScrollPanel() to support text parameter +* REDESIGNED: GuiColorPicker() to support text parameter +* REDESIGNED: GuiColorPanel() to support text parameter +* REDESIGNED: GuiColorBarAlpha() to support text parameter +* REDESIGNED: GuiColorBarHue() to support text parameter +* REDESIGNED: GuiTextInputBox() to support password +* +* 3.1 (12-Jan-2022) REVIEWED: Default style for consistency (aligned with rGuiLayout v2.5 tool) +* REVIEWED: GuiLoadStyle() to support compressed font atlas image data and unload previous textures +* REVIEWED: External icons usage logic +* REVIEWED: GuiLine() for centered alignment when including text +* RENAMED: Multiple controls properties definitions to prepend RAYGUI_ +* RENAMED: RICON_ references to RAYGUI_ICON_ for library consistency +* Projects updated and multiple tweaks +* +* 3.0 (04-Nov-2021) Integrated ricons data to avoid external file +* REDESIGNED: GuiTextBoxMulti() +* REMOVED: GuiImageButton*() +* Multiple minor tweaks and bugs corrected +* +* 2.9 (17-Mar-2021) REMOVED: Tooltip API +* 2.8 (03-May-2020) Centralized rectangles drawing to GuiDrawRectangle() +* 2.7 (20-Feb-2020) ADDED: Possible tooltips API +* 2.6 (09-Sep-2019) ADDED: GuiTextInputBox() +* REDESIGNED: GuiListView*(), GuiDropdownBox(), GuiSlider*(), GuiProgressBar(), GuiMessageBox() +* REVIEWED: GuiTextBox(), GuiSpinner(), GuiValueBox(), GuiLoadStyle() +* Replaced property INNER_PADDING by TEXT_PADDING, renamed some properties +* ADDED: 8 new custom styles ready to use +* Multiple minor tweaks and bugs corrected +* +* 2.5 (28-May-2019) Implemented extended GuiTextBox(), GuiValueBox(), GuiSpinner() +* 2.3 (29-Apr-2019) ADDED: rIcons auxiliar library and support for it, multiple controls reviewed +* Refactor all controls drawing mechanism to use control state +* 2.2 (05-Feb-2019) ADDED: GuiScrollBar(), GuiScrollPanel(), reviewed GuiListView(), removed Gui*Ex() controls +* 2.1 (26-Dec-2018) REDESIGNED: GuiCheckBox(), GuiComboBox(), GuiDropdownBox(), GuiToggleGroup() > Use combined text string +* REDESIGNED: Style system (breaking change) +* 2.0 (08-Nov-2018) ADDED: Support controls guiLock and custom fonts +* REVIEWED: GuiComboBox(), GuiListView()... +* 1.9 (09-Oct-2018) REVIEWED: GuiGrid(), GuiTextBox(), GuiTextBoxMulti(), GuiValueBox()... +* 1.8 (01-May-2018) Lot of rework and redesign to align with rGuiStyler and rGuiLayout +* 1.5 (21-Jun-2017) Working in an improved styles system +* 1.4 (15-Jun-2017) Rewritten all GUI functions (removed useless ones) +* 1.3 (12-Jun-2017) Complete redesign of style system +* 1.1 (01-Jun-2017) Complete review of the library +* 1.0 (07-Jun-2016) Converted to header-only by Ramon Santamaria +* 0.9 (07-Mar-2016) Reviewed and tested by Albert Martos, Ian Eito, Sergio Martinez and Ramon Santamaria +* 0.8 (27-Aug-2015) Initial release. Implemented by Kevin Gato, Daniel Nicolás and Ramon Santamaria +* +* DEPENDENCIES: +* raylib 5.0 - Inputs reading (keyboard/mouse), shapes drawing, font loading and text drawing +* +* STANDALONE MODE: +* By default raygui depends on raylib mostly for the inputs and the drawing functionality but that dependency can be disabled +* with the config flag RAYGUI_STANDALONE. In that case is up to the user to provide another backend to cover library needs +* +* The following functions should be redefined for a custom backend: +* +* - Vector2 GetMousePosition(void); +* - float GetMouseWheelMove(void); +* - bool IsMouseButtonDown(int button); +* - bool IsMouseButtonPressed(int button); +* - bool IsMouseButtonReleased(int button); +* - bool IsKeyDown(int key); +* - bool IsKeyPressed(int key); +* - int GetCharPressed(void); // -- GuiTextBox(), GuiValueBox() +* +* - void DrawRectangle(int x, int y, int width, int height, Color color); // -- GuiDrawRectangle() +* - void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4); // -- GuiColorPicker() +* +* - Font GetFontDefault(void); // -- GuiLoadStyleDefault() +* - Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount); // -- GuiLoadStyle() +* - Texture2D LoadTextureFromImage(Image image); // -- GuiLoadStyle(), required to load texture from embedded font atlas image +* - void SetShapesTexture(Texture2D tex, Rectangle rec); // -- GuiLoadStyle(), required to set shapes rec to font white rec (optimization) +* - char *LoadFileText(const char *fileName); // -- GuiLoadStyle(), required to load charset data +* - void UnloadFileText(char *text); // -- GuiLoadStyle(), required to unload charset data +* - const char *GetDirectoryPath(const char *filePath); // -- GuiLoadStyle(), required to find charset/font file from text .rgs +* - int *LoadCodepoints(const char *text, int *count); // -- GuiLoadStyle(), required to load required font codepoints list +* - void UnloadCodepoints(int *codepoints); // -- GuiLoadStyle(), required to unload codepoints list +* - unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize); // -- GuiLoadStyle() +* +* CONTRIBUTORS: +* Ramon Santamaria: Supervision, review, redesign, update and maintenance +* Vlad Adrian: Complete rewrite of GuiTextBox() to support extended features (2019) +* Sergio Martinez: Review, testing (2015) and redesign of multiple controls (2018) +* Adria Arranz: Testing and implementation of additional controls (2018) +* Jordi Jorba: Testing and implementation of additional controls (2018) +* Albert Martos: Review and testing of the library (2015) +* Ian Eito: Review and testing of the library (2015) +* Kevin Gato: Initial implementation of basic components (2014) +* Daniel Nicolas: Initial implementation of basic components (2014) +* +* +* LICENSE: zlib/libpng +* +* Copyright (c) 2014-2025 Ramon Santamaria (@raysan5) +* +* This software is provided "as-is", without any express or implied warranty. In no event +* will the authors be held liable for any damages arising from the use of this software. +* +* Permission is granted to anyone to use this software for any purpose, including commercial +* applications, and to alter it and redistribute it freely, subject to the following restrictions: +* +* 1. The origin of this software must not be misrepresented; you must not claim that you +* wrote the original software. If you use this software in a product, an acknowledgment +* in the product documentation would be appreciated but is not required. +* +* 2. Altered source versions must be plainly marked as such, and must not be misrepresented +* as being the original software. +* +* 3. This notice may not be removed or altered from any source distribution. +* +**********************************************************************************************/ + +#ifndef RAYGUI_H +#define RAYGUI_H + +#define RAYGUI_VERSION_MAJOR 4 +#define RAYGUI_VERSION_MINOR 5 +#define RAYGUI_VERSION_PATCH 0 +#define RAYGUI_VERSION "5.0-dev" + +#if !defined(RAYGUI_STANDALONE) + #include "raylib.h" +#endif + +// Function specifiers in case library is build/used as a shared library (Windows) +// NOTE: Microsoft specifiers to tell compiler that symbols are imported/exported from a .dll +#if defined(_WIN32) + #if defined(BUILD_LIBTYPE_SHARED) + #define RAYGUIAPI __declspec(dllexport) // We are building the library as a Win32 shared library (.dll) + #elif defined(USE_LIBTYPE_SHARED) + #define RAYGUIAPI __declspec(dllimport) // We are using the library as a Win32 shared library (.dll) + #endif +#endif + +// Function specifiers definition +#ifndef RAYGUIAPI + #define RAYGUIAPI // Functions defined as 'extern' by default (implicit specifiers) +#endif + +//---------------------------------------------------------------------------------- +// Defines and Macros +//---------------------------------------------------------------------------------- +// Simple log system to avoid printf() calls if required +// NOTE: Avoiding those calls, also avoids const strings memory usage +#define RAYGUI_SUPPORT_LOG_INFO +#if defined(RAYGUI_SUPPORT_LOG_INFO) + #define RAYGUI_LOG(...) printf(__VA_ARGS__) +#else + #define RAYGUI_LOG(...) +#endif + +//---------------------------------------------------------------------------------- +// Types and Structures Definition +// NOTE: Some types are required for RAYGUI_STANDALONE usage +//---------------------------------------------------------------------------------- +#if defined(RAYGUI_STANDALONE) + #ifndef __cplusplus + // Boolean type + #ifndef true + typedef enum { false, true } bool; + #endif + #endif + + // Vector2 type + typedef struct Vector2 { + float x; + float y; + } Vector2; + + // Vector3 type // -- ConvertHSVtoRGB(), ConvertRGBtoHSV() + typedef struct Vector3 { + float x; + float y; + float z; + } Vector3; + + // Color type, RGBA (32bit) + typedef struct Color { + unsigned char r; + unsigned char g; + unsigned char b; + unsigned char a; + } Color; + + // Rectangle type + typedef struct Rectangle { + float x; + float y; + float width; + float height; + } Rectangle; + + // TODO: Texture2D type is very coupled to raylib, required by Font type + // It should be redesigned to be provided by user + typedef struct Texture { + unsigned int id; // OpenGL texture id + int width; // Texture base width + int height; // Texture base height + int mipmaps; // Mipmap levels, 1 by default + int format; // Data format (PixelFormat type) + } Texture; + + // Texture2D, same as Texture + typedef Texture Texture2D; + + // Image, pixel data stored in CPU memory (RAM) + typedef struct Image { + void *data; // Image raw data + int width; // Image base width + int height; // Image base height + int mipmaps; // Mipmap levels, 1 by default + int format; // Data format (PixelFormat type) + } Image; + + // GlyphInfo, font characters glyphs info + typedef struct GlyphInfo { + int value; // Character value (Unicode) + int offsetX; // Character offset X when drawing + int offsetY; // Character offset Y when drawing + int advanceX; // Character advance position X + Image image; // Character image data + } GlyphInfo; + + // TODO: Font type is very coupled to raylib, mostly required by GuiLoadStyle() + // It should be redesigned to be provided by user + typedef struct Font { + int baseSize; // Base size (default chars height) + int glyphCount; // Number of glyph characters + int glyphPadding; // Padding around the glyph characters + Texture2D texture; // Texture atlas containing the glyphs + Rectangle *recs; // Rectangles in texture for the glyphs + GlyphInfo *glyphs; // Glyphs info data + } Font; +#endif + +// Style property +// NOTE: Used when exporting style as code for convenience +typedef struct GuiStyleProp { + unsigned short controlId; // Control identifier + unsigned short propertyId; // Property identifier + int propertyValue; // Property value +} GuiStyleProp; + +/* +// Controls text style -NOT USED- +// NOTE: Text style is defined by control +typedef struct GuiTextStyle { + unsigned int size; + int charSpacing; + int lineSpacing; + int alignmentH; + int alignmentV; + int padding; +} GuiTextStyle; +*/ + +// Gui control state +typedef enum { + STATE_NORMAL = 0, + STATE_FOCUSED, + STATE_PRESSED, + STATE_DISABLED +} GuiState; + +// Gui control text alignment +typedef enum { + TEXT_ALIGN_LEFT = 0, + TEXT_ALIGN_CENTER, + TEXT_ALIGN_RIGHT +} GuiTextAlignment; + +// Gui control text alignment vertical +// NOTE: Text vertical position inside the text bounds +typedef enum { + TEXT_ALIGN_TOP = 0, + TEXT_ALIGN_MIDDLE, + TEXT_ALIGN_BOTTOM +} GuiTextAlignmentVertical; + +// Gui control text wrap mode +// NOTE: Useful for multiline text +typedef enum { + TEXT_WRAP_NONE = 0, + TEXT_WRAP_CHAR, + TEXT_WRAP_WORD +} GuiTextWrapMode; + +// Gui controls +typedef enum { + // Default -> populates to all controls when set + DEFAULT = 0, + + // Basic controls + LABEL, // Used also for: LABELBUTTON + BUTTON, + TOGGLE, // Used also for: TOGGLEGROUP + SLIDER, // Used also for: SLIDERBAR, TOGGLESLIDER + PROGRESSBAR, + CHECKBOX, + COMBOBOX, + DROPDOWNBOX, + TEXTBOX, // Used also for: TEXTBOXMULTI + VALUEBOX, + CONTROL11, + LISTVIEW, + COLORPICKER, + SCROLLBAR, + STATUSBAR +} GuiControl; + +// Gui base properties for every control +// NOTE: RAYGUI_MAX_PROPS_BASE properties (by default 16 properties) +typedef enum { + BORDER_COLOR_NORMAL = 0, // Control border color in STATE_NORMAL + BASE_COLOR_NORMAL, // Control base color in STATE_NORMAL + TEXT_COLOR_NORMAL, // Control text color in STATE_NORMAL + BORDER_COLOR_FOCUSED, // Control border color in STATE_FOCUSED + BASE_COLOR_FOCUSED, // Control base color in STATE_FOCUSED + TEXT_COLOR_FOCUSED, // Control text color in STATE_FOCUSED + BORDER_COLOR_PRESSED, // Control border color in STATE_PRESSED + BASE_COLOR_PRESSED, // Control base color in STATE_PRESSED + TEXT_COLOR_PRESSED, // Control text color in STATE_PRESSED + BORDER_COLOR_DISABLED, // Control border color in STATE_DISABLED + BASE_COLOR_DISABLED, // Control base color in STATE_DISABLED + TEXT_COLOR_DISABLED, // Control text color in STATE_DISABLED + BORDER_WIDTH = 12, // Control border size, 0 for no border + //TEXT_SIZE, // Control text size (glyphs max height) -> GLOBAL for all controls + //TEXT_SPACING, // Control text spacing between glyphs -> GLOBAL for all controls + //TEXT_LINE_SPACING, // Control text spacing between lines -> GLOBAL for all controls + TEXT_PADDING = 13, // Control text padding, not considering border + TEXT_ALIGNMENT = 14, // Control text horizontal alignment inside control text bound (after border and padding) + //TEXT_WRAP_MODE // Control text wrap-mode inside text bounds -> GLOBAL for all controls +} GuiControlProperty; + +// TODO: Which text styling properties should be global or per-control? +// At this moment TEXT_PADDING and TEXT_ALIGNMENT is configured and saved per control while +// TEXT_SIZE, TEXT_SPACING, TEXT_LINE_SPACING, TEXT_ALIGNMENT_VERTICAL, TEXT_WRAP_MODE are global and +// should be configured by user as needed while defining the UI layout + +// Gui extended properties depend on control +// NOTE: RAYGUI_MAX_PROPS_EXTENDED properties (by default, max 8 properties) +//---------------------------------------------------------------------------------- +// DEFAULT extended properties +// NOTE: Those properties are common to all controls or global +// WARNING: We only have 8 slots for those properties by default!!! -> New global control: TEXT? +typedef enum { + TEXT_SIZE = 16, // Text size (glyphs max height) + TEXT_SPACING, // Text spacing between glyphs + LINE_COLOR, // Line control color + BACKGROUND_COLOR, // Background color + TEXT_LINE_SPACING, // Text spacing between lines + TEXT_ALIGNMENT_VERTICAL, // Text vertical alignment inside text bounds (after border and padding) + TEXT_WRAP_MODE // Text wrap-mode inside text bounds + //TEXT_DECORATION // Text decoration: 0-None, 1-Underline, 2-Line-through, 3-Overline + //TEXT_DECORATION_THICK // Text decoration line thickness +} GuiDefaultProperty; + +// Other possible text properties: +// TEXT_WEIGHT // Normal, Italic, Bold -> Requires specific font change +// TEXT_INDENT // Text indentation -> Now using TEXT_PADDING... + +// Label +//typedef enum { } GuiLabelProperty; + +// Button/Spinner +//typedef enum { } GuiButtonProperty; + +// Toggle/ToggleGroup +typedef enum { + GROUP_PADDING = 16, // ToggleGroup separation between toggles +} GuiToggleProperty; + +// Slider/SliderBar +typedef enum { + SLIDER_WIDTH = 16, // Slider size of internal bar + SLIDER_PADDING // Slider/SliderBar internal bar padding +} GuiSliderProperty; + +// ProgressBar +typedef enum { + PROGRESS_PADDING = 16, // ProgressBar internal padding +} GuiProgressBarProperty; + +// ScrollBar +typedef enum { + ARROWS_SIZE = 16, // ScrollBar arrows size + ARROWS_VISIBLE, // ScrollBar arrows visible + SCROLL_SLIDER_PADDING, // ScrollBar slider internal padding + SCROLL_SLIDER_SIZE, // ScrollBar slider size + SCROLL_PADDING, // ScrollBar scroll padding from arrows + SCROLL_SPEED, // ScrollBar scrolling speed +} GuiScrollBarProperty; + +// CheckBox +typedef enum { + CHECK_PADDING = 16 // CheckBox internal check padding +} GuiCheckBoxProperty; + +// ComboBox +typedef enum { + COMBO_BUTTON_WIDTH = 16, // ComboBox right button width + COMBO_BUTTON_SPACING // ComboBox button separation +} GuiComboBoxProperty; + +// DropdownBox +typedef enum { + ARROW_PADDING = 16, // DropdownBox arrow separation from border and items + DROPDOWN_ITEMS_SPACING, // DropdownBox items separation + DROPDOWN_ARROW_HIDDEN, // DropdownBox arrow hidden + DROPDOWN_ROLL_UP // DropdownBox roll up flag (default rolls down) +} GuiDropdownBoxProperty; + +// TextBox/TextBoxMulti/ValueBox/Spinner +typedef enum { + TEXT_READONLY = 16, // TextBox in read-only mode: 0-text editable, 1-text no-editable +} GuiTextBoxProperty; + +// ValueBox/Spinner +typedef enum { + SPINNER_BUTTON_WIDTH = 16, // Spinner left/right buttons width + SPINNER_BUTTON_SPACING, // Spinner buttons separation +} GuiValueBoxProperty; + +// Control11 +//typedef enum { } GuiControl11Property; + +// ListView +typedef enum { + LIST_ITEMS_HEIGHT = 16, // ListView items height + LIST_ITEMS_SPACING, // ListView items separation + SCROLLBAR_WIDTH, // ListView scrollbar size (usually width) + SCROLLBAR_SIDE, // ListView scrollbar side (0-SCROLLBAR_LEFT_SIDE, 1-SCROLLBAR_RIGHT_SIDE) + LIST_ITEMS_BORDER_NORMAL, // ListView items border enabled in normal state + LIST_ITEMS_BORDER_WIDTH // ListView items border width +} GuiListViewProperty; + +// ColorPicker +typedef enum { + COLOR_SELECTOR_SIZE = 16, + HUEBAR_WIDTH, // ColorPicker right hue bar width + HUEBAR_PADDING, // ColorPicker right hue bar separation from panel + HUEBAR_SELECTOR_HEIGHT, // ColorPicker right hue bar selector height + HUEBAR_SELECTOR_OVERFLOW // ColorPicker right hue bar selector overflow +} GuiColorPickerProperty; + +#define SCROLLBAR_LEFT_SIDE 0 +#define SCROLLBAR_RIGHT_SIDE 1 + +//---------------------------------------------------------------------------------- +// Global Variables Definition +//---------------------------------------------------------------------------------- +// ... + +//---------------------------------------------------------------------------------- +// Module Functions Declaration +//---------------------------------------------------------------------------------- + +#if defined(__cplusplus) +extern "C" { // Prevents name mangling of functions +#endif + +// Global gui state control functions +RAYGUIAPI void GuiEnable(void); // Enable gui controls (global state) +RAYGUIAPI void GuiDisable(void); // Disable gui controls (global state) +RAYGUIAPI void GuiLock(void); // Lock gui controls (global state) +RAYGUIAPI void GuiUnlock(void); // Unlock gui controls (global state) +RAYGUIAPI bool GuiIsLocked(void); // Check if gui is locked (global state) +RAYGUIAPI void GuiSetAlpha(float alpha); // Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f +RAYGUIAPI void GuiSetState(int state); // Set gui state (global state) +RAYGUIAPI int GuiGetState(void); // Get gui state (global state) + +// Font set/get functions +RAYGUIAPI void GuiSetFont(Font font); // Set gui custom font (global state) +RAYGUIAPI Font GuiGetFont(void); // Get gui custom font (global state) + +// Style set/get functions +RAYGUIAPI void GuiSetStyle(int control, int property, int value); // Set one style property +RAYGUIAPI int GuiGetStyle(int control, int property); // Get one style property + +// Styles loading functions +RAYGUIAPI void GuiLoadStyle(const char *fileName); // Load style file over global style variable (.rgs) +RAYGUIAPI void GuiLoadStyleDefault(void); // Load style default over global style + +// Tooltips management functions +RAYGUIAPI void GuiEnableTooltip(void); // Enable gui tooltips (global state) +RAYGUIAPI void GuiDisableTooltip(void); // Disable gui tooltips (global state) +RAYGUIAPI void GuiSetTooltip(const char *tooltip); // Set tooltip string + +// Icons functionality +RAYGUIAPI const char *GuiIconText(int iconId, const char *text); // Get text with icon id prepended (if supported) +#if !defined(RAYGUI_NO_ICONS) +RAYGUIAPI void GuiSetIconScale(int scale); // Set default icon drawing size +RAYGUIAPI unsigned int *GuiGetIcons(void); // Get raygui icons data pointer +RAYGUIAPI char **GuiLoadIcons(const char *fileName, bool loadIconsName); // Load raygui icons file (.rgi) into internal icons data +RAYGUIAPI void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color); // Draw icon using pixel size at specified position +#endif + +// Utility functions +RAYGUIAPI int GuiGetTextWidth(const char *text); // Get text width considering gui style and icon size (if required) + +// Controls +//---------------------------------------------------------------------------------------------------------- +// Container/separator controls, useful for controls organization +RAYGUIAPI int GuiWindowBox(Rectangle bounds, const char *title); // Window Box control, shows a window that can be closed +RAYGUIAPI int GuiGroupBox(Rectangle bounds, const char *text); // Group Box control with text name +RAYGUIAPI int GuiLine(Rectangle bounds, const char *text); // Line separator control, could contain text +RAYGUIAPI int GuiPanel(Rectangle bounds, const char *text); // Panel control, useful to group controls +RAYGUIAPI int GuiTabBar(Rectangle bounds, const char **text, int count, int *active); // Tab Bar control, returns TAB to be closed or -1 +RAYGUIAPI int GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content, Vector2 *scroll, Rectangle *view); // Scroll Panel control + +// Basic controls set +RAYGUIAPI int GuiLabel(Rectangle bounds, const char *text); // Label control +RAYGUIAPI int GuiButton(Rectangle bounds, const char *text); // Button control, returns true when clicked +RAYGUIAPI int GuiLabelButton(Rectangle bounds, const char *text); // Label button control, returns true when clicked +RAYGUIAPI int GuiToggle(Rectangle bounds, const char *text, bool *active); // Toggle Button control +RAYGUIAPI int GuiToggleGroup(Rectangle bounds, const char *text, int *active); // Toggle Group control +RAYGUIAPI int GuiToggleSlider(Rectangle bounds, const char *text, int *active); // Toggle Slider control +RAYGUIAPI int GuiCheckBox(Rectangle bounds, const char *text, bool *checked); // Check Box control, returns true when active +RAYGUIAPI int GuiComboBox(Rectangle bounds, const char *text, int *active); // Combo Box control + +RAYGUIAPI int GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMode); // Dropdown Box control +RAYGUIAPI int GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode); // Spinner control +RAYGUIAPI int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode); // Value Box control, updates input text with numbers +RAYGUIAPI int GuiValueBoxFloat(Rectangle bounds, const char *text, char *textValue, float *value, bool editMode); // Value box control for float values +RAYGUIAPI int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode); // Text Box control, updates input text + +RAYGUIAPI int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue); // Slider control +RAYGUIAPI int GuiSliderBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue); // Slider Bar control +RAYGUIAPI int GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue); // Progress Bar control +RAYGUIAPI int GuiStatusBar(Rectangle bounds, const char *text); // Status Bar control, shows info text +RAYGUIAPI int GuiDummyRec(Rectangle bounds, const char *text); // Dummy control for placeholders +RAYGUIAPI int GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs, Vector2 *mouseCell); // Grid control + +// Advance controls set +RAYGUIAPI int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *active); // List View control +RAYGUIAPI int GuiListViewEx(Rectangle bounds, const char **text, int count, int *scrollIndex, int *active, int *focus); // List View with extended parameters +RAYGUIAPI int GuiMessageBox(Rectangle bounds, const char *title, const char *message, const char *buttons); // Message Box control, displays a message +RAYGUIAPI int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, const char *buttons, char *text, int textMaxSize, bool *secretViewActive); // Text Input Box control, ask for text, supports secret +RAYGUIAPI int GuiColorPicker(Rectangle bounds, const char *text, Color *color); // Color Picker control (multiple color controls) +RAYGUIAPI int GuiColorPanel(Rectangle bounds, const char *text, Color *color); // Color Panel control +RAYGUIAPI int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha); // Color Bar Alpha control +RAYGUIAPI int GuiColorBarHue(Rectangle bounds, const char *text, float *value); // Color Bar Hue control +RAYGUIAPI int GuiColorPickerHSV(Rectangle bounds, const char *text, Vector3 *colorHsv); // Color Picker control that avoids conversion to RGB on each call (multiple color controls) +RAYGUIAPI int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv); // Color Panel control that updates Hue-Saturation-Value color value, used by GuiColorPickerHSV() +//---------------------------------------------------------------------------------------------------------- + +#if !defined(RAYGUI_NO_ICONS) + +#if !defined(RAYGUI_CUSTOM_ICONS) +//---------------------------------------------------------------------------------- +// Icons enumeration +//---------------------------------------------------------------------------------- +typedef enum { + ICON_NONE = 0, + ICON_FOLDER_FILE_OPEN = 1, + ICON_FILE_SAVE_CLASSIC = 2, + ICON_FOLDER_OPEN = 3, + ICON_FOLDER_SAVE = 4, + ICON_FILE_OPEN = 5, + ICON_FILE_SAVE = 6, + ICON_FILE_EXPORT = 7, + ICON_FILE_ADD = 8, + ICON_FILE_DELETE = 9, + ICON_FILETYPE_TEXT = 10, + ICON_FILETYPE_AUDIO = 11, + ICON_FILETYPE_IMAGE = 12, + ICON_FILETYPE_PLAY = 13, + ICON_FILETYPE_VIDEO = 14, + ICON_FILETYPE_INFO = 15, + ICON_FILE_COPY = 16, + ICON_FILE_CUT = 17, + ICON_FILE_PASTE = 18, + ICON_CURSOR_HAND = 19, + ICON_CURSOR_POINTER = 20, + ICON_CURSOR_CLASSIC = 21, + ICON_PENCIL = 22, + ICON_PENCIL_BIG = 23, + ICON_BRUSH_CLASSIC = 24, + ICON_BRUSH_PAINTER = 25, + ICON_WATER_DROP = 26, + ICON_COLOR_PICKER = 27, + ICON_RUBBER = 28, + ICON_COLOR_BUCKET = 29, + ICON_TEXT_T = 30, + ICON_TEXT_A = 31, + ICON_SCALE = 32, + ICON_RESIZE = 33, + ICON_FILTER_POINT = 34, + ICON_FILTER_BILINEAR = 35, + ICON_CROP = 36, + ICON_CROP_ALPHA = 37, + ICON_SQUARE_TOGGLE = 38, + ICON_SYMMETRY = 39, + ICON_SYMMETRY_HORIZONTAL = 40, + ICON_SYMMETRY_VERTICAL = 41, + ICON_LENS = 42, + ICON_LENS_BIG = 43, + ICON_EYE_ON = 44, + ICON_EYE_OFF = 45, + ICON_FILTER_TOP = 46, + ICON_FILTER = 47, + ICON_TARGET_POINT = 48, + ICON_TARGET_SMALL = 49, + ICON_TARGET_BIG = 50, + ICON_TARGET_MOVE = 51, + ICON_CURSOR_MOVE = 52, + ICON_CURSOR_SCALE = 53, + ICON_CURSOR_SCALE_RIGHT = 54, + ICON_CURSOR_SCALE_LEFT = 55, + ICON_UNDO = 56, + ICON_REDO = 57, + ICON_REREDO = 58, + ICON_MUTATE = 59, + ICON_ROTATE = 60, + ICON_REPEAT = 61, + ICON_SHUFFLE = 62, + ICON_EMPTYBOX = 63, + ICON_TARGET = 64, + ICON_TARGET_SMALL_FILL = 65, + ICON_TARGET_BIG_FILL = 66, + ICON_TARGET_MOVE_FILL = 67, + ICON_CURSOR_MOVE_FILL = 68, + ICON_CURSOR_SCALE_FILL = 69, + ICON_CURSOR_SCALE_RIGHT_FILL = 70, + ICON_CURSOR_SCALE_LEFT_FILL = 71, + ICON_UNDO_FILL = 72, + ICON_REDO_FILL = 73, + ICON_REREDO_FILL = 74, + ICON_MUTATE_FILL = 75, + ICON_ROTATE_FILL = 76, + ICON_REPEAT_FILL = 77, + ICON_SHUFFLE_FILL = 78, + ICON_EMPTYBOX_SMALL = 79, + ICON_BOX = 80, + ICON_BOX_TOP = 81, + ICON_BOX_TOP_RIGHT = 82, + ICON_BOX_RIGHT = 83, + ICON_BOX_BOTTOM_RIGHT = 84, + ICON_BOX_BOTTOM = 85, + ICON_BOX_BOTTOM_LEFT = 86, + ICON_BOX_LEFT = 87, + ICON_BOX_TOP_LEFT = 88, + ICON_BOX_CENTER = 89, + ICON_BOX_CIRCLE_MASK = 90, + ICON_POT = 91, + ICON_ALPHA_MULTIPLY = 92, + ICON_ALPHA_CLEAR = 93, + ICON_DITHERING = 94, + ICON_MIPMAPS = 95, + ICON_BOX_GRID = 96, + ICON_GRID = 97, + ICON_BOX_CORNERS_SMALL = 98, + ICON_BOX_CORNERS_BIG = 99, + ICON_FOUR_BOXES = 100, + ICON_GRID_FILL = 101, + ICON_BOX_MULTISIZE = 102, + ICON_ZOOM_SMALL = 103, + ICON_ZOOM_MEDIUM = 104, + ICON_ZOOM_BIG = 105, + ICON_ZOOM_ALL = 106, + ICON_ZOOM_CENTER = 107, + ICON_BOX_DOTS_SMALL = 108, + ICON_BOX_DOTS_BIG = 109, + ICON_BOX_CONCENTRIC = 110, + ICON_BOX_GRID_BIG = 111, + ICON_OK_TICK = 112, + ICON_CROSS = 113, + ICON_ARROW_LEFT = 114, + ICON_ARROW_RIGHT = 115, + ICON_ARROW_DOWN = 116, + ICON_ARROW_UP = 117, + ICON_ARROW_LEFT_FILL = 118, + ICON_ARROW_RIGHT_FILL = 119, + ICON_ARROW_DOWN_FILL = 120, + ICON_ARROW_UP_FILL = 121, + ICON_AUDIO = 122, + ICON_FX = 123, + ICON_WAVE = 124, + ICON_WAVE_SINUS = 125, + ICON_WAVE_SQUARE = 126, + ICON_WAVE_TRIANGULAR = 127, + ICON_CROSS_SMALL = 128, + ICON_PLAYER_PREVIOUS = 129, + ICON_PLAYER_PLAY_BACK = 130, + ICON_PLAYER_PLAY = 131, + ICON_PLAYER_PAUSE = 132, + ICON_PLAYER_STOP = 133, + ICON_PLAYER_NEXT = 134, + ICON_PLAYER_RECORD = 135, + ICON_MAGNET = 136, + ICON_LOCK_CLOSE = 137, + ICON_LOCK_OPEN = 138, + ICON_CLOCK = 139, + ICON_TOOLS = 140, + ICON_GEAR = 141, + ICON_GEAR_BIG = 142, + ICON_BIN = 143, + ICON_HAND_POINTER = 144, + ICON_LASER = 145, + ICON_COIN = 146, + ICON_EXPLOSION = 147, + ICON_1UP = 148, + ICON_PLAYER = 149, + ICON_PLAYER_JUMP = 150, + ICON_KEY = 151, + ICON_DEMON = 152, + ICON_TEXT_POPUP = 153, + ICON_GEAR_EX = 154, + ICON_CRACK = 155, + ICON_CRACK_POINTS = 156, + ICON_STAR = 157, + ICON_DOOR = 158, + ICON_EXIT = 159, + ICON_MODE_2D = 160, + ICON_MODE_3D = 161, + ICON_CUBE = 162, + ICON_CUBE_FACE_TOP = 163, + ICON_CUBE_FACE_LEFT = 164, + ICON_CUBE_FACE_FRONT = 165, + ICON_CUBE_FACE_BOTTOM = 166, + ICON_CUBE_FACE_RIGHT = 167, + ICON_CUBE_FACE_BACK = 168, + ICON_CAMERA = 169, + ICON_SPECIAL = 170, + ICON_LINK_NET = 171, + ICON_LINK_BOXES = 172, + ICON_LINK_MULTI = 173, + ICON_LINK = 174, + ICON_LINK_BROKE = 175, + ICON_TEXT_NOTES = 176, + ICON_NOTEBOOK = 177, + ICON_SUITCASE = 178, + ICON_SUITCASE_ZIP = 179, + ICON_MAILBOX = 180, + ICON_MONITOR = 181, + ICON_PRINTER = 182, + ICON_PHOTO_CAMERA = 183, + ICON_PHOTO_CAMERA_FLASH = 184, + ICON_HOUSE = 185, + ICON_HEART = 186, + ICON_CORNER = 187, + ICON_VERTICAL_BARS = 188, + ICON_VERTICAL_BARS_FILL = 189, + ICON_LIFE_BARS = 190, + ICON_INFO = 191, + ICON_CROSSLINE = 192, + ICON_HELP = 193, + ICON_FILETYPE_ALPHA = 194, + ICON_FILETYPE_HOME = 195, + ICON_LAYERS_VISIBLE = 196, + ICON_LAYERS = 197, + ICON_WINDOW = 198, + ICON_HIDPI = 199, + ICON_FILETYPE_BINARY = 200, + ICON_HEX = 201, + ICON_SHIELD = 202, + ICON_FILE_NEW = 203, + ICON_FOLDER_ADD = 204, + ICON_ALARM = 205, + ICON_CPU = 206, + ICON_ROM = 207, + ICON_STEP_OVER = 208, + ICON_STEP_INTO = 209, + ICON_STEP_OUT = 210, + ICON_RESTART = 211, + ICON_BREAKPOINT_ON = 212, + ICON_BREAKPOINT_OFF = 213, + ICON_BURGER_MENU = 214, + ICON_CASE_SENSITIVE = 215, + ICON_REG_EXP = 216, + ICON_FOLDER = 217, + ICON_FILE = 218, + ICON_SAND_TIMER = 219, + ICON_WARNING = 220, + ICON_HELP_BOX = 221, + ICON_INFO_BOX = 222, + ICON_PRIORITY = 223, + ICON_LAYERS_ISO = 224, + ICON_LAYERS2 = 225, + ICON_MLAYERS = 226, + ICON_MAPS = 227, + ICON_HOT = 228, + ICON_LABEL = 229, + ICON_NAME_ID = 230, + ICON_SLICING = 231, + ICON_MANUAL_CONTROL = 232, + ICON_COLLISION = 233, + ICON_234 = 234, + ICON_235 = 235, + ICON_236 = 236, + ICON_237 = 237, + ICON_238 = 238, + ICON_239 = 239, + ICON_240 = 240, + ICON_241 = 241, + ICON_242 = 242, + ICON_243 = 243, + ICON_244 = 244, + ICON_245 = 245, + ICON_246 = 246, + ICON_247 = 247, + ICON_248 = 248, + ICON_249 = 249, + ICON_250 = 250, + ICON_251 = 251, + ICON_252 = 252, + ICON_253 = 253, + ICON_254 = 254, + ICON_255 = 255, +} GuiIconName; +#endif + +#endif + +#if defined(__cplusplus) +} // Prevents name mangling of functions +#endif + +#endif // RAYGUI_H + +/*********************************************************************************** +* +* RAYGUI IMPLEMENTATION +* +************************************************************************************/ + +#if defined(RAYGUI_IMPLEMENTATION) + +#include // required for: isspace() [GuiTextBox()] +#include // Required for: FILE, fopen(), fclose(), fprintf(), feof(), fscanf(), snprintf(), vsprintf() [GuiLoadStyle(), GuiLoadIcons()] +#include // Required for: strlen() [GuiTextBox(), GuiValueBox()], memset(), memcpy() +#include // Required for: va_list, va_start(), vfprintf(), va_end() [TextFormat()] +#include // Required for: roundf() [GuiColorPicker()] + +// Allow custom memory allocators +#if defined(RAYGUI_MALLOC) || defined(RAYGUI_CALLOC) || defined(RAYGUI_FREE) + #if !defined(RAYGUI_MALLOC) || !defined(RAYGUI_CALLOC) || !defined(RAYGUI_FREE) + #error "RAYGUI: if RAYGUI_MALLOC, RAYGUI_CALLOC, or RAYGUI_FREE is customized, all three must be customized" + #endif +#else + #include // Required for: malloc(), calloc(), free() [GuiLoadStyle(), GuiLoadIcons()] + + #define RAYGUI_MALLOC(sz) malloc(sz) + #define RAYGUI_CALLOC(n,sz) calloc(n,sz) + #define RAYGUI_FREE(p) free(p) +#endif + +#ifdef __cplusplus + #define RAYGUI_CLITERAL(name) name +#else + #define RAYGUI_CLITERAL(name) (name) +#endif + +// Check if two rectangles are equal, used to validate a slider bounds as an id +#ifndef CHECK_BOUNDS_ID + #define CHECK_BOUNDS_ID(src, dst) ((src.x == dst.x) && (src.y == dst.y) && (src.width == dst.width) && (src.height == dst.height)) +#endif + +#if !defined(RAYGUI_NO_ICONS) && !defined(RAYGUI_CUSTOM_ICONS) + +// Embedded icons, no external file provided +#define RAYGUI_ICON_SIZE 16 // Size of icons in pixels (squared) +#define RAYGUI_ICON_MAX_ICONS 256 // Maximum number of icons +#define RAYGUI_ICON_MAX_NAME_LENGTH 32 // Maximum length of icon name id + +// Icons data is defined by bit array (every bit represents one pixel) +// Those arrays are stored as unsigned int data arrays, so, +// every array element defines 32 pixels (bits) of information +// One icon is defined by 8 int, (8 int * 32 bit = 256 bit = 16*16 pixels) +// NOTE: Number of elemens depend on RAYGUI_ICON_SIZE (by default 16x16 pixels) +#define RAYGUI_ICON_DATA_ELEMENTS (RAYGUI_ICON_SIZE*RAYGUI_ICON_SIZE/32) + +//---------------------------------------------------------------------------------- +// Icons data for all gui possible icons (allocated on data segment by default) +// +// NOTE 1: Every icon is codified in binary form, using 1 bit per pixel, so, +// every 16x16 icon requires 8 integers (16*16/32) to be stored +// +// NOTE 2: A different icon set could be loaded over this array using GuiLoadIcons(), +// but loaded icons set must be same RAYGUI_ICON_SIZE and no more than RAYGUI_ICON_MAX_ICONS +// +// guiIcons size is by default: 256*(16*16/32) = 2048*4 = 8192 bytes = 8 KB +//---------------------------------------------------------------------------------- +static unsigned int guiIcons[RAYGUI_ICON_MAX_ICONS*RAYGUI_ICON_DATA_ELEMENTS] = { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_NONE + 0x3ff80000, 0x2f082008, 0x2042207e, 0x40027fc2, 0x40024002, 0x40024002, 0x40024002, 0x00007ffe, // ICON_FOLDER_FILE_OPEN + 0x3ffe0000, 0x44226422, 0x400247e2, 0x5ffa4002, 0x57ea500a, 0x500a500a, 0x40025ffa, 0x00007ffe, // ICON_FILE_SAVE_CLASSIC + 0x00000000, 0x0042007e, 0x40027fc2, 0x40024002, 0x41024002, 0x44424282, 0x793e4102, 0x00000100, // ICON_FOLDER_OPEN + 0x00000000, 0x0042007e, 0x40027fc2, 0x40024002, 0x41024102, 0x44424102, 0x793e4282, 0x00000000, // ICON_FOLDER_SAVE + 0x3ff00000, 0x201c2010, 0x20042004, 0x21042004, 0x24442284, 0x21042104, 0x20042104, 0x00003ffc, // ICON_FILE_OPEN + 0x3ff00000, 0x201c2010, 0x20042004, 0x21042004, 0x21042104, 0x22842444, 0x20042104, 0x00003ffc, // ICON_FILE_SAVE + 0x3ff00000, 0x201c2010, 0x00042004, 0x20041004, 0x20844784, 0x00841384, 0x20042784, 0x00003ffc, // ICON_FILE_EXPORT + 0x3ff00000, 0x201c2010, 0x20042004, 0x20042004, 0x22042204, 0x22042f84, 0x20042204, 0x00003ffc, // ICON_FILE_ADD + 0x3ff00000, 0x201c2010, 0x20042004, 0x20042004, 0x25042884, 0x25042204, 0x20042884, 0x00003ffc, // ICON_FILE_DELETE + 0x3ff00000, 0x201c2010, 0x20042004, 0x20042ff4, 0x20042ff4, 0x20042ff4, 0x20042004, 0x00003ffc, // ICON_FILETYPE_TEXT + 0x3ff00000, 0x201c2010, 0x27042004, 0x244424c4, 0x26442444, 0x20642664, 0x20042004, 0x00003ffc, // ICON_FILETYPE_AUDIO + 0x3ff00000, 0x201c2010, 0x26042604, 0x20042004, 0x35442884, 0x2414222c, 0x20042004, 0x00003ffc, // ICON_FILETYPE_IMAGE + 0x3ff00000, 0x201c2010, 0x20c42004, 0x22442144, 0x22442444, 0x20c42144, 0x20042004, 0x00003ffc, // ICON_FILETYPE_PLAY + 0x3ff00000, 0x3ffc2ff0, 0x3f3c2ff4, 0x3dbc2eb4, 0x3dbc2bb4, 0x3f3c2eb4, 0x3ffc2ff4, 0x00002ff4, // ICON_FILETYPE_VIDEO + 0x3ff00000, 0x201c2010, 0x21842184, 0x21842004, 0x21842184, 0x21842184, 0x20042184, 0x00003ffc, // ICON_FILETYPE_INFO + 0x0ff00000, 0x381c0810, 0x28042804, 0x28042804, 0x28042804, 0x28042804, 0x20102ffc, 0x00003ff0, // ICON_FILE_COPY + 0x00000000, 0x701c0000, 0x079c1e14, 0x55a000f0, 0x079c00f0, 0x701c1e14, 0x00000000, 0x00000000, // ICON_FILE_CUT + 0x01c00000, 0x13e41bec, 0x3f841004, 0x204420c4, 0x20442044, 0x20442044, 0x207c2044, 0x00003fc0, // ICON_FILE_PASTE + 0x00000000, 0x3aa00fe0, 0x2abc2aa0, 0x2aa42aa4, 0x20042aa4, 0x20042004, 0x3ffc2004, 0x00000000, // ICON_CURSOR_HAND + 0x00000000, 0x003c000c, 0x030800c8, 0x30100c10, 0x10202020, 0x04400840, 0x01800280, 0x00000000, // ICON_CURSOR_POINTER + 0x00000000, 0x00180000, 0x01f00078, 0x03e007f0, 0x07c003e0, 0x04000e40, 0x00000000, 0x00000000, // ICON_CURSOR_CLASSIC + 0x00000000, 0x04000000, 0x11000a00, 0x04400a80, 0x01100220, 0x00580088, 0x00000038, 0x00000000, // ICON_PENCIL + 0x04000000, 0x15000a00, 0x50402880, 0x14102820, 0x05040a08, 0x015c028c, 0x007c00bc, 0x00000000, // ICON_PENCIL_BIG + 0x01c00000, 0x01400140, 0x01400140, 0x0ff80140, 0x0ff80808, 0x0aa80808, 0x0aa80aa8, 0x00000ff8, // ICON_BRUSH_CLASSIC + 0x1ffc0000, 0x5ffc7ffe, 0x40004000, 0x00807f80, 0x01c001c0, 0x01c001c0, 0x01c001c0, 0x00000080, // ICON_BRUSH_PAINTER + 0x00000000, 0x00800000, 0x01c00080, 0x03e001c0, 0x07f003e0, 0x036006f0, 0x000001c0, 0x00000000, // ICON_WATER_DROP + 0x00000000, 0x3e003800, 0x1f803f80, 0x0c201e40, 0x02080c10, 0x00840104, 0x00380044, 0x00000000, // ICON_COLOR_PICKER + 0x00000000, 0x07800300, 0x1fe00fc0, 0x3f883fd0, 0x0e021f04, 0x02040402, 0x00f00108, 0x00000000, // ICON_RUBBER + 0x00c00000, 0x02800140, 0x08200440, 0x20081010, 0x2ffe3004, 0x03f807fc, 0x00e001f0, 0x00000040, // ICON_COLOR_BUCKET + 0x00000000, 0x21843ffc, 0x01800180, 0x01800180, 0x01800180, 0x01800180, 0x03c00180, 0x00000000, // ICON_TEXT_T + 0x00800000, 0x01400180, 0x06200340, 0x0c100620, 0x1ff80c10, 0x380c1808, 0x70067004, 0x0000f80f, // ICON_TEXT_A + 0x78000000, 0x50004000, 0x00004800, 0x03c003c0, 0x03c003c0, 0x00100000, 0x0002000a, 0x0000000e, // ICON_SCALE + 0x75560000, 0x5e004002, 0x54001002, 0x41001202, 0x408200fe, 0x40820082, 0x40820082, 0x00006afe, // ICON_RESIZE + 0x00000000, 0x3f003f00, 0x3f003f00, 0x3f003f00, 0x00400080, 0x001c0020, 0x001c001c, 0x00000000, // ICON_FILTER_POINT + 0x6d800000, 0x00004080, 0x40804080, 0x40800000, 0x00406d80, 0x001c0020, 0x001c001c, 0x00000000, // ICON_FILTER_BILINEAR + 0x40080000, 0x1ffe2008, 0x14081008, 0x11081208, 0x10481088, 0x10081028, 0x10047ff8, 0x00001002, // ICON_CROP + 0x00100000, 0x3ffc0010, 0x2ab03550, 0x22b02550, 0x20b02150, 0x20302050, 0x2000fff0, 0x00002000, // ICON_CROP_ALPHA + 0x40000000, 0x1ff82000, 0x04082808, 0x01082208, 0x00482088, 0x00182028, 0x35542008, 0x00000002, // ICON_SQUARE_TOGGLE + 0x00000000, 0x02800280, 0x06c006c0, 0x0ea00ee0, 0x1e901eb0, 0x3e883e98, 0x7efc7e8c, 0x00000000, // ICON_SYMMETRY + 0x01000000, 0x05600100, 0x1d480d50, 0x7d423d44, 0x3d447d42, 0x0d501d48, 0x01000560, 0x00000100, // ICON_SYMMETRY_HORIZONTAL + 0x01800000, 0x04200240, 0x10080810, 0x00001ff8, 0x00007ffe, 0x0ff01ff8, 0x03c007e0, 0x00000180, // ICON_SYMMETRY_VERTICAL + 0x00000000, 0x010800f0, 0x02040204, 0x02040204, 0x07f00308, 0x1c000e00, 0x30003800, 0x00000000, // ICON_LENS + 0x00000000, 0x061803f0, 0x08240c0c, 0x08040814, 0x0c0c0804, 0x23f01618, 0x18002400, 0x00000000, // ICON_LENS_BIG + 0x00000000, 0x00000000, 0x1c7007c0, 0x638e3398, 0x1c703398, 0x000007c0, 0x00000000, 0x00000000, // ICON_EYE_ON + 0x00000000, 0x10002000, 0x04700fc0, 0x610e3218, 0x1c703098, 0x001007a0, 0x00000008, 0x00000000, // ICON_EYE_OFF + 0x00000000, 0x00007ffc, 0x40047ffc, 0x10102008, 0x04400820, 0x02800280, 0x02800280, 0x00000100, // ICON_FILTER_TOP + 0x00000000, 0x40027ffe, 0x10082004, 0x04200810, 0x02400240, 0x02400240, 0x01400240, 0x000000c0, // ICON_FILTER + 0x00800000, 0x00800080, 0x00000080, 0x3c9e0000, 0x00000000, 0x00800080, 0x00800080, 0x00000000, // ICON_TARGET_POINT + 0x00800000, 0x00800080, 0x00800080, 0x3f7e01c0, 0x008001c0, 0x00800080, 0x00800080, 0x00000000, // ICON_TARGET_SMALL + 0x00800000, 0x00800080, 0x03e00080, 0x3e3e0220, 0x03e00220, 0x00800080, 0x00800080, 0x00000000, // ICON_TARGET_BIG + 0x01000000, 0x04400280, 0x01000100, 0x43842008, 0x43849ab2, 0x01002008, 0x04400100, 0x01000280, // ICON_TARGET_MOVE + 0x01000000, 0x04400280, 0x01000100, 0x41042108, 0x41049ff2, 0x01002108, 0x04400100, 0x01000280, // ICON_CURSOR_MOVE + 0x781e0000, 0x500a4002, 0x04204812, 0x00000240, 0x02400000, 0x48120420, 0x4002500a, 0x0000781e, // ICON_CURSOR_SCALE + 0x00000000, 0x20003c00, 0x24002800, 0x01000200, 0x00400080, 0x00140024, 0x003c0004, 0x00000000, // ICON_CURSOR_SCALE_RIGHT + 0x00000000, 0x0004003c, 0x00240014, 0x00800040, 0x02000100, 0x28002400, 0x3c002000, 0x00000000, // ICON_CURSOR_SCALE_LEFT + 0x00000000, 0x00100020, 0x10101fc8, 0x10001020, 0x10001000, 0x10001000, 0x00001fc0, 0x00000000, // ICON_UNDO + 0x00000000, 0x08000400, 0x080813f8, 0x00080408, 0x00080008, 0x00080008, 0x000003f8, 0x00000000, // ICON_REDO + 0x00000000, 0x3ffc0000, 0x20042004, 0x20002000, 0x20402000, 0x3f902020, 0x00400020, 0x00000000, // ICON_REREDO + 0x00000000, 0x3ffc0000, 0x20042004, 0x27fc2004, 0x20202000, 0x3fc82010, 0x00200010, 0x00000000, // ICON_MUTATE + 0x00000000, 0x0ff00000, 0x10081818, 0x11801008, 0x10001180, 0x18101020, 0x00100fc8, 0x00000020, // ICON_ROTATE + 0x00000000, 0x04000200, 0x240429fc, 0x20042204, 0x20442004, 0x3f942024, 0x00400020, 0x00000000, // ICON_REPEAT + 0x00000000, 0x20001000, 0x22104c0e, 0x00801120, 0x11200040, 0x4c0e2210, 0x10002000, 0x00000000, // ICON_SHUFFLE + 0x7ffe0000, 0x50024002, 0x44024802, 0x41024202, 0x40424082, 0x40124022, 0x4002400a, 0x00007ffe, // ICON_EMPTYBOX + 0x00800000, 0x03e00080, 0x08080490, 0x3c9e0808, 0x08080808, 0x03e00490, 0x00800080, 0x00000000, // ICON_TARGET + 0x00800000, 0x00800080, 0x00800080, 0x3ffe01c0, 0x008001c0, 0x00800080, 0x00800080, 0x00000000, // ICON_TARGET_SMALL_FILL + 0x00800000, 0x00800080, 0x03e00080, 0x3ffe03e0, 0x03e003e0, 0x00800080, 0x00800080, 0x00000000, // ICON_TARGET_BIG_FILL + 0x01000000, 0x07c00380, 0x01000100, 0x638c2008, 0x638cfbbe, 0x01002008, 0x07c00100, 0x01000380, // ICON_TARGET_MOVE_FILL + 0x01000000, 0x07c00380, 0x01000100, 0x610c2108, 0x610cfffe, 0x01002108, 0x07c00100, 0x01000380, // ICON_CURSOR_MOVE_FILL + 0x781e0000, 0x6006700e, 0x04204812, 0x00000240, 0x02400000, 0x48120420, 0x700e6006, 0x0000781e, // ICON_CURSOR_SCALE_FILL + 0x00000000, 0x38003c00, 0x24003000, 0x01000200, 0x00400080, 0x000c0024, 0x003c001c, 0x00000000, // ICON_CURSOR_SCALE_RIGHT_FILL + 0x00000000, 0x001c003c, 0x0024000c, 0x00800040, 0x02000100, 0x30002400, 0x3c003800, 0x00000000, // ICON_CURSOR_SCALE_LEFT_FILL + 0x00000000, 0x00300020, 0x10301ff8, 0x10001020, 0x10001000, 0x10001000, 0x00001fc0, 0x00000000, // ICON_UNDO_FILL + 0x00000000, 0x0c000400, 0x0c081ff8, 0x00080408, 0x00080008, 0x00080008, 0x000003f8, 0x00000000, // ICON_REDO_FILL + 0x00000000, 0x3ffc0000, 0x20042004, 0x20002000, 0x20402000, 0x3ff02060, 0x00400060, 0x00000000, // ICON_REREDO_FILL + 0x00000000, 0x3ffc0000, 0x20042004, 0x27fc2004, 0x20202000, 0x3ff82030, 0x00200030, 0x00000000, // ICON_MUTATE_FILL + 0x00000000, 0x0ff00000, 0x10081818, 0x11801008, 0x10001180, 0x18301020, 0x00300ff8, 0x00000020, // ICON_ROTATE_FILL + 0x00000000, 0x06000200, 0x26042ffc, 0x20042204, 0x20442004, 0x3ff42064, 0x00400060, 0x00000000, // ICON_REPEAT_FILL + 0x00000000, 0x30001000, 0x32107c0e, 0x00801120, 0x11200040, 0x7c0e3210, 0x10003000, 0x00000000, // ICON_SHUFFLE_FILL + 0x00000000, 0x30043ffc, 0x24042804, 0x21042204, 0x20442084, 0x20142024, 0x3ffc200c, 0x00000000, // ICON_EMPTYBOX_SMALL + 0x00000000, 0x20043ffc, 0x20042004, 0x20042004, 0x20042004, 0x20042004, 0x3ffc2004, 0x00000000, // ICON_BOX + 0x00000000, 0x23c43ffc, 0x23c423c4, 0x200423c4, 0x20042004, 0x20042004, 0x3ffc2004, 0x00000000, // ICON_BOX_TOP + 0x00000000, 0x3e043ffc, 0x3e043e04, 0x20043e04, 0x20042004, 0x20042004, 0x3ffc2004, 0x00000000, // ICON_BOX_TOP_RIGHT + 0x00000000, 0x20043ffc, 0x20042004, 0x3e043e04, 0x3e043e04, 0x20042004, 0x3ffc2004, 0x00000000, // ICON_BOX_RIGHT + 0x00000000, 0x20043ffc, 0x20042004, 0x20042004, 0x3e042004, 0x3e043e04, 0x3ffc3e04, 0x00000000, // ICON_BOX_BOTTOM_RIGHT + 0x00000000, 0x20043ffc, 0x20042004, 0x20042004, 0x23c42004, 0x23c423c4, 0x3ffc23c4, 0x00000000, // ICON_BOX_BOTTOM + 0x00000000, 0x20043ffc, 0x20042004, 0x20042004, 0x207c2004, 0x207c207c, 0x3ffc207c, 0x00000000, // ICON_BOX_BOTTOM_LEFT + 0x00000000, 0x20043ffc, 0x20042004, 0x207c207c, 0x207c207c, 0x20042004, 0x3ffc2004, 0x00000000, // ICON_BOX_LEFT + 0x00000000, 0x207c3ffc, 0x207c207c, 0x2004207c, 0x20042004, 0x20042004, 0x3ffc2004, 0x00000000, // ICON_BOX_TOP_LEFT + 0x00000000, 0x20043ffc, 0x20042004, 0x23c423c4, 0x23c423c4, 0x20042004, 0x3ffc2004, 0x00000000, // ICON_BOX_CENTER + 0x7ffe0000, 0x40024002, 0x47e24182, 0x4ff247e2, 0x47e24ff2, 0x418247e2, 0x40024002, 0x00007ffe, // ICON_BOX_CIRCLE_MASK + 0x7fff0000, 0x40014001, 0x40014001, 0x49555ddd, 0x4945495d, 0x400149c5, 0x40014001, 0x00007fff, // ICON_POT + 0x7ffe0000, 0x53327332, 0x44ce4cce, 0x41324332, 0x404e40ce, 0x48125432, 0x4006540e, 0x00007ffe, // ICON_ALPHA_MULTIPLY + 0x7ffe0000, 0x53327332, 0x44ce4cce, 0x41324332, 0x5c4e40ce, 0x44124432, 0x40065c0e, 0x00007ffe, // ICON_ALPHA_CLEAR + 0x7ffe0000, 0x42fe417e, 0x42fe417e, 0x42fe417e, 0x42fe417e, 0x42fe417e, 0x42fe417e, 0x00007ffe, // ICON_DITHERING + 0x07fe0000, 0x1ffa0002, 0x7fea000a, 0x402a402a, 0x5b2a512a, 0x5128552a, 0x40205128, 0x00007fe0, // ICON_MIPMAPS + 0x00000000, 0x1ff80000, 0x12481248, 0x12481ff8, 0x1ff81248, 0x12481248, 0x00001ff8, 0x00000000, // ICON_BOX_GRID + 0x12480000, 0x7ffe1248, 0x12481248, 0x12487ffe, 0x7ffe1248, 0x12481248, 0x12487ffe, 0x00001248, // ICON_GRID + 0x00000000, 0x1c380000, 0x1c3817e8, 0x08100810, 0x08100810, 0x17e81c38, 0x00001c38, 0x00000000, // ICON_BOX_CORNERS_SMALL + 0x700e0000, 0x700e5ffa, 0x20042004, 0x20042004, 0x20042004, 0x20042004, 0x5ffa700e, 0x0000700e, // ICON_BOX_CORNERS_BIG + 0x3f7e0000, 0x21422142, 0x21422142, 0x00003f7e, 0x21423f7e, 0x21422142, 0x3f7e2142, 0x00000000, // ICON_FOUR_BOXES + 0x00000000, 0x3bb80000, 0x3bb83bb8, 0x3bb80000, 0x3bb83bb8, 0x3bb80000, 0x3bb83bb8, 0x00000000, // ICON_GRID_FILL + 0x7ffe0000, 0x7ffe7ffe, 0x77fe7000, 0x77fe77fe, 0x777e7700, 0x777e777e, 0x777e777e, 0x0000777e, // ICON_BOX_MULTISIZE + 0x781e0000, 0x40024002, 0x00004002, 0x01800000, 0x00000180, 0x40020000, 0x40024002, 0x0000781e, // ICON_ZOOM_SMALL + 0x781e0000, 0x40024002, 0x00004002, 0x03c003c0, 0x03c003c0, 0x40020000, 0x40024002, 0x0000781e, // ICON_ZOOM_MEDIUM + 0x781e0000, 0x40024002, 0x07e04002, 0x07e007e0, 0x07e007e0, 0x400207e0, 0x40024002, 0x0000781e, // ICON_ZOOM_BIG + 0x781e0000, 0x5ffa4002, 0x1ff85ffa, 0x1ff81ff8, 0x1ff81ff8, 0x5ffa1ff8, 0x40025ffa, 0x0000781e, // ICON_ZOOM_ALL + 0x00000000, 0x2004381c, 0x00002004, 0x00000000, 0x00000000, 0x20040000, 0x381c2004, 0x00000000, // ICON_ZOOM_CENTER + 0x00000000, 0x1db80000, 0x10081008, 0x10080000, 0x00001008, 0x10081008, 0x00001db8, 0x00000000, // ICON_BOX_DOTS_SMALL + 0x35560000, 0x00002002, 0x00002002, 0x00002002, 0x00002002, 0x00002002, 0x35562002, 0x00000000, // ICON_BOX_DOTS_BIG + 0x7ffe0000, 0x40024002, 0x48124ff2, 0x49924812, 0x48124992, 0x4ff24812, 0x40024002, 0x00007ffe, // ICON_BOX_CONCENTRIC + 0x00000000, 0x10841ffc, 0x10841084, 0x1ffc1084, 0x10841084, 0x10841084, 0x00001ffc, 0x00000000, // ICON_BOX_GRID_BIG + 0x00000000, 0x00000000, 0x10000000, 0x04000800, 0x01040200, 0x00500088, 0x00000020, 0x00000000, // ICON_OK_TICK + 0x00000000, 0x10080000, 0x04200810, 0x01800240, 0x02400180, 0x08100420, 0x00001008, 0x00000000, // ICON_CROSS + 0x00000000, 0x02000000, 0x00800100, 0x00200040, 0x00200010, 0x00800040, 0x02000100, 0x00000000, // ICON_ARROW_LEFT + 0x00000000, 0x00400000, 0x01000080, 0x04000200, 0x04000800, 0x01000200, 0x00400080, 0x00000000, // ICON_ARROW_RIGHT + 0x00000000, 0x00000000, 0x00000000, 0x08081004, 0x02200410, 0x00800140, 0x00000000, 0x00000000, // ICON_ARROW_DOWN + 0x00000000, 0x00000000, 0x01400080, 0x04100220, 0x10040808, 0x00000000, 0x00000000, 0x00000000, // ICON_ARROW_UP + 0x00000000, 0x02000000, 0x03800300, 0x03e003c0, 0x03e003f0, 0x038003c0, 0x02000300, 0x00000000, // ICON_ARROW_LEFT_FILL + 0x00000000, 0x00400000, 0x01c000c0, 0x07c003c0, 0x07c00fc0, 0x01c003c0, 0x004000c0, 0x00000000, // ICON_ARROW_RIGHT_FILL + 0x00000000, 0x00000000, 0x00000000, 0x0ff81ffc, 0x03e007f0, 0x008001c0, 0x00000000, 0x00000000, // ICON_ARROW_DOWN_FILL + 0x00000000, 0x00000000, 0x01c00080, 0x07f003e0, 0x1ffc0ff8, 0x00000000, 0x00000000, 0x00000000, // ICON_ARROW_UP_FILL + 0x00000000, 0x18a008c0, 0x32881290, 0x24822686, 0x26862482, 0x12903288, 0x08c018a0, 0x00000000, // ICON_AUDIO + 0x00000000, 0x04800780, 0x004000c0, 0x662000f0, 0x08103c30, 0x130a0e18, 0x0000318e, 0x00000000, // ICON_FX + 0x00000000, 0x00800000, 0x08880888, 0x2aaa0a8a, 0x0a8a2aaa, 0x08880888, 0x00000080, 0x00000000, // ICON_WAVE + 0x00000000, 0x00600000, 0x01080090, 0x02040108, 0x42044204, 0x24022402, 0x00001800, 0x00000000, // ICON_WAVE_SINUS + 0x00000000, 0x07f80000, 0x04080408, 0x04080408, 0x04080408, 0x7c0e0408, 0x00000000, 0x00000000, // ICON_WAVE_SQUARE + 0x00000000, 0x00000000, 0x00a00040, 0x22084110, 0x08021404, 0x00000000, 0x00000000, 0x00000000, // ICON_WAVE_TRIANGULAR + 0x00000000, 0x00000000, 0x04200000, 0x01800240, 0x02400180, 0x00000420, 0x00000000, 0x00000000, // ICON_CROSS_SMALL + 0x00000000, 0x18380000, 0x12281428, 0x10a81128, 0x112810a8, 0x14281228, 0x00001838, 0x00000000, // ICON_PLAYER_PREVIOUS + 0x00000000, 0x18000000, 0x11801600, 0x10181060, 0x10601018, 0x16001180, 0x00001800, 0x00000000, // ICON_PLAYER_PLAY_BACK + 0x00000000, 0x00180000, 0x01880068, 0x18080608, 0x06081808, 0x00680188, 0x00000018, 0x00000000, // ICON_PLAYER_PLAY + 0x00000000, 0x1e780000, 0x12481248, 0x12481248, 0x12481248, 0x12481248, 0x00001e78, 0x00000000, // ICON_PLAYER_PAUSE + 0x00000000, 0x1ff80000, 0x10081008, 0x10081008, 0x10081008, 0x10081008, 0x00001ff8, 0x00000000, // ICON_PLAYER_STOP + 0x00000000, 0x1c180000, 0x14481428, 0x15081488, 0x14881508, 0x14281448, 0x00001c18, 0x00000000, // ICON_PLAYER_NEXT + 0x00000000, 0x03c00000, 0x08100420, 0x10081008, 0x10081008, 0x04200810, 0x000003c0, 0x00000000, // ICON_PLAYER_RECORD + 0x00000000, 0x0c3007e0, 0x13c81818, 0x14281668, 0x14281428, 0x1c381c38, 0x08102244, 0x00000000, // ICON_MAGNET + 0x07c00000, 0x08200820, 0x3ff80820, 0x23882008, 0x21082388, 0x20082108, 0x1ff02008, 0x00000000, // ICON_LOCK_CLOSE + 0x07c00000, 0x08000800, 0x3ff80800, 0x23882008, 0x21082388, 0x20082108, 0x1ff02008, 0x00000000, // ICON_LOCK_OPEN + 0x01c00000, 0x0c180770, 0x3086188c, 0x60832082, 0x60034781, 0x30062002, 0x0c18180c, 0x01c00770, // ICON_CLOCK + 0x0a200000, 0x1b201b20, 0x04200e20, 0x04200420, 0x04700420, 0x0e700e70, 0x0e700e70, 0x04200e70, // ICON_TOOLS + 0x01800000, 0x3bdc318c, 0x0ff01ff8, 0x7c3e1e78, 0x1e787c3e, 0x1ff80ff0, 0x318c3bdc, 0x00000180, // ICON_GEAR + 0x01800000, 0x3ffc318c, 0x1c381ff8, 0x781e1818, 0x1818781e, 0x1ff81c38, 0x318c3ffc, 0x00000180, // ICON_GEAR_BIG + 0x00000000, 0x08080ff8, 0x08081ffc, 0x0aa80aa8, 0x0aa80aa8, 0x0aa80aa8, 0x08080aa8, 0x00000ff8, // ICON_BIN + 0x00000000, 0x00000000, 0x20043ffc, 0x08043f84, 0x04040f84, 0x04040784, 0x000007fc, 0x00000000, // ICON_HAND_POINTER + 0x00000000, 0x24400400, 0x00001480, 0x6efe0e00, 0x00000e00, 0x24401480, 0x00000400, 0x00000000, // ICON_LASER + 0x00000000, 0x03c00000, 0x08300460, 0x11181118, 0x11181118, 0x04600830, 0x000003c0, 0x00000000, // ICON_COIN + 0x00000000, 0x10880080, 0x06c00810, 0x366c07e0, 0x07e00240, 0x00001768, 0x04200240, 0x00000000, // ICON_EXPLOSION + 0x00000000, 0x3d280000, 0x2528252c, 0x3d282528, 0x05280528, 0x05e80528, 0x00000000, 0x00000000, // ICON_1UP + 0x01800000, 0x03c003c0, 0x018003c0, 0x0ff007e0, 0x0bd00bd0, 0x0a500bd0, 0x02400240, 0x02400240, // ICON_PLAYER + 0x01800000, 0x03c003c0, 0x118013c0, 0x03c81ff8, 0x07c003c8, 0x04400440, 0x0c080478, 0x00000000, // ICON_PLAYER_JUMP + 0x3ff80000, 0x30183ff8, 0x30183018, 0x3ff83ff8, 0x03000300, 0x03c003c0, 0x03e00300, 0x000003e0, // ICON_KEY + 0x3ff80000, 0x3ff83ff8, 0x33983ff8, 0x3ff83398, 0x3ff83ff8, 0x00000540, 0x0fe00aa0, 0x00000fe0, // ICON_DEMON + 0x00000000, 0x0ff00000, 0x20041008, 0x25442004, 0x10082004, 0x06000bf0, 0x00000300, 0x00000000, // ICON_TEXT_POPUP + 0x00000000, 0x11440000, 0x07f00be8, 0x1c1c0e38, 0x1c1c0c18, 0x07f00e38, 0x11440be8, 0x00000000, // ICON_GEAR_EX + 0x00000000, 0x20080000, 0x0c601010, 0x07c00fe0, 0x07c007c0, 0x0c600fe0, 0x20081010, 0x00000000, // ICON_CRACK + 0x00000000, 0x20080000, 0x0c601010, 0x04400fe0, 0x04405554, 0x0c600fe0, 0x20081010, 0x00000000, // ICON_CRACK_POINTS + 0x00000000, 0x00800080, 0x01c001c0, 0x1ffc3ffe, 0x03e007f0, 0x07f003e0, 0x0c180770, 0x00000808, // ICON_STAR + 0x0ff00000, 0x08180810, 0x08100818, 0x0a100810, 0x08180810, 0x08100818, 0x08100810, 0x00001ff8, // ICON_DOOR + 0x0ff00000, 0x08100810, 0x08100810, 0x10100010, 0x4f902010, 0x10102010, 0x08100010, 0x00000ff0, // ICON_EXIT + 0x00040000, 0x001f000e, 0x0ef40004, 0x12f41284, 0x0ef41214, 0x10040004, 0x7ffc3004, 0x10003000, // ICON_MODE_2D + 0x78040000, 0x501f600e, 0x0ef44004, 0x12f41284, 0x0ef41284, 0x10140004, 0x7ffc300c, 0x10003000, // ICON_MODE_3D + 0x7fe00000, 0x50286030, 0x47fe4804, 0x44224402, 0x44224422, 0x241275e2, 0x0c06140a, 0x000007fe, // ICON_CUBE + 0x7fe00000, 0x5ff87ff0, 0x47fe4ffc, 0x44224402, 0x44224422, 0x241275e2, 0x0c06140a, 0x000007fe, // ICON_CUBE_FACE_TOP + 0x7fe00000, 0x50386030, 0x47c2483c, 0x443e443e, 0x443e443e, 0x241e75fe, 0x0c06140e, 0x000007fe, // ICON_CUBE_FACE_LEFT + 0x7fe00000, 0x50286030, 0x47fe4804, 0x47fe47fe, 0x47fe47fe, 0x27fe77fe, 0x0ffe17fe, 0x000007fe, // ICON_CUBE_FACE_FRONT + 0x7fe00000, 0x50286030, 0x47fe4804, 0x44224402, 0x44224422, 0x3bf27be2, 0x0bfe1bfa, 0x000007fe, // ICON_CUBE_FACE_BOTTOM + 0x7fe00000, 0x70286030, 0x7ffe7804, 0x7c227c02, 0x7c227c22, 0x3c127de2, 0x0c061c0a, 0x000007fe, // ICON_CUBE_FACE_RIGHT + 0x7fe00000, 0x6fe85ff0, 0x781e77e4, 0x7be27be2, 0x7be27be2, 0x24127be2, 0x0c06140a, 0x000007fe, // ICON_CUBE_FACE_BACK + 0x00000000, 0x2a0233fe, 0x22022602, 0x22022202, 0x2a022602, 0x00a033fe, 0x02080110, 0x00000000, // ICON_CAMERA + 0x00000000, 0x200c3ffc, 0x000c000c, 0x3ffc000c, 0x30003000, 0x30003000, 0x3ffc3004, 0x00000000, // ICON_SPECIAL + 0x00000000, 0x0022003e, 0x012201e2, 0x0100013e, 0x01000100, 0x79000100, 0x4f004900, 0x00007800, // ICON_LINK_NET + 0x00000000, 0x44007c00, 0x45004600, 0x00627cbe, 0x00620022, 0x45007cbe, 0x44004600, 0x00007c00, // ICON_LINK_BOXES + 0x00000000, 0x0044007c, 0x0010007c, 0x3f100010, 0x3f1021f0, 0x3f100010, 0x3f0021f0, 0x00000000, // ICON_LINK_MULTI + 0x00000000, 0x0044007c, 0x00440044, 0x0010007c, 0x00100010, 0x44107c10, 0x440047f0, 0x00007c00, // ICON_LINK + 0x00000000, 0x0044007c, 0x00440044, 0x0000007c, 0x00000010, 0x44007c10, 0x44004550, 0x00007c00, // ICON_LINK_BROKE + 0x02a00000, 0x22a43ffc, 0x20042004, 0x20042ff4, 0x20042ff4, 0x20042ff4, 0x20042004, 0x00003ffc, // ICON_TEXT_NOTES + 0x3ffc0000, 0x20042004, 0x245e27c4, 0x27c42444, 0x2004201e, 0x201e2004, 0x20042004, 0x00003ffc, // ICON_NOTEBOOK + 0x00000000, 0x07e00000, 0x04200420, 0x24243ffc, 0x24242424, 0x24242424, 0x3ffc2424, 0x00000000, // ICON_SUITCASE + 0x00000000, 0x0fe00000, 0x08200820, 0x40047ffc, 0x7ffc5554, 0x40045554, 0x7ffc4004, 0x00000000, // ICON_SUITCASE_ZIP + 0x00000000, 0x20043ffc, 0x3ffc2004, 0x13c81008, 0x100813c8, 0x10081008, 0x1ff81008, 0x00000000, // ICON_MAILBOX + 0x00000000, 0x40027ffe, 0x5ffa5ffa, 0x5ffa5ffa, 0x40025ffa, 0x03c07ffe, 0x1ff81ff8, 0x00000000, // ICON_MONITOR + 0x0ff00000, 0x6bfe7ffe, 0x7ffe7ffe, 0x68167ffe, 0x08106816, 0x08100810, 0x0ff00810, 0x00000000, // ICON_PRINTER + 0x3ff80000, 0xfffe2008, 0x870a8002, 0x904a888a, 0x904a904a, 0x870a888a, 0xfffe8002, 0x00000000, // ICON_PHOTO_CAMERA + 0x0fc00000, 0xfcfe0cd8, 0x8002fffe, 0x84428382, 0x84428442, 0x80028382, 0xfffe8002, 0x00000000, // ICON_PHOTO_CAMERA_FLASH + 0x00000000, 0x02400180, 0x08100420, 0x20041008, 0x23c42004, 0x22442244, 0x3ffc2244, 0x00000000, // ICON_HOUSE + 0x00000000, 0x1c700000, 0x3ff83ef8, 0x3ff83ff8, 0x0fe01ff0, 0x038007c0, 0x00000100, 0x00000000, // ICON_HEART + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x80000000, 0xe000c000, // ICON_CORNER + 0x00000000, 0x14001c00, 0x15c01400, 0x15401540, 0x155c1540, 0x15541554, 0x1ddc1554, 0x00000000, // ICON_VERTICAL_BARS + 0x00000000, 0x03000300, 0x1b001b00, 0x1b601b60, 0x1b6c1b60, 0x1b6c1b6c, 0x1b6c1b6c, 0x00000000, // ICON_VERTICAL_BARS_FILL + 0x00000000, 0x00000000, 0x403e7ffe, 0x7ffe403e, 0x7ffe0000, 0x43fe43fe, 0x00007ffe, 0x00000000, // ICON_LIFE_BARS + 0x7ffc0000, 0x43844004, 0x43844284, 0x43844004, 0x42844284, 0x42844284, 0x40044384, 0x00007ffc, // ICON_INFO + 0x40008000, 0x10002000, 0x04000800, 0x01000200, 0x00400080, 0x00100020, 0x00040008, 0x00010002, // ICON_CROSSLINE + 0x00000000, 0x1ff01ff0, 0x18301830, 0x1f001830, 0x03001f00, 0x00000300, 0x03000300, 0x00000000, // ICON_HELP + 0x3ff00000, 0x2abc3550, 0x2aac3554, 0x2aac3554, 0x2aac3554, 0x2aac3554, 0x2aac3554, 0x00003ffc, // ICON_FILETYPE_ALPHA + 0x3ff00000, 0x201c2010, 0x22442184, 0x28142424, 0x29942814, 0x2ff42994, 0x20042004, 0x00003ffc, // ICON_FILETYPE_HOME + 0x07fe0000, 0x04020402, 0x7fe20402, 0x44224422, 0x44224422, 0x402047fe, 0x40204020, 0x00007fe0, // ICON_LAYERS_VISIBLE + 0x07fe0000, 0x04020402, 0x7c020402, 0x44024402, 0x44024402, 0x402047fe, 0x40204020, 0x00007fe0, // ICON_LAYERS + 0x00000000, 0x40027ffe, 0x7ffe4002, 0x40024002, 0x40024002, 0x40024002, 0x7ffe4002, 0x00000000, // ICON_WINDOW + 0x09100000, 0x09f00910, 0x09100910, 0x00000910, 0x24a2779e, 0x27a224a2, 0x709e20a2, 0x00000000, // ICON_HIDPI + 0x3ff00000, 0x201c2010, 0x2a842e84, 0x2e842a84, 0x2ba42004, 0x2aa42aa4, 0x20042ba4, 0x00003ffc, // ICON_FILETYPE_BINARY + 0x00000000, 0x00000000, 0x00120012, 0x4a5e4bd2, 0x485233d2, 0x00004bd2, 0x00000000, 0x00000000, // ICON_HEX + 0x01800000, 0x381c0660, 0x23c42004, 0x23c42044, 0x13c82204, 0x08101008, 0x02400420, 0x00000180, // ICON_SHIELD + 0x007e0000, 0x20023fc2, 0x40227fe2, 0x400a403a, 0x400a400a, 0x400a400a, 0x4008400e, 0x00007ff8, // ICON_FILE_NEW + 0x00000000, 0x0042007e, 0x40027fc2, 0x44024002, 0x5f024402, 0x44024402, 0x7ffe4002, 0x00000000, // ICON_FOLDER_ADD + 0x44220000, 0x12482244, 0xf3cf0000, 0x14280420, 0x48122424, 0x08100810, 0x1ff81008, 0x03c00420, // ICON_ALARM + 0x0aa00000, 0x1ff80aa0, 0x1068700e, 0x1008706e, 0x1008700e, 0x1008700e, 0x0aa01ff8, 0x00000aa0, // ICON_CPU + 0x07e00000, 0x04201db8, 0x04a01c38, 0x04a01d38, 0x04a01d38, 0x04a01d38, 0x04201d38, 0x000007e0, // ICON_ROM + 0x00000000, 0x03c00000, 0x3c382ff0, 0x3c04380c, 0x01800000, 0x03c003c0, 0x00000180, 0x00000000, // ICON_STEP_OVER + 0x01800000, 0x01800180, 0x01800180, 0x03c007e0, 0x00000180, 0x01800000, 0x03c003c0, 0x00000180, // ICON_STEP_INTO + 0x01800000, 0x07e003c0, 0x01800180, 0x01800180, 0x00000180, 0x01800000, 0x03c003c0, 0x00000180, // ICON_STEP_OUT + 0x00000000, 0x0ff003c0, 0x181c1c34, 0x303c301c, 0x30003000, 0x1c301800, 0x03c00ff0, 0x00000000, // ICON_RESTART + 0x00000000, 0x00000000, 0x07e003c0, 0x0ff00ff0, 0x0ff00ff0, 0x03c007e0, 0x00000000, 0x00000000, // ICON_BREAKPOINT_ON + 0x00000000, 0x00000000, 0x042003c0, 0x08100810, 0x08100810, 0x03c00420, 0x00000000, 0x00000000, // ICON_BREAKPOINT_OFF + 0x00000000, 0x00000000, 0x1ff81ff8, 0x1ff80000, 0x00001ff8, 0x1ff81ff8, 0x00000000, 0x00000000, // ICON_BURGER_MENU + 0x00000000, 0x00000000, 0x00880070, 0x0c880088, 0x1e8810f8, 0x3e881288, 0x00000000, 0x00000000, // ICON_CASE_SENSITIVE + 0x00000000, 0x02000000, 0x07000a80, 0x07001fc0, 0x02000a80, 0x00300030, 0x00000000, 0x00000000, // ICON_REG_EXP + 0x00000000, 0x0042007e, 0x40027fc2, 0x40024002, 0x40024002, 0x40024002, 0x7ffe4002, 0x00000000, // ICON_FOLDER + 0x3ff00000, 0x201c2010, 0x20042004, 0x20042004, 0x20042004, 0x20042004, 0x20042004, 0x00003ffc, // ICON_FILE + 0x1ff00000, 0x20082008, 0x17d02fe8, 0x05400ba0, 0x09200540, 0x23881010, 0x2fe827c8, 0x00001ff0, // ICON_SAND_TIMER + 0x01800000, 0x02400240, 0x05a00420, 0x09900990, 0x11881188, 0x21842004, 0x40024182, 0x00003ffc, // ICON_WARNING + 0x7ffe0000, 0x4ff24002, 0x4c324ff2, 0x4f824c02, 0x41824f82, 0x41824002, 0x40024182, 0x00007ffe, // ICON_HELP_BOX + 0x7ffe0000, 0x41824002, 0x40024182, 0x41824182, 0x41824182, 0x41824182, 0x40024182, 0x00007ffe, // ICON_INFO_BOX + 0x01800000, 0x04200240, 0x10080810, 0x7bde2004, 0x0a500a50, 0x08500bd0, 0x08100850, 0x00000ff0, // ICON_PRIORITY + 0x01800000, 0x18180660, 0x80016006, 0x98196006, 0x99996666, 0x19986666, 0x01800660, 0x00000000, // ICON_LAYERS_ISO + 0x07fe0000, 0x1c020402, 0x74021402, 0x54025402, 0x54025402, 0x500857fe, 0x40205ff8, 0x00007fe0, // ICON_LAYERS2 + 0x0ffe0000, 0x3ffa0802, 0x7fea200a, 0x402a402a, 0x422a422a, 0x422e422a, 0x40384e28, 0x00007fe0, // ICON_MLAYERS + 0x0ffe0000, 0x3ffa0802, 0x7fea200a, 0x402a402a, 0x5b2a512a, 0x512e552a, 0x40385128, 0x00007fe0, // ICON_MAPS + 0x04200000, 0x1cf00c60, 0x11f019f0, 0x0f3807b8, 0x1e3c0f3c, 0x1c1c1e1c, 0x1e3c1c1c, 0x00000f70, // ICON_HOT + 0x00000000, 0x20803f00, 0x2a202e40, 0x20082e10, 0x08021004, 0x02040402, 0x00900108, 0x00000060, // ICON_LABEL + 0x00000000, 0x042007e0, 0x47e27c3e, 0x4ffa4002, 0x47fa4002, 0x4ffa4002, 0x7ffe4002, 0x00000000, // ICON_NAME_ID + 0x7fe00000, 0x402e4020, 0x43ce5e0a, 0x40504078, 0x438e4078, 0x402e5e0a, 0x7fe04020, 0x00000000, // ICON_SLICING + 0x00000000, 0x40027ffe, 0x47c24002, 0x55425d42, 0x55725542, 0x50125552, 0x10105016, 0x00001ff0, // ICON_MANUAL_CONTROL + 0x7ffe0000, 0x43c24002, 0x48124422, 0x500a500a, 0x500a500a, 0x44224812, 0x400243c2, 0x00007ffe, // ICON_COLLISION + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_234 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_235 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_236 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_237 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_238 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_239 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_240 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_241 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_242 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_243 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_244 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_245 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_246 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_247 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_248 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_249 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_250 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_251 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_252 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_253 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_254 + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // ICON_255 +}; + +// NOTE: A pointer to current icons array should be defined +static unsigned int *guiIconsPtr = guiIcons; + +#endif // !RAYGUI_NO_ICONS && !RAYGUI_CUSTOM_ICONS + +#ifndef RAYGUI_ICON_SIZE + #define RAYGUI_ICON_SIZE 0 +#endif + +// WARNING: Those values define the total size of the style data array, +// if changed, previous saved styles could become incompatible +#define RAYGUI_MAX_CONTROLS 16 // Maximum number of controls +#define RAYGUI_MAX_PROPS_BASE 16 // Maximum number of base properties +#define RAYGUI_MAX_PROPS_EXTENDED 8 // Maximum number of extended properties + +//---------------------------------------------------------------------------------- +// Types and Structures Definition +//---------------------------------------------------------------------------------- +// Gui control property style color element +typedef enum { BORDER = 0, BASE, TEXT, OTHER } GuiPropertyElement; + +//---------------------------------------------------------------------------------- +// Global Variables Definition +//---------------------------------------------------------------------------------- +static GuiState guiState = STATE_NORMAL; // Gui global state, if !STATE_NORMAL, forces defined state + +static Font guiFont = { 0 }; // Gui current font (WARNING: highly coupled to raylib) +static bool guiLocked = false; // Gui lock state (no inputs processed) +static float guiAlpha = 1.0f; // Gui controls transparency + +static unsigned int guiIconScale = 1; // Gui icon default scale (if icons enabled) + +static bool guiTooltip = false; // Tooltip enabled/disabled +static const char *guiTooltipPtr = NULL; // Tooltip string pointer (string provided by user) + +static bool guiControlExclusiveMode = false; // Gui control exclusive mode (no inputs processed except current control) +static Rectangle guiControlExclusiveRec = { 0 }; // Gui control exclusive bounds rectangle, used as an unique identifier + +static int textBoxCursorIndex = 0; // Cursor index, shared by all GuiTextBox*() +//static int blinkCursorFrameCounter = 0; // Frame counter for cursor blinking +static int autoCursorCounter = 0; // Frame counter for automatic repeated cursor movement on key-down (cooldown and delay) + +//---------------------------------------------------------------------------------- +// Style data array for all gui style properties (allocated on data segment by default) +// +// NOTE 1: First set of BASE properties are generic to all controls but could be individually +// overwritten per control, first set of EXTENDED properties are generic to all controls and +// can not be overwritten individually but custom EXTENDED properties can be used by control +// +// NOTE 2: A new style set could be loaded over this array using GuiLoadStyle(), +// but default gui style could always be recovered with GuiLoadStyleDefault() +// +// guiStyle size is by default: 16*(16 + 8) = 384*4 = 1536 bytes = 1.5 KB +//---------------------------------------------------------------------------------- +static unsigned int guiStyle[RAYGUI_MAX_CONTROLS*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED)] = { 0 }; + +static bool guiStyleLoaded = false; // Style loaded flag for lazy style initialization + +//---------------------------------------------------------------------------------- +// Standalone Mode Functions Declaration +// +// NOTE: raygui depend on some raylib input and drawing functions +// To use raygui as standalone library, below functions must be defined by the user +//---------------------------------------------------------------------------------- +#if defined(RAYGUI_STANDALONE) + +#define KEY_RIGHT 262 +#define KEY_LEFT 263 +#define KEY_DOWN 264 +#define KEY_UP 265 +#define KEY_BACKSPACE 259 +#define KEY_ENTER 257 + +#define MOUSE_LEFT_BUTTON 0 + +// Input required functions +//------------------------------------------------------------------------------- +static Vector2 GetMousePosition(void); +static float GetMouseWheelMove(void); +static bool IsMouseButtonDown(int button); +static bool IsMouseButtonPressed(int button); +static bool IsMouseButtonReleased(int button); + +static bool IsKeyDown(int key); +static bool IsKeyPressed(int key); +static int GetCharPressed(void); // -- GuiTextBox(), GuiValueBox() +//------------------------------------------------------------------------------- + +// Drawing required functions +//------------------------------------------------------------------------------- +static void DrawRectangle(int x, int y, int width, int height, Color color); // -- GuiDrawRectangle() +static void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4); // -- GuiColorPicker() +//------------------------------------------------------------------------------- + +// Text required functions +//------------------------------------------------------------------------------- +static Font GetFontDefault(void); // -- GuiLoadStyleDefault() +static Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount); // -- GuiLoadStyle(), load font + +static Texture2D LoadTextureFromImage(Image image); // -- GuiLoadStyle(), required to load texture from embedded font atlas image +static void SetShapesTexture(Texture2D tex, Rectangle rec); // -- GuiLoadStyle(), required to set shapes rec to font white rec (optimization) + +static char *LoadFileText(const char *fileName); // -- GuiLoadStyle(), required to load charset data +static void UnloadFileText(char *text); // -- GuiLoadStyle(), required to unload charset data + +static const char *GetDirectoryPath(const char *filePath); // -- GuiLoadStyle(), required to find charset/font file from text .rgs + +static int *LoadCodepoints(const char *text, int *count); // -- GuiLoadStyle(), required to load required font codepoints list +static void UnloadCodepoints(int *codepoints); // -- GuiLoadStyle(), required to unload codepoints list + +static unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize); // -- GuiLoadStyle() +//------------------------------------------------------------------------------- + +// raylib functions already implemented in raygui +//------------------------------------------------------------------------------- +static Color GetColor(int hexValue); // Returns a Color struct from hexadecimal value +static int ColorToInt(Color color); // Returns hexadecimal value for a Color +static bool CheckCollisionPointRec(Vector2 point, Rectangle rec); // Check if point is inside rectangle +static const char *TextFormat(const char *text, ...); // Formatting of text with variables to 'embed' +static const char **TextSplit(const char *text, char delimiter, int *count); // Split text into multiple strings +static int TextToInteger(const char *text); // Get integer value from text +static float TextToFloat(const char *text); // Get float value from text + +static int GetCodepointNext(const char *text, int *codepointSize); // Get next codepoint in a UTF-8 encoded text +static const char *CodepointToUTF8(int codepoint, int *byteSize); // Encode codepoint into UTF-8 text (char array size returned as parameter) + +static void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2); // Draw rectangle vertical gradient +//------------------------------------------------------------------------------- + +#endif // RAYGUI_STANDALONE + +//---------------------------------------------------------------------------------- +// Module specific Functions Declaration +//---------------------------------------------------------------------------------- +static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize); // Load style from memory (binary only) + +static Rectangle GetTextBounds(int control, Rectangle bounds); // Get text bounds considering control bounds +static const char *GetTextIcon(const char *text, int *iconId); // Get text icon if provided and move text cursor + +static void GuiDrawText(const char *text, Rectangle textBounds, int alignment, Color tint); // Gui draw text using default font +static void GuiDrawRectangle(Rectangle rec, int borderWidth, Color borderColor, Color color); // Gui draw rectangle using default raygui style + +static const char **GuiTextSplit(const char *text, char delimiter, int *count, int *textRow); // Split controls text into multiple strings +static Vector3 ConvertHSVtoRGB(Vector3 hsv); // Convert color data from HSV to RGB +static Vector3 ConvertRGBtoHSV(Vector3 rgb); // Convert color data from RGB to HSV + +static int GuiScrollBar(Rectangle bounds, int value, int minValue, int maxValue); // Scroll bar control, used by GuiScrollPanel() +static void GuiTooltip(Rectangle controlRec); // Draw tooltip using control rec position + +static Color GuiFade(Color color, float alpha); // Fade color by an alpha factor + +//---------------------------------------------------------------------------------- +// Gui Setup Functions Definition +//---------------------------------------------------------------------------------- +// Enable gui global state +// NOTE: We check for STATE_DISABLED to avoid messing custom global state setups +void GuiEnable(void) { if (guiState == STATE_DISABLED) guiState = STATE_NORMAL; } + +// Disable gui global state +// NOTE: We check for STATE_NORMAL to avoid messing custom global state setups +void GuiDisable(void) { if (guiState == STATE_NORMAL) guiState = STATE_DISABLED; } + +// Lock gui global state +void GuiLock(void) { guiLocked = true; } + +// Unlock gui global state +void GuiUnlock(void) { guiLocked = false; } + +// Check if gui is locked (global state) +bool GuiIsLocked(void) { return guiLocked; } + +// Set gui controls alpha global state +void GuiSetAlpha(float alpha) +{ + if (alpha < 0.0f) alpha = 0.0f; + else if (alpha > 1.0f) alpha = 1.0f; + + guiAlpha = alpha; +} + +// Set gui state (global state) +void GuiSetState(int state) { guiState = (GuiState)state; } + +// Get gui state (global state) +int GuiGetState(void) { return guiState; } + +// Set custom gui font +// NOTE: Font loading/unloading is external to raygui +void GuiSetFont(Font font) +{ + if (font.texture.id > 0) + { + // NOTE: If we try to setup a font but default style has not been + // lazily loaded before, it will be overwritten, so we need to force + // default style loading first + if (!guiStyleLoaded) GuiLoadStyleDefault(); + + guiFont = font; + } +} + +// Get custom gui font +Font GuiGetFont(void) +{ + return guiFont; +} + +// Set control style property value +void GuiSetStyle(int control, int property, int value) +{ + if (!guiStyleLoaded) GuiLoadStyleDefault(); + guiStyle[control*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED) + property] = value; + + // Default properties are propagated to all controls + if ((control == 0) && (property < RAYGUI_MAX_PROPS_BASE)) + { + for (int i = 1; i < RAYGUI_MAX_CONTROLS; i++) guiStyle[i*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED) + property] = value; + } +} + +// Get control style property value +int GuiGetStyle(int control, int property) +{ + if (!guiStyleLoaded) GuiLoadStyleDefault(); + return guiStyle[control*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED) + property]; +} + +//---------------------------------------------------------------------------------- +// Gui Controls Functions Definition +//---------------------------------------------------------------------------------- + +// Window Box control +int GuiWindowBox(Rectangle bounds, const char *title) +{ + // Window title bar height (including borders) + // NOTE: This define is also used by GuiMessageBox() and GuiTextInputBox() + #if !defined(RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT) + #define RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT 24 + #endif + + #if !defined(RAYGUI_WINDOWBOX_CLOSEBUTTON_HEIGHT) + #define RAYGUI_WINDOWBOX_CLOSEBUTTON_HEIGHT 18 + #endif + + int result = 0; + //GuiState state = guiState; + + int statusBarHeight = RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT; + + Rectangle statusBar = { bounds.x, bounds.y, bounds.width, (float)statusBarHeight }; + if (bounds.height < statusBarHeight*2.0f) bounds.height = statusBarHeight*2.0f; + + const float vPadding = statusBarHeight/2.0f - RAYGUI_WINDOWBOX_CLOSEBUTTON_HEIGHT/2.0f; + Rectangle windowPanel = { bounds.x, bounds.y + (float)statusBarHeight - 1, bounds.width, bounds.height - (float)statusBarHeight + 1 }; + Rectangle closeButtonRec = { statusBar.x + statusBar.width - GuiGetStyle(STATUSBAR, BORDER_WIDTH) - RAYGUI_WINDOWBOX_CLOSEBUTTON_HEIGHT - vPadding, + statusBar.y + vPadding, RAYGUI_WINDOWBOX_CLOSEBUTTON_HEIGHT, RAYGUI_WINDOWBOX_CLOSEBUTTON_HEIGHT }; + + // Update control + //-------------------------------------------------------------------- + // NOTE: Logic is directly managed by button + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiStatusBar(statusBar, title); // Draw window header as status bar + GuiPanel(windowPanel, NULL); // Draw window base + + // Draw window close button + int tempBorderWidth = GuiGetStyle(BUTTON, BORDER_WIDTH); + int tempTextAlignment = GuiGetStyle(BUTTON, TEXT_ALIGNMENT); + GuiSetStyle(BUTTON, BORDER_WIDTH, 1); + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); +#if defined(RAYGUI_NO_ICONS) + result = GuiButton(closeButtonRec, "x"); +#else + result = GuiButton(closeButtonRec, GuiIconText(ICON_CROSS_SMALL, NULL)); +#endif + GuiSetStyle(BUTTON, BORDER_WIDTH, tempBorderWidth); + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, tempTextAlignment); + //-------------------------------------------------------------------- + + return result; // Window close button clicked: result = 1 +} + +// Group Box control with text name +int GuiGroupBox(Rectangle bounds, const char *text) +{ + #if !defined(RAYGUI_GROUPBOX_LINE_THICK) + #define RAYGUI_GROUPBOX_LINE_THICK 1 + #endif + + int result = 0; + GuiState state = guiState; + + // Draw control + //-------------------------------------------------------------------- + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y, RAYGUI_GROUPBOX_LINE_THICK, bounds.height }, 0, BLANK, GetColor(GuiGetStyle(DEFAULT, (state == STATE_DISABLED)? (int)BORDER_COLOR_DISABLED : (int)LINE_COLOR))); + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y + bounds.height - 1, bounds.width, RAYGUI_GROUPBOX_LINE_THICK }, 0, BLANK, GetColor(GuiGetStyle(DEFAULT, (state == STATE_DISABLED)? (int)BORDER_COLOR_DISABLED : (int)LINE_COLOR))); + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x + bounds.width - 1, bounds.y, RAYGUI_GROUPBOX_LINE_THICK, bounds.height }, 0, BLANK, GetColor(GuiGetStyle(DEFAULT, (state == STATE_DISABLED)? (int)BORDER_COLOR_DISABLED : (int)LINE_COLOR))); + + GuiLine(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y - GuiGetStyle(DEFAULT, TEXT_SIZE)/2, bounds.width, (float)GuiGetStyle(DEFAULT, TEXT_SIZE) }, text); + //-------------------------------------------------------------------- + + return result; +} + +// Line control +int GuiLine(Rectangle bounds, const char *text) +{ + #if !defined(RAYGUI_LINE_MARGIN_TEXT) + #define RAYGUI_LINE_MARGIN_TEXT 12 + #endif + #if !defined(RAYGUI_LINE_TEXT_PADDING) + #define RAYGUI_LINE_TEXT_PADDING 4 + #endif + + int result = 0; + GuiState state = guiState; + + Color color = GetColor(GuiGetStyle(DEFAULT, (state == STATE_DISABLED)? (int)BORDER_COLOR_DISABLED : (int)LINE_COLOR)); + + // Draw control + //-------------------------------------------------------------------- + if (text == NULL) GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y + bounds.height/2, bounds.width, 1 }, 0, BLANK, color); + else + { + Rectangle textBounds = { 0 }; + textBounds.width = (float)GuiGetTextWidth(text) + 2; + textBounds.height = bounds.height; + textBounds.x = bounds.x + RAYGUI_LINE_MARGIN_TEXT; + textBounds.y = bounds.y; + + // Draw line with embedded text label: "--- text --------------" + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y + bounds.height/2, RAYGUI_LINE_MARGIN_TEXT - RAYGUI_LINE_TEXT_PADDING, 1 }, 0, BLANK, color); + GuiDrawText(text, textBounds, TEXT_ALIGN_LEFT, color); + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x + 12 + textBounds.width + 4, bounds.y + bounds.height/2, bounds.width - textBounds.width - RAYGUI_LINE_MARGIN_TEXT - RAYGUI_LINE_TEXT_PADDING, 1 }, 0, BLANK, color); + } + //-------------------------------------------------------------------- + + return result; +} + +// Panel control +int GuiPanel(Rectangle bounds, const char *text) +{ + #if !defined(RAYGUI_PANEL_BORDER_WIDTH) + #define RAYGUI_PANEL_BORDER_WIDTH 1 + #endif + + int result = 0; + GuiState state = guiState; + + // Text will be drawn as a header bar (if provided) + Rectangle statusBar = { bounds.x, bounds.y, bounds.width, (float)RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT }; + if ((text != NULL) && (bounds.height < RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT*2.0f)) bounds.height = RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT*2.0f; + + if (text != NULL) + { + // Move panel bounds after the header bar + bounds.y += (float)RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT - 1; + bounds.height -= (float)RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT - 1; + } + + // Draw control + //-------------------------------------------------------------------- + if (text != NULL) GuiStatusBar(statusBar, text); // Draw panel header as status bar + + GuiDrawRectangle(bounds, RAYGUI_PANEL_BORDER_WIDTH, GetColor(GuiGetStyle(DEFAULT, (state == STATE_DISABLED)? (int)BORDER_COLOR_DISABLED : (int)LINE_COLOR)), + GetColor(GuiGetStyle(DEFAULT, (state == STATE_DISABLED)? (int)BASE_COLOR_DISABLED : (int)BACKGROUND_COLOR))); + //-------------------------------------------------------------------- + + return result; +} + +// Tab Bar control +// NOTE: Using GuiToggle() for the TABS +int GuiTabBar(Rectangle bounds, const char **text, int count, int *active) +{ + #define RAYGUI_TABBAR_ITEM_WIDTH 160 + + int result = -1; + //GuiState state = guiState; + + Rectangle tabBounds = { bounds.x, bounds.y, RAYGUI_TABBAR_ITEM_WIDTH, bounds.height }; + + if (*active < 0) *active = 0; + else if (*active > count - 1) *active = count - 1; + + int offsetX = 0; // Required in case tabs go out of screen + offsetX = (*active + 2)*RAYGUI_TABBAR_ITEM_WIDTH - GetScreenWidth(); + if (offsetX < 0) offsetX = 0; + + bool toggle = false; // Required for individual toggles + + // Draw control + //-------------------------------------------------------------------- + for (int i = 0; i < count; i++) + { + tabBounds.x = bounds.x + (RAYGUI_TABBAR_ITEM_WIDTH + 4)*i - offsetX; + + if (tabBounds.x < GetScreenWidth()) + { + // Draw tabs as toggle controls + int textAlignment = GuiGetStyle(TOGGLE, TEXT_ALIGNMENT); + int textPadding = GuiGetStyle(TOGGLE, TEXT_PADDING); + GuiSetStyle(TOGGLE, TEXT_ALIGNMENT, TEXT_ALIGN_LEFT); + GuiSetStyle(TOGGLE, TEXT_PADDING, 8); + + if (i == (*active)) + { + toggle = true; + GuiToggle(tabBounds, GuiIconText(12, text[i]), &toggle); + } + else + { + toggle = false; + GuiToggle(tabBounds, GuiIconText(12, text[i]), &toggle); + if (toggle) *active = i; + } + + // Close tab with middle mouse button pressed + if (CheckCollisionPointRec(GetMousePosition(), tabBounds) && IsMouseButtonPressed(MOUSE_MIDDLE_BUTTON)) result = i; + + GuiSetStyle(TOGGLE, TEXT_PADDING, textPadding); + GuiSetStyle(TOGGLE, TEXT_ALIGNMENT, textAlignment); + + // Draw tab close button + // NOTE: Only draw close button for current tab: if (CheckCollisionPointRec(mousePosition, tabBounds)) + int tempBorderWidth = GuiGetStyle(BUTTON, BORDER_WIDTH); + int tempTextAlignment = GuiGetStyle(BUTTON, TEXT_ALIGNMENT); + GuiSetStyle(BUTTON, BORDER_WIDTH, 1); + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); +#if defined(RAYGUI_NO_ICONS) + if (GuiButton(RAYGUI_CLITERAL(Rectangle){ tabBounds.x + tabBounds.width - 14 - 5, tabBounds.y + 5, 14, 14 }, "x")) result = i; +#else + if (GuiButton(RAYGUI_CLITERAL(Rectangle){ tabBounds.x + tabBounds.width - 14 - 5, tabBounds.y + 5, 14, 14 }, GuiIconText(ICON_CROSS_SMALL, NULL))) result = i; +#endif + GuiSetStyle(BUTTON, BORDER_WIDTH, tempBorderWidth); + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, tempTextAlignment); + } + } + + // Draw tab-bar bottom line + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y + bounds.height - 1, bounds.width, 1 }, 0, BLANK, GetColor(GuiGetStyle(TOGGLE, BORDER_COLOR_NORMAL))); + //-------------------------------------------------------------------- + + return result; // Return as result the current TAB closing requested +} + +// Scroll Panel control +int GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content, Vector2 *scroll, Rectangle *view) +{ + #define RAYGUI_MIN_SCROLLBAR_WIDTH 40 + #define RAYGUI_MIN_SCROLLBAR_HEIGHT 40 + #define RAYGUI_MIN_MOUSE_WHEEL_SPEED 20 + + int result = 0; + GuiState state = guiState; + + Rectangle temp = { 0 }; + if (view == NULL) view = &temp; + + Vector2 scrollPos = { 0.0f, 0.0f }; + if (scroll != NULL) scrollPos = *scroll; + + // Text will be drawn as a header bar (if provided) + Rectangle statusBar = { bounds.x, bounds.y, bounds.width, (float)RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT }; + if (bounds.height < RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT*2.0f) bounds.height = RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT*2.0f; + + if (text != NULL) + { + // Move panel bounds after the header bar + bounds.y += (float)RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT - 1; + bounds.height -= (float)RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + 1; + } + + bool hasHorizontalScrollBar = (content.width > bounds.width - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH))? true : false; + bool hasVerticalScrollBar = (content.height > bounds.height - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH))? true : false; + + // Recheck to account for the other scrollbar being visible + if (!hasHorizontalScrollBar) hasHorizontalScrollBar = (hasVerticalScrollBar && (content.width > (bounds.width - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - GuiGetStyle(LISTVIEW, SCROLLBAR_WIDTH))))? true : false; + if (!hasVerticalScrollBar) hasVerticalScrollBar = (hasHorizontalScrollBar && (content.height > (bounds.height - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - GuiGetStyle(LISTVIEW, SCROLLBAR_WIDTH))))? true : false; + + int horizontalScrollBarWidth = hasHorizontalScrollBar? GuiGetStyle(LISTVIEW, SCROLLBAR_WIDTH) : 0; + int verticalScrollBarWidth = hasVerticalScrollBar? GuiGetStyle(LISTVIEW, SCROLLBAR_WIDTH) : 0; + Rectangle horizontalScrollBar = { + (float)((GuiGetStyle(LISTVIEW, SCROLLBAR_SIDE) == SCROLLBAR_LEFT_SIDE)? (float)bounds.x + verticalScrollBarWidth : (float)bounds.x) + GuiGetStyle(DEFAULT, BORDER_WIDTH), + (float)bounds.y + bounds.height - horizontalScrollBarWidth - GuiGetStyle(DEFAULT, BORDER_WIDTH), + (float)bounds.width - verticalScrollBarWidth - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH), + (float)horizontalScrollBarWidth + }; + Rectangle verticalScrollBar = { + (float)((GuiGetStyle(LISTVIEW, SCROLLBAR_SIDE) == SCROLLBAR_LEFT_SIDE)? (float)bounds.x + GuiGetStyle(DEFAULT, BORDER_WIDTH) : (float)bounds.x + bounds.width - verticalScrollBarWidth - GuiGetStyle(DEFAULT, BORDER_WIDTH)), + (float)bounds.y + GuiGetStyle(DEFAULT, BORDER_WIDTH), + (float)verticalScrollBarWidth, + (float)bounds.height - horizontalScrollBarWidth - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) + }; + + // Make sure scroll bars have a minimum width/height + if (horizontalScrollBar.width < RAYGUI_MIN_SCROLLBAR_WIDTH) horizontalScrollBar.width = RAYGUI_MIN_SCROLLBAR_WIDTH; + if (verticalScrollBar.height < RAYGUI_MIN_SCROLLBAR_HEIGHT) verticalScrollBar.height = RAYGUI_MIN_SCROLLBAR_HEIGHT; + + // Calculate view area (area without the scrollbars) + *view = (GuiGetStyle(LISTVIEW, SCROLLBAR_SIDE) == SCROLLBAR_LEFT_SIDE)? + RAYGUI_CLITERAL(Rectangle){ bounds.x + verticalScrollBarWidth + GuiGetStyle(DEFAULT, BORDER_WIDTH), bounds.y + GuiGetStyle(DEFAULT, BORDER_WIDTH), bounds.width - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - verticalScrollBarWidth, bounds.height - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - horizontalScrollBarWidth } : + RAYGUI_CLITERAL(Rectangle){ bounds.x + GuiGetStyle(DEFAULT, BORDER_WIDTH), bounds.y + GuiGetStyle(DEFAULT, BORDER_WIDTH), bounds.width - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - verticalScrollBarWidth, bounds.height - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - horizontalScrollBarWidth }; + + // Clip view area to the actual content size + if (view->width > content.width) view->width = content.width; + if (view->height > content.height) view->height = content.height; + + float horizontalMin = hasHorizontalScrollBar? ((GuiGetStyle(LISTVIEW, SCROLLBAR_SIDE) == SCROLLBAR_LEFT_SIDE)? (float)-verticalScrollBarWidth : 0) - (float)GuiGetStyle(DEFAULT, BORDER_WIDTH) : (((float)GuiGetStyle(LISTVIEW, SCROLLBAR_SIDE) == SCROLLBAR_LEFT_SIDE)? (float)-verticalScrollBarWidth : 0) - (float)GuiGetStyle(DEFAULT, BORDER_WIDTH); + float horizontalMax = hasHorizontalScrollBar? content.width - bounds.width + (float)verticalScrollBarWidth + GuiGetStyle(DEFAULT, BORDER_WIDTH) - (((float)GuiGetStyle(LISTVIEW, SCROLLBAR_SIDE) == SCROLLBAR_LEFT_SIDE)? (float)verticalScrollBarWidth : 0) : (float)-GuiGetStyle(DEFAULT, BORDER_WIDTH); + float verticalMin = hasVerticalScrollBar? 0.0f : -1.0f; + float verticalMax = hasVerticalScrollBar? content.height - bounds.height + (float)horizontalScrollBarWidth + (float)GuiGetStyle(DEFAULT, BORDER_WIDTH) : (float)-GuiGetStyle(DEFAULT, BORDER_WIDTH); + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked) + { + Vector2 mousePoint = GetMousePosition(); + + // Check button state + if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = STATE_PRESSED; + else state = STATE_FOCUSED; + +#if defined(SUPPORT_SCROLLBAR_KEY_INPUT) + if (hasHorizontalScrollBar) + { + if (IsKeyDown(KEY_RIGHT)) scrollPos.x -= GuiGetStyle(SCROLLBAR, SCROLL_SPEED); + if (IsKeyDown(KEY_LEFT)) scrollPos.x += GuiGetStyle(SCROLLBAR, SCROLL_SPEED); + } + + if (hasVerticalScrollBar) + { + if (IsKeyDown(KEY_DOWN)) scrollPos.y -= GuiGetStyle(SCROLLBAR, SCROLL_SPEED); + if (IsKeyDown(KEY_UP)) scrollPos.y += GuiGetStyle(SCROLLBAR, SCROLL_SPEED); + } +#endif + float wheelMove = GetMouseWheelMove(); + + // Set scrolling speed with mouse wheel based on ratio between bounds and content + Vector2 mouseWheelSpeed = { content.width/bounds.width, content.height/bounds.height }; + if (mouseWheelSpeed.x < RAYGUI_MIN_MOUSE_WHEEL_SPEED) mouseWheelSpeed.x = RAYGUI_MIN_MOUSE_WHEEL_SPEED; + if (mouseWheelSpeed.y < RAYGUI_MIN_MOUSE_WHEEL_SPEED) mouseWheelSpeed.y = RAYGUI_MIN_MOUSE_WHEEL_SPEED; + + // Horizontal and vertical scrolling with mouse wheel + if (hasHorizontalScrollBar && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_LEFT_SHIFT))) scrollPos.x += wheelMove*mouseWheelSpeed.x; + else scrollPos.y += wheelMove*mouseWheelSpeed.y; // Vertical scroll + } + } + + // Normalize scroll values + if (scrollPos.x > -horizontalMin) scrollPos.x = -horizontalMin; + if (scrollPos.x < -horizontalMax) scrollPos.x = -horizontalMax; + if (scrollPos.y > -verticalMin) scrollPos.y = -verticalMin; + if (scrollPos.y < -verticalMax) scrollPos.y = -verticalMax; + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + if (text != NULL) GuiStatusBar(statusBar, text); // Draw panel header as status bar + + GuiDrawRectangle(bounds, 0, BLANK, GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR))); // Draw background + + // Save size of the scrollbar slider + const int slider = GuiGetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE); + + // Draw horizontal scrollbar if visible + if (hasHorizontalScrollBar) + { + // Change scrollbar slider size to show the diff in size between the content width and the widget width + GuiSetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE, (int)(((bounds.width - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - verticalScrollBarWidth)/(int)content.width)*((int)bounds.width - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - verticalScrollBarWidth))); + scrollPos.x = (float)-GuiScrollBar(horizontalScrollBar, (int)-scrollPos.x, (int)horizontalMin, (int)horizontalMax); + } + else scrollPos.x = 0.0f; + + // Draw vertical scrollbar if visible + if (hasVerticalScrollBar) + { + // Change scrollbar slider size to show the diff in size between the content height and the widget height + GuiSetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE, (int)(((bounds.height - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - horizontalScrollBarWidth)/(int)content.height)*((int)bounds.height - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) - horizontalScrollBarWidth))); + scrollPos.y = (float)-GuiScrollBar(verticalScrollBar, (int)-scrollPos.y, (int)verticalMin, (int)verticalMax); + } + else scrollPos.y = 0.0f; + + // Draw detail corner rectangle if both scroll bars are visible + if (hasHorizontalScrollBar && hasVerticalScrollBar) + { + Rectangle corner = { (GuiGetStyle(LISTVIEW, SCROLLBAR_SIDE) == SCROLLBAR_LEFT_SIDE)? (bounds.x + GuiGetStyle(DEFAULT, BORDER_WIDTH) + 2) : (horizontalScrollBar.x + horizontalScrollBar.width + 2), verticalScrollBar.y + verticalScrollBar.height + 2, (float)horizontalScrollBarWidth - 4, (float)verticalScrollBarWidth - 4 }; + GuiDrawRectangle(corner, 0, BLANK, GetColor(GuiGetStyle(LISTVIEW, TEXT + (state*3)))); + } + + // Draw scrollbar lines depending on current state + GuiDrawRectangle(bounds, GuiGetStyle(LISTVIEW, BORDER_WIDTH), GetColor(GuiGetStyle(LISTVIEW, BORDER + (state*3))), BLANK); + + // Set scrollbar slider size back to the way it was before + GuiSetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE, slider); + //-------------------------------------------------------------------- + + if (scroll != NULL) *scroll = scrollPos; + + return result; +} + +// Label control +int GuiLabel(Rectangle bounds, const char *text) +{ + int result = 0; + GuiState state = guiState; + + // Update control + //-------------------------------------------------------------------- + //... + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiDrawText(text, GetTextBounds(LABEL, bounds), GuiGetStyle(LABEL, TEXT_ALIGNMENT), GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + //-------------------------------------------------------------------- + + return result; +} + +// Button control, returns true when clicked +int GuiButton(Rectangle bounds, const char *text) +{ + int result = 0; + GuiState state = guiState; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + // Check button state + if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = STATE_PRESSED; + else state = STATE_FOCUSED; + + if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) result = 1; + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiDrawRectangle(bounds, GuiGetStyle(BUTTON, BORDER_WIDTH), GetColor(GuiGetStyle(BUTTON, BORDER + (state*3))), GetColor(GuiGetStyle(BUTTON, BASE + (state*3)))); + GuiDrawText(text, GetTextBounds(BUTTON, bounds), GuiGetStyle(BUTTON, TEXT_ALIGNMENT), GetColor(GuiGetStyle(BUTTON, TEXT + (state*3)))); + + if (state == STATE_FOCUSED) GuiTooltip(bounds); + //------------------------------------------------------------------ + + return result; // Button pressed: result = 1 +} + +// Label button control +int GuiLabelButton(Rectangle bounds, const char *text) +{ + GuiState state = guiState; + bool pressed = false; + + // NOTE: We force bounds.width to be all text + float textWidth = (float)GuiGetTextWidth(text); + if ((bounds.width - 2*GuiGetStyle(LABEL, BORDER_WIDTH) - 2*GuiGetStyle(LABEL, TEXT_PADDING)) < textWidth) bounds.width = textWidth + 2*GuiGetStyle(LABEL, BORDER_WIDTH) + 2*GuiGetStyle(LABEL, TEXT_PADDING) + 2; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + // Check checkbox state + if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = STATE_PRESSED; + else state = STATE_FOCUSED; + + if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) pressed = true; + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiDrawText(text, GetTextBounds(LABEL, bounds), GuiGetStyle(LABEL, TEXT_ALIGNMENT), GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + //-------------------------------------------------------------------- + + return pressed; +} + +// Toggle Button control +int GuiToggle(Rectangle bounds, const char *text, bool *active) +{ + int result = 0; + GuiState state = guiState; + + bool temp = false; + if (active == NULL) active = &temp; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + // Check toggle button state + if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = STATE_PRESSED; + else if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) + { + state = STATE_NORMAL; + *active = !(*active); + } + else state = STATE_FOCUSED; + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + if (state == STATE_NORMAL) + { + GuiDrawRectangle(bounds, GuiGetStyle(TOGGLE, BORDER_WIDTH), GetColor(GuiGetStyle(TOGGLE, ((*active)? BORDER_COLOR_PRESSED : (BORDER + state*3)))), GetColor(GuiGetStyle(TOGGLE, ((*active)? BASE_COLOR_PRESSED : (BASE + state*3))))); + GuiDrawText(text, GetTextBounds(TOGGLE, bounds), GuiGetStyle(TOGGLE, TEXT_ALIGNMENT), GetColor(GuiGetStyle(TOGGLE, ((*active)? TEXT_COLOR_PRESSED : (TEXT + state*3))))); + } + else + { + GuiDrawRectangle(bounds, GuiGetStyle(TOGGLE, BORDER_WIDTH), GetColor(GuiGetStyle(TOGGLE, BORDER + state*3)), GetColor(GuiGetStyle(TOGGLE, BASE + state*3))); + GuiDrawText(text, GetTextBounds(TOGGLE, bounds), GuiGetStyle(TOGGLE, TEXT_ALIGNMENT), GetColor(GuiGetStyle(TOGGLE, TEXT + state*3))); + } + + if (state == STATE_FOCUSED) GuiTooltip(bounds); + //-------------------------------------------------------------------- + + return result; +} + +// Toggle Group control +int GuiToggleGroup(Rectangle bounds, const char *text, int *active) +{ + #if !defined(RAYGUI_TOGGLEGROUP_MAX_ITEMS) + #define RAYGUI_TOGGLEGROUP_MAX_ITEMS 32 + #endif + + int result = 0; + float initBoundsX = bounds.x; + + int temp = 0; + if (active == NULL) active = &temp; + + bool toggle = false; // Required for individual toggles + + // Get substrings items from text (items pointers) + int rows[RAYGUI_TOGGLEGROUP_MAX_ITEMS] = { 0 }; + int itemCount = 0; + const char **items = GuiTextSplit(text, ';', &itemCount, rows); + + int prevRow = rows[0]; + + for (int i = 0; i < itemCount; i++) + { + if (prevRow != rows[i]) + { + bounds.x = initBoundsX; + bounds.y += (bounds.height + GuiGetStyle(TOGGLE, GROUP_PADDING)); + prevRow = rows[i]; + } + + if (i == (*active)) + { + toggle = true; + GuiToggle(bounds, items[i], &toggle); + } + else + { + toggle = false; + GuiToggle(bounds, items[i], &toggle); + if (toggle) *active = i; + } + + bounds.x += (bounds.width + GuiGetStyle(TOGGLE, GROUP_PADDING)); + } + + return result; +} + +// Toggle Slider control extended +int GuiToggleSlider(Rectangle bounds, const char *text, int *active) +{ + int result = 0; + GuiState state = guiState; + + int temp = 0; + if (active == NULL) active = &temp; + + //bool toggle = false; // Required for individual toggles + + // Get substrings items from text (items pointers) + int itemCount = 0; + const char **items = NULL; + + if (text != NULL) items = GuiTextSplit(text, ';', &itemCount, NULL); + + Rectangle slider = { + 0, // Calculated later depending on the active toggle + bounds.y + GuiGetStyle(SLIDER, BORDER_WIDTH) + GuiGetStyle(SLIDER, SLIDER_PADDING), + (bounds.width - 2*GuiGetStyle(SLIDER, BORDER_WIDTH) - (itemCount + 1)*GuiGetStyle(SLIDER, SLIDER_PADDING))/itemCount, + bounds.height - 2*GuiGetStyle(SLIDER, BORDER_WIDTH) - 2*GuiGetStyle(SLIDER, SLIDER_PADDING) }; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked) + { + Vector2 mousePoint = GetMousePosition(); + + if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = STATE_PRESSED; + else if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) + { + state = STATE_PRESSED; + (*active)++; + result = 1; + } + else state = STATE_FOCUSED; + } + + if ((*active) && (state != STATE_FOCUSED)) state = STATE_PRESSED; + } + + if (*active >= itemCount) *active = 0; + slider.x = bounds.x + GuiGetStyle(SLIDER, BORDER_WIDTH) + (*active + 1)*GuiGetStyle(SLIDER, SLIDER_PADDING) + (*active)*slider.width; + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiDrawRectangle(bounds, GuiGetStyle(SLIDER, BORDER_WIDTH), GetColor(GuiGetStyle(TOGGLE, BORDER + (state*3))), + GetColor(GuiGetStyle(TOGGLE, BASE_COLOR_NORMAL))); + + // Draw internal slider + if (state == STATE_NORMAL) GuiDrawRectangle(slider, 0, BLANK, GetColor(GuiGetStyle(SLIDER, BASE_COLOR_PRESSED))); + else if (state == STATE_FOCUSED) GuiDrawRectangle(slider, 0, BLANK, GetColor(GuiGetStyle(SLIDER, BASE_COLOR_FOCUSED))); + else if (state == STATE_PRESSED) GuiDrawRectangle(slider, 0, BLANK, GetColor(GuiGetStyle(SLIDER, BASE_COLOR_PRESSED))); + + // Draw text in slider + if (text != NULL) + { + Rectangle textBounds = { 0 }; + textBounds.width = (float)GuiGetTextWidth(text); + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + textBounds.x = slider.x + slider.width/2 - textBounds.width/2; + textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + + GuiDrawText(items[*active], textBounds, GuiGetStyle(TOGGLE, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(TOGGLE, TEXT + (state*3))), guiAlpha)); + } + //-------------------------------------------------------------------- + + return result; +} + +// Check Box control, returns 1 when state changed +int GuiCheckBox(Rectangle bounds, const char *text, bool *checked) +{ + int result = 0; + GuiState state = guiState; + + bool temp = false; + if (checked == NULL) checked = &temp; + + Rectangle textBounds = { 0 }; + + if (text != NULL) + { + textBounds.width = (float)GuiGetTextWidth(text) + 2; + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + textBounds.x = bounds.x + bounds.width + GuiGetStyle(CHECKBOX, TEXT_PADDING); + textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + if (GuiGetStyle(CHECKBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_LEFT) textBounds.x = bounds.x - textBounds.width - GuiGetStyle(CHECKBOX, TEXT_PADDING); + } + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + Rectangle totalBounds = { + (GuiGetStyle(CHECKBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_LEFT)? textBounds.x : bounds.x, + bounds.y, + bounds.width + textBounds.width + GuiGetStyle(CHECKBOX, TEXT_PADDING), + bounds.height, + }; + + // Check checkbox state + if (CheckCollisionPointRec(mousePoint, totalBounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = STATE_PRESSED; + else state = STATE_FOCUSED; + + if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) + { + *checked = !(*checked); + result = 1; + } + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiDrawRectangle(bounds, GuiGetStyle(CHECKBOX, BORDER_WIDTH), GetColor(GuiGetStyle(CHECKBOX, BORDER + (state*3))), BLANK); + + if (*checked) + { + Rectangle check = { bounds.x + GuiGetStyle(CHECKBOX, BORDER_WIDTH) + GuiGetStyle(CHECKBOX, CHECK_PADDING), + bounds.y + GuiGetStyle(CHECKBOX, BORDER_WIDTH) + GuiGetStyle(CHECKBOX, CHECK_PADDING), + bounds.width - 2*(GuiGetStyle(CHECKBOX, BORDER_WIDTH) + GuiGetStyle(CHECKBOX, CHECK_PADDING)), + bounds.height - 2*(GuiGetStyle(CHECKBOX, BORDER_WIDTH) + GuiGetStyle(CHECKBOX, CHECK_PADDING)) }; + GuiDrawRectangle(check, 0, BLANK, GetColor(GuiGetStyle(CHECKBOX, TEXT + state*3))); + } + + GuiDrawText(text, textBounds, (GuiGetStyle(CHECKBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_RIGHT)? TEXT_ALIGN_LEFT : TEXT_ALIGN_RIGHT, GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + //-------------------------------------------------------------------- + + return result; +} + +// Combo Box control +int GuiComboBox(Rectangle bounds, const char *text, int *active) +{ + int result = 0; + GuiState state = guiState; + + int temp = 0; + if (active == NULL) active = &temp; + + bounds.width -= (GuiGetStyle(COMBOBOX, COMBO_BUTTON_WIDTH) + GuiGetStyle(COMBOBOX, COMBO_BUTTON_SPACING)); + + Rectangle selector = { (float)bounds.x + bounds.width + GuiGetStyle(COMBOBOX, COMBO_BUTTON_SPACING), + (float)bounds.y, (float)GuiGetStyle(COMBOBOX, COMBO_BUTTON_WIDTH), (float)bounds.height }; + + // Get substrings items from text (items pointers, lengths and count) + int itemCount = 0; + const char **items = GuiTextSplit(text, ';', &itemCount, NULL); + + if (*active < 0) *active = 0; + else if (*active > (itemCount - 1)) *active = itemCount - 1; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && (itemCount > 1) && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + if (CheckCollisionPointRec(mousePoint, bounds) || + CheckCollisionPointRec(mousePoint, selector)) + { + if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) + { + *active += 1; + if (*active >= itemCount) *active = 0; // Cyclic combobox + } + + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = STATE_PRESSED; + else state = STATE_FOCUSED; + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + // Draw combo box main + GuiDrawRectangle(bounds, GuiGetStyle(COMBOBOX, BORDER_WIDTH), GetColor(GuiGetStyle(COMBOBOX, BORDER + (state*3))), GetColor(GuiGetStyle(COMBOBOX, BASE + (state*3)))); + GuiDrawText(items[*active], GetTextBounds(COMBOBOX, bounds), GuiGetStyle(COMBOBOX, TEXT_ALIGNMENT), GetColor(GuiGetStyle(COMBOBOX, TEXT + (state*3)))); + + // Draw selector using a custom button + // NOTE: BORDER_WIDTH and TEXT_ALIGNMENT forced values + int tempBorderWidth = GuiGetStyle(BUTTON, BORDER_WIDTH); + int tempTextAlign = GuiGetStyle(BUTTON, TEXT_ALIGNMENT); + GuiSetStyle(BUTTON, BORDER_WIDTH, 1); + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + + GuiButton(selector, TextFormat("%i/%i", *active + 1, itemCount)); + + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, tempTextAlign); + GuiSetStyle(BUTTON, BORDER_WIDTH, tempBorderWidth); + //-------------------------------------------------------------------- + + return result; +} + +// Dropdown Box control +// NOTE: Returns mouse click +int GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMode) +{ + int result = 0; + GuiState state = guiState; + + int temp = 0; + if (active == NULL) active = &temp; + + int itemSelected = *active; + int itemFocused = -1; + + int direction = 0; // Dropdown box open direction: down (default) + if (GuiGetStyle(DROPDOWNBOX, DROPDOWN_ROLL_UP) == 1) direction = 1; // Up + + // Get substrings items from text (items pointers, lengths and count) + int itemCount = 0; + const char **items = GuiTextSplit(text, ';', &itemCount, NULL); + + Rectangle boundsOpen = bounds; + boundsOpen.height = (itemCount + 1)*(bounds.height + GuiGetStyle(DROPDOWNBOX, DROPDOWN_ITEMS_SPACING)); + if (direction == 1) boundsOpen.y -= itemCount*(bounds.height + GuiGetStyle(DROPDOWNBOX, DROPDOWN_ITEMS_SPACING)) + GuiGetStyle(DROPDOWNBOX, DROPDOWN_ITEMS_SPACING); + + Rectangle itemBounds = bounds; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && (editMode || !guiLocked) && (itemCount > 1) && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + if (editMode) + { + state = STATE_PRESSED; + + // Check if mouse has been pressed or released outside limits + if (!CheckCollisionPointRec(mousePoint, boundsOpen)) + { + if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON) || IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) result = 1; + } + + // Check if already selected item has been pressed again + if (CheckCollisionPointRec(mousePoint, bounds) && IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) result = 1; + + // Check focused and selected item + for (int i = 0; i < itemCount; i++) + { + // Update item rectangle y position for next item + if (direction == 0) itemBounds.y += (bounds.height + GuiGetStyle(DROPDOWNBOX, DROPDOWN_ITEMS_SPACING)); + else itemBounds.y -= (bounds.height + GuiGetStyle(DROPDOWNBOX, DROPDOWN_ITEMS_SPACING)); + + if (CheckCollisionPointRec(mousePoint, itemBounds)) + { + itemFocused = i; + if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) + { + itemSelected = i; + result = 1; // Item selected + } + break; + } + } + + itemBounds = bounds; + } + else + { + if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) + { + result = 1; + state = STATE_PRESSED; + } + else state = STATE_FOCUSED; + } + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + if (editMode) GuiPanel(boundsOpen, NULL); + + GuiDrawRectangle(bounds, GuiGetStyle(DROPDOWNBOX, BORDER_WIDTH), GetColor(GuiGetStyle(DROPDOWNBOX, BORDER + state*3)), GetColor(GuiGetStyle(DROPDOWNBOX, BASE + state*3))); + GuiDrawText(items[itemSelected], GetTextBounds(DROPDOWNBOX, bounds), GuiGetStyle(DROPDOWNBOX, TEXT_ALIGNMENT), GetColor(GuiGetStyle(DROPDOWNBOX, TEXT + state*3))); + + if (editMode) + { + // Draw visible items + for (int i = 0; i < itemCount; i++) + { + // Update item rectangle y position for next item + if (direction == 0) itemBounds.y += (bounds.height + GuiGetStyle(DROPDOWNBOX, DROPDOWN_ITEMS_SPACING)); + else itemBounds.y -= (bounds.height + GuiGetStyle(DROPDOWNBOX, DROPDOWN_ITEMS_SPACING)); + + if (i == itemSelected) + { + GuiDrawRectangle(itemBounds, GuiGetStyle(DROPDOWNBOX, BORDER_WIDTH), GetColor(GuiGetStyle(DROPDOWNBOX, BORDER_COLOR_PRESSED)), GetColor(GuiGetStyle(DROPDOWNBOX, BASE_COLOR_PRESSED))); + GuiDrawText(items[i], GetTextBounds(DROPDOWNBOX, itemBounds), GuiGetStyle(DROPDOWNBOX, TEXT_ALIGNMENT), GetColor(GuiGetStyle(DROPDOWNBOX, TEXT_COLOR_PRESSED))); + } + else if (i == itemFocused) + { + GuiDrawRectangle(itemBounds, GuiGetStyle(DROPDOWNBOX, BORDER_WIDTH), GetColor(GuiGetStyle(DROPDOWNBOX, BORDER_COLOR_FOCUSED)), GetColor(GuiGetStyle(DROPDOWNBOX, BASE_COLOR_FOCUSED))); + GuiDrawText(items[i], GetTextBounds(DROPDOWNBOX, itemBounds), GuiGetStyle(DROPDOWNBOX, TEXT_ALIGNMENT), GetColor(GuiGetStyle(DROPDOWNBOX, TEXT_COLOR_FOCUSED))); + } + else GuiDrawText(items[i], GetTextBounds(DROPDOWNBOX, itemBounds), GuiGetStyle(DROPDOWNBOX, TEXT_ALIGNMENT), GetColor(GuiGetStyle(DROPDOWNBOX, TEXT_COLOR_NORMAL))); + } + } + + if (!GuiGetStyle(DROPDOWNBOX, DROPDOWN_ARROW_HIDDEN)) + { + // Draw arrows (using icon if available) +#if defined(RAYGUI_NO_ICONS) + GuiDrawText("v", RAYGUI_CLITERAL(Rectangle){ bounds.x + bounds.width - GuiGetStyle(DROPDOWNBOX, ARROW_PADDING), bounds.y + bounds.height/2 - 2, 10, 10 }, + TEXT_ALIGN_CENTER, GetColor(GuiGetStyle(DROPDOWNBOX, TEXT + (state*3)))); +#else + GuiDrawText(direction? "#121#" : "#120#", RAYGUI_CLITERAL(Rectangle){ bounds.x + bounds.width - GuiGetStyle(DROPDOWNBOX, ARROW_PADDING), bounds.y + bounds.height/2 - 6, 10, 10 }, + TEXT_ALIGN_CENTER, GetColor(GuiGetStyle(DROPDOWNBOX, TEXT + (state*3)))); // ICON_ARROW_DOWN_FILL +#endif + } + //-------------------------------------------------------------------- + + *active = itemSelected; + + // TODO: Use result to return more internal states: mouse-press out-of-bounds, mouse-press over selected-item... + return result; // Mouse click: result = 1 +} + +// Text Box control +// NOTE: Returns true on ENTER pressed (useful for data validation) +int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) +{ + #if !defined(RAYGUI_TEXTBOX_AUTO_CURSOR_COOLDOWN) + #define RAYGUI_TEXTBOX_AUTO_CURSOR_COOLDOWN 30 // Frames to wait for autocursor movement + #endif + #if !defined(RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY) + #define RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY 2 // Frames delay for autocursor movement + #endif + + int result = 0; + GuiState state = guiState; + + bool multiline = false; // TODO: Consider multiline text input + int wrapMode = GuiGetStyle(DEFAULT, TEXT_WRAP_MODE); + + Rectangle textBounds = GetTextBounds(TEXTBOX, bounds); + int textLength = (text != NULL)? (int)strlen(text) : 0; // Get current text length + int thisCursorIndex = textBoxCursorIndex; + if (thisCursorIndex > textLength) thisCursorIndex = textLength; + int textWidth = GuiGetTextWidth(text) - GuiGetTextWidth(text + thisCursorIndex); + int textIndexOffset = 0; // Text index offset to start drawing in the box + + // Cursor rectangle + // NOTE: Position X value should be updated + Rectangle cursor = { + textBounds.x + textWidth + GuiGetStyle(DEFAULT, TEXT_SPACING), + textBounds.y + textBounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE), + 2, + (float)GuiGetStyle(DEFAULT, TEXT_SIZE)*2 + }; + + if (cursor.height >= bounds.height) cursor.height = bounds.height - GuiGetStyle(TEXTBOX, BORDER_WIDTH)*2; + if (cursor.y < (bounds.y + GuiGetStyle(TEXTBOX, BORDER_WIDTH))) cursor.y = bounds.y + GuiGetStyle(TEXTBOX, BORDER_WIDTH); + + // Mouse cursor rectangle + // NOTE: Initialized outside of screen + Rectangle mouseCursor = cursor; + mouseCursor.x = -1; + mouseCursor.width = 1; + + // Blink-cursor frame counter + //if (!autoCursorMode) blinkCursorFrameCounter++; + //else blinkCursorFrameCounter = 0; + + // Update control + //-------------------------------------------------------------------- + // WARNING: Text editing is only supported under certain conditions: + if ((state != STATE_DISABLED) && // Control not disabled + !GuiGetStyle(TEXTBOX, TEXT_READONLY) && // TextBox not on read-only mode + !guiLocked && // Gui not locked + !guiControlExclusiveMode && // No gui slider on dragging + (wrapMode == TEXT_WRAP_NONE)) // No wrap mode + { + Vector2 mousePosition = GetMousePosition(); + + if (editMode) + { + // GLOBAL: Auto-cursor movement logic + // NOTE: Keystrokes are handled repeatedly when button is held down for some time + if (IsKeyDown(KEY_LEFT) || IsKeyDown(KEY_RIGHT) || IsKeyDown(KEY_UP) || IsKeyDown(KEY_DOWN) || IsKeyDown(KEY_BACKSPACE) || IsKeyDown(KEY_DELETE)) autoCursorCounter++; + else autoCursorCounter = 0; + + bool autoCursorShouldTrigger = (autoCursorCounter > RAYGUI_TEXTBOX_AUTO_CURSOR_COOLDOWN) && ((autoCursorCounter % RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY) == 0); + + state = STATE_PRESSED; + + if (textBoxCursorIndex > textLength) textBoxCursorIndex = textLength; + + // If text does not fit in the textbox and current cursor position is out of bounds, + // we add an index offset to text for drawing only what requires depending on cursor + while (textWidth >= textBounds.width) + { + int nextCodepointSize = 0; + GetCodepointNext(text + textIndexOffset, &nextCodepointSize); + + textIndexOffset += nextCodepointSize; + + textWidth = GuiGetTextWidth(text + textIndexOffset) - GuiGetTextWidth(text + textBoxCursorIndex); + } + + int codepoint = GetCharPressed(); // Get Unicode codepoint + if (multiline && IsKeyPressed(KEY_ENTER)) codepoint = (int)'\n'; + + // Encode codepoint as UTF-8 + int codepointSize = 0; + const char *charEncoded = CodepointToUTF8(codepoint, &codepointSize); + + // Handle Paste action + if (IsKeyPressed(KEY_V) && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_CONTROL))) + { + const char *pasteText = GetClipboardText(); + if (pasteText != NULL) + { + int pasteLength = 0; + int pasteCodepoint; + int pasteCodepointSize; + // count how many codepoints to copy, stopping at the first unwanted control character + while (true) + { + pasteCodepoint = GetCodepointNext(pasteText + pasteLength, &pasteCodepointSize); + if (textLength + pasteLength + pasteCodepointSize >= textSize) break; + if (!(multiline && (pasteCodepoint == (int)'\n')) && !(pasteCodepoint >= 32)) break; + pasteLength += pasteCodepointSize; + } + if (pasteLength > 0) + { + // Move forward data from cursor position + for (int i = textLength + pasteLength; i > textBoxCursorIndex; i--) text[i] = text[i - pasteLength]; + + // Paste data in at cursor + for (int i = 0; i < pasteLength; i++) text[textBoxCursorIndex + i] = pasteText[i]; + + textBoxCursorIndex += pasteLength; + textLength += pasteLength; + text[textLength] = '\0'; + } + } + } + // Add codepoint to text, at current cursor position + // NOTE: Make sure we do not overflow buffer size + else if (((multiline && (codepoint == (int)'\n')) || (codepoint >= 32)) && ((textLength + codepointSize) < textSize)) + { + // Move forward data from cursor position + for (int i = (textLength + codepointSize); i > textBoxCursorIndex; i--) text[i] = text[i - codepointSize]; + + // Add new codepoint in current cursor position + for (int i = 0; i < codepointSize; i++) text[textBoxCursorIndex + i] = charEncoded[i]; + + textBoxCursorIndex += codepointSize; + textLength += codepointSize; + + // Make sure text last character is EOL + text[textLength] = '\0'; + } + + // Move cursor to start + if ((textLength > 0) && IsKeyPressed(KEY_HOME)) textBoxCursorIndex = 0; + + // Move cursor to end + if ((textLength > textBoxCursorIndex) && IsKeyPressed(KEY_END)) textBoxCursorIndex = textLength; + + // Delete related codepoints from text, after current cursor position + if ((textLength > textBoxCursorIndex) && IsKeyPressed(KEY_DELETE) && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_CONTROL))) + { + int offset = textBoxCursorIndex; + int accCodepointSize = 0; + int nextCodepointSize; + int nextCodepoint; + // Check characters of the same type to delete (either ASCII punctuation or anything non-whitespace) + // Not using isalnum() since it only works on ASCII characters + nextCodepoint = GetCodepointNext(text + offset, &nextCodepointSize); + bool puctuation = ispunct(nextCodepoint & 0xff); + while (offset < textLength) + { + if ((puctuation && !ispunct(nextCodepoint & 0xff)) || (!puctuation && (isspace(nextCodepoint & 0xff) || ispunct(nextCodepoint & 0xff)))) + break; + offset += nextCodepointSize; + accCodepointSize += nextCodepointSize; + nextCodepoint = GetCodepointNext(text + offset, &nextCodepointSize); + } + // Check whitespace to delete (ASCII only) + while (offset < textLength) + { + if (!isspace(nextCodepoint & 0xff)) + break; + offset += nextCodepointSize; + accCodepointSize += nextCodepointSize; + nextCodepoint = GetCodepointNext(text + offset, &nextCodepointSize); + } + + // Move text after cursor forward (including final null terminator) + for (int i = offset; i <= textLength; i++) text[i - accCodepointSize] = text[i]; + + textLength -= accCodepointSize; + } + // Delete single codepoint from text, after current cursor position + else if ((textLength > textBoxCursorIndex) && (IsKeyPressed(KEY_DELETE) || (IsKeyDown(KEY_DELETE) && autoCursorShouldTrigger))) + { + int nextCodepointSize = 0; + GetCodepointNext(text + textBoxCursorIndex, &nextCodepointSize); + + // Move text after cursor forward (including final null terminator) + for (int i = textBoxCursorIndex + nextCodepointSize; i <= textLength; i++) text[i - nextCodepointSize] = text[i]; + + textLength -= nextCodepointSize; + } + + // Delete related codepoints from text, before current cursor position + if ((textBoxCursorIndex > 0) && IsKeyPressed(KEY_BACKSPACE) && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_CONTROL))) + { + int offset = textBoxCursorIndex; + int accCodepointSize = 0; + int prevCodepointSize; + int prevCodepoint; + + // Check whitespace to delete (ASCII only) + while (offset > 0) + { + prevCodepoint = GetCodepointPrevious(text + offset, &prevCodepointSize); + if (!isspace(prevCodepoint & 0xff)) break; + + offset -= prevCodepointSize; + accCodepointSize += prevCodepointSize; + } + // Check characters of the same type to delete (either ASCII punctuation or anything non-whitespace) + // Not using isalnum() since it only works on ASCII characters + bool puctuation = ispunct(prevCodepoint & 0xff); + while (offset > 0) + { + prevCodepoint = GetCodepointPrevious(text + offset, &prevCodepointSize); + if ((puctuation && !ispunct(prevCodepoint & 0xff)) || (!puctuation && (isspace(prevCodepoint & 0xff) || ispunct(prevCodepoint & 0xff)))) break; + + offset -= prevCodepointSize; + accCodepointSize += prevCodepointSize; + } + + // Move text after cursor forward (including final null terminator) + for (int i = textBoxCursorIndex; i <= textLength; i++) text[i - accCodepointSize] = text[i]; + + textLength -= accCodepointSize; + textBoxCursorIndex -= accCodepointSize; + } + // Delete single codepoint from text, before current cursor position + else if ((textBoxCursorIndex > 0) && (IsKeyPressed(KEY_BACKSPACE) || (IsKeyDown(KEY_BACKSPACE) && autoCursorShouldTrigger))) + { + int prevCodepointSize = 0; + + GetCodepointPrevious(text + textBoxCursorIndex, &prevCodepointSize); + + // Move text after cursor forward (including final null terminator) + for (int i = textBoxCursorIndex; i <= textLength; i++) text[i - prevCodepointSize] = text[i]; + + textLength -= prevCodepointSize; + textBoxCursorIndex -= prevCodepointSize; + } + + // Move cursor position with keys + if ((textBoxCursorIndex > 0) && IsKeyPressed(KEY_LEFT) && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_CONTROL))) + { + int offset = textBoxCursorIndex; + int accCodepointSize = 0; + int prevCodepointSize; + int prevCodepoint; + + // Check whitespace to skip (ASCII only) + while (offset > 0) + { + prevCodepoint = GetCodepointPrevious(text + offset, &prevCodepointSize); + if (!isspace(prevCodepoint & 0xff)) break; + + offset -= prevCodepointSize; + accCodepointSize += prevCodepointSize; + } + + // Check characters of the same type to skip (either ASCII punctuation or anything non-whitespace) + // Not using isalnum() since it only works on ASCII characters + bool puctuation = ispunct(prevCodepoint & 0xff); + while (offset > 0) + { + prevCodepoint = GetCodepointPrevious(text + offset, &prevCodepointSize); + if ((puctuation && !ispunct(prevCodepoint & 0xff)) || (!puctuation && (isspace(prevCodepoint & 0xff) || ispunct(prevCodepoint & 0xff)))) break; + + offset -= prevCodepointSize; + accCodepointSize += prevCodepointSize; + } + + textBoxCursorIndex = offset; + } + else if ((textBoxCursorIndex > 0) && (IsKeyPressed(KEY_LEFT) || (IsKeyDown(KEY_LEFT) && autoCursorShouldTrigger))) + { + int prevCodepointSize = 0; + GetCodepointPrevious(text + textBoxCursorIndex, &prevCodepointSize); + + textBoxCursorIndex -= prevCodepointSize; + } + else if ((textLength > textBoxCursorIndex) && IsKeyPressed(KEY_RIGHT) && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_CONTROL))) + { + int offset = textBoxCursorIndex; + int accCodepointSize = 0; + int nextCodepointSize; + int nextCodepoint; + + // Check characters of the same type to skip (either ASCII punctuation or anything non-whitespace) + // Not using isalnum() since it only works on ASCII characters + nextCodepoint = GetCodepointNext(text + offset, &nextCodepointSize); + bool puctuation = ispunct(nextCodepoint & 0xff); + while (offset < textLength) + { + if ((puctuation && !ispunct(nextCodepoint & 0xff)) || (!puctuation && (isspace(nextCodepoint & 0xff) || ispunct(nextCodepoint & 0xff)))) break; + + offset += nextCodepointSize; + accCodepointSize += nextCodepointSize; + nextCodepoint = GetCodepointNext(text + offset, &nextCodepointSize); + } + + // Check whitespace to skip (ASCII only) + while (offset < textLength) + { + if (!isspace(nextCodepoint & 0xff)) break; + + offset += nextCodepointSize; + accCodepointSize += nextCodepointSize; + nextCodepoint = GetCodepointNext(text + offset, &nextCodepointSize); + } + + textBoxCursorIndex = offset; + } + else if ((textLength > textBoxCursorIndex) && (IsKeyPressed(KEY_RIGHT) || (IsKeyDown(KEY_RIGHT) && autoCursorShouldTrigger))) + { + int nextCodepointSize = 0; + GetCodepointNext(text + textBoxCursorIndex, &nextCodepointSize); + + textBoxCursorIndex += nextCodepointSize; + } + + // Move cursor position with mouse + if (CheckCollisionPointRec(mousePosition, textBounds)) // Mouse hover text + { + float scaleFactor = (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/(float)guiFont.baseSize; + int codepointIndex = 0; + float glyphWidth = 0.0f; + float widthToMouseX = 0; + int mouseCursorIndex = 0; + + for (int i = textIndexOffset; i < textLength; i += codepointSize) + { + codepoint = GetCodepointNext(&text[i], &codepointSize); + codepointIndex = GetGlyphIndex(guiFont, codepoint); + + if (guiFont.glyphs[codepointIndex].advanceX == 0) glyphWidth = ((float)guiFont.recs[codepointIndex].width*scaleFactor); + else glyphWidth = ((float)guiFont.glyphs[codepointIndex].advanceX*scaleFactor); + + if (mousePosition.x <= (textBounds.x + (widthToMouseX + glyphWidth/2))) + { + mouseCursor.x = textBounds.x + widthToMouseX; + mouseCursorIndex = i; + break; + } + + widthToMouseX += (glyphWidth + (float)GuiGetStyle(DEFAULT, TEXT_SPACING)); + } + + // Check if mouse cursor is at the last position + int textEndWidth = GuiGetTextWidth(text + textIndexOffset); + if (GetMousePosition().x >= (textBounds.x + textEndWidth - glyphWidth/2)) + { + mouseCursor.x = textBounds.x + textEndWidth; + mouseCursorIndex = textLength; + } + + // Place cursor at required index on mouse click + if ((mouseCursor.x >= 0) && IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) + { + cursor.x = mouseCursor.x; + textBoxCursorIndex = mouseCursorIndex; + } + } + else mouseCursor.x = -1; + + // Recalculate cursor position.y depending on textBoxCursorIndex + cursor.x = bounds.x + GuiGetStyle(TEXTBOX, TEXT_PADDING) + GuiGetTextWidth(text + textIndexOffset) - GuiGetTextWidth(text + textBoxCursorIndex) + GuiGetStyle(DEFAULT, TEXT_SPACING); + //if (multiline) cursor.y = GetTextLines() + + // Finish text editing on ENTER or mouse click outside bounds + if ((!multiline && IsKeyPressed(KEY_ENTER)) || + (!CheckCollisionPointRec(mousePosition, bounds) && IsMouseButtonPressed(MOUSE_LEFT_BUTTON))) + { + textBoxCursorIndex = 0; // GLOBAL: Reset the shared cursor index + autoCursorCounter = 0; // GLOBAL: Reset counter for repeated keystrokes + result = 1; + } + } + else + { + if (CheckCollisionPointRec(mousePosition, bounds)) + { + state = STATE_FOCUSED; + + if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) + { + textBoxCursorIndex = textLength; // GLOBAL: Place cursor index to the end of current text + autoCursorCounter = 0; // GLOBAL: Reset counter for repeated keystrokes + result = 1; + } + } + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + if (state == STATE_PRESSED) + { + GuiDrawRectangle(bounds, GuiGetStyle(TEXTBOX, BORDER_WIDTH), GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_PRESSED))); + } + else if (state == STATE_DISABLED) + { + GuiDrawRectangle(bounds, GuiGetStyle(TEXTBOX, BORDER_WIDTH), GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_DISABLED))); + } + else GuiDrawRectangle(bounds, GuiGetStyle(TEXTBOX, BORDER_WIDTH), GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), BLANK); + + // Draw text considering index offset if required + // NOTE: Text index offset depends on cursor position + GuiDrawText(text + textIndexOffset, textBounds, GuiGetStyle(TEXTBOX, TEXT_ALIGNMENT), GetColor(GuiGetStyle(TEXTBOX, TEXT + (state*3)))); + + // Draw cursor + if (editMode && !GuiGetStyle(TEXTBOX, TEXT_READONLY)) + { + //if (autoCursorMode || ((blinkCursorFrameCounter/40)%2 == 0)) + GuiDrawRectangle(cursor, 0, BLANK, GetColor(GuiGetStyle(TEXTBOX, BORDER_COLOR_PRESSED))); + + // Draw mouse position cursor (if required) + if (mouseCursor.x >= 0) GuiDrawRectangle(mouseCursor, 0, BLANK, GetColor(GuiGetStyle(TEXTBOX, BORDER_COLOR_PRESSED))); + } + else if (state == STATE_FOCUSED) GuiTooltip(bounds); + //-------------------------------------------------------------------- + + return result; // Mouse button pressed: result = 1 +} + +/* +// Text Box control with multiple lines and word-wrap +// NOTE: This text-box is readonly, no editing supported by default +bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode) +{ + bool pressed = false; + + GuiSetStyle(TEXTBOX, TEXT_READONLY, 1); + GuiSetStyle(DEFAULT, TEXT_WRAP_MODE, TEXT_WRAP_WORD); // WARNING: If wrap mode enabled, text editing is not supported + GuiSetStyle(DEFAULT, TEXT_ALIGNMENT_VERTICAL, TEXT_ALIGN_TOP); + + // TODO: Implement methods to calculate cursor position properly + pressed = GuiTextBox(bounds, text, textSize, editMode); + + GuiSetStyle(DEFAULT, TEXT_ALIGNMENT_VERTICAL, TEXT_ALIGN_MIDDLE); + GuiSetStyle(DEFAULT, TEXT_WRAP_MODE, TEXT_WRAP_NONE); + GuiSetStyle(TEXTBOX, TEXT_READONLY, 0); + + return pressed; +} +*/ + +// Spinner control, returns selected value +int GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) +{ + int result = 1; + GuiState state = guiState; + + int tempValue = *value; + + Rectangle valueBoxBounds = { + bounds.x + GuiGetStyle(VALUEBOX, SPINNER_BUTTON_WIDTH) + GuiGetStyle(VALUEBOX, SPINNER_BUTTON_SPACING), + bounds.y, + bounds.width - 2*(GuiGetStyle(VALUEBOX, SPINNER_BUTTON_WIDTH) + GuiGetStyle(VALUEBOX, SPINNER_BUTTON_SPACING)), bounds.height }; + Rectangle leftButtonBound = { (float)bounds.x, (float)bounds.y, (float)GuiGetStyle(VALUEBOX, SPINNER_BUTTON_WIDTH), (float)bounds.height }; + Rectangle rightButtonBound = { (float)bounds.x + bounds.width - GuiGetStyle(VALUEBOX, SPINNER_BUTTON_WIDTH), (float)bounds.y, + (float)GuiGetStyle(VALUEBOX, SPINNER_BUTTON_WIDTH), (float)bounds.height }; + + Rectangle textBounds = { 0 }; + if (text != NULL) + { + textBounds.width = (float)GuiGetTextWidth(text) + 2; + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + textBounds.x = bounds.x + bounds.width + GuiGetStyle(VALUEBOX, TEXT_PADDING); + textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + if (GuiGetStyle(VALUEBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_LEFT) textBounds.x = bounds.x - textBounds.width - GuiGetStyle(VALUEBOX, TEXT_PADDING); + } + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + // Check spinner state + if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = STATE_PRESSED; + else state = STATE_FOCUSED; + } + } + +#if defined(RAYGUI_NO_ICONS) + if (GuiButton(leftButtonBound, "<")) tempValue--; + if (GuiButton(rightButtonBound, ">")) tempValue++; +#else + if (GuiButton(leftButtonBound, GuiIconText(ICON_ARROW_LEFT_FILL, NULL))) tempValue--; + if (GuiButton(rightButtonBound, GuiIconText(ICON_ARROW_RIGHT_FILL, NULL))) tempValue++; +#endif + + if (!editMode) + { + if (tempValue < minValue) tempValue = minValue; + if (tempValue > maxValue) tempValue = maxValue; + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + result = GuiValueBox(valueBoxBounds, NULL, &tempValue, minValue, maxValue, editMode); + + // Draw value selector custom buttons + // NOTE: BORDER_WIDTH and TEXT_ALIGNMENT forced values + int tempBorderWidth = GuiGetStyle(BUTTON, BORDER_WIDTH); + int tempTextAlign = GuiGetStyle(BUTTON, TEXT_ALIGNMENT); + GuiSetStyle(BUTTON, BORDER_WIDTH, GuiGetStyle(VALUEBOX, BORDER_WIDTH)); + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, tempTextAlign); + GuiSetStyle(BUTTON, BORDER_WIDTH, tempBorderWidth); + + // Draw text label if provided + GuiDrawText(text, textBounds, (GuiGetStyle(VALUEBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_RIGHT)? TEXT_ALIGN_LEFT : TEXT_ALIGN_RIGHT, GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + //-------------------------------------------------------------------- + + *value = tempValue; + return result; +} + +// Value Box control, updates input text with numbers +// NOTE: Requires static variables: frameCounter +int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) +{ + #if !defined(RAYGUI_VALUEBOX_MAX_CHARS) + #define RAYGUI_VALUEBOX_MAX_CHARS 32 + #endif + + int result = 0; + GuiState state = guiState; + + char textValue[RAYGUI_VALUEBOX_MAX_CHARS + 1] = "\0"; + snprintf(textValue, RAYGUI_VALUEBOX_MAX_CHARS + 1, "%i", *value); + + Rectangle textBounds = { 0 }; + if (text != NULL) + { + textBounds.width = (float)GuiGetTextWidth(text) + 2; + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + textBounds.x = bounds.x + bounds.width + GuiGetStyle(VALUEBOX, TEXT_PADDING); + textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + if (GuiGetStyle(VALUEBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_LEFT) textBounds.x = bounds.x - textBounds.width - GuiGetStyle(VALUEBOX, TEXT_PADDING); + } + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + bool valueHasChanged = false; + + if (editMode) + { + state = STATE_PRESSED; + + int keyCount = (int)strlen(textValue); + + // Add or remove minus symbol + if (IsKeyPressed(KEY_MINUS)) + { + if (textValue[0] == '-') + { + for (int i = 0 ; i < keyCount; i++) + { + textValue[i] = textValue[i + 1]; + } + keyCount--; + valueHasChanged = true; + } + else if (keyCount < RAYGUI_VALUEBOX_MAX_CHARS -1) + { + if (keyCount == 0) + { + textValue[0] = '0'; + textValue[1] = '\0'; + keyCount++; + } + + for (int i = keyCount ; i > -1; i--) textValue[i + 1] = textValue[i]; + + textValue[0] = '-'; + keyCount++; + valueHasChanged = true; + } + } + + // Only allow keys in range [48..57] + if (keyCount < RAYGUI_VALUEBOX_MAX_CHARS) + { + if (GuiGetTextWidth(textValue) < bounds.width) + { + int key = GetCharPressed(); + if ((key >= 48) && (key <= 57)) + { + textValue[keyCount] = (char)key; + keyCount++; + valueHasChanged = true; + } + } + } + + // Delete text + if (keyCount > 0) + { + if (IsKeyPressed(KEY_BACKSPACE)) + { + keyCount--; + textValue[keyCount] = '\0'; + valueHasChanged = true; + } + } + + if (valueHasChanged) *value = TextToInteger(textValue); + + // NOTE: We are not clamp values until user input finishes + //if (*value > maxValue) *value = maxValue; + //else if (*value < minValue) *value = minValue; + + if ((IsKeyPressed(KEY_ENTER) || IsKeyPressed(KEY_KP_ENTER)) || (!CheckCollisionPointRec(mousePoint, bounds) && IsMouseButtonPressed(MOUSE_LEFT_BUTTON))) + { + if (*value > maxValue) *value = maxValue; + else if (*value < minValue) *value = minValue; + + result = 1; + } + } + else + { + if (*value > maxValue) *value = maxValue; + else if (*value < minValue) *value = minValue; + + if (CheckCollisionPointRec(mousePoint, bounds)) + { + state = STATE_FOCUSED; + if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) result = 1; + } + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + Color baseColor = BLANK; + if (state == STATE_PRESSED) baseColor = GetColor(GuiGetStyle(VALUEBOX, BASE_COLOR_PRESSED)); + else if (state == STATE_DISABLED) baseColor = GetColor(GuiGetStyle(VALUEBOX, BASE_COLOR_DISABLED)); + + GuiDrawRectangle(bounds, GuiGetStyle(VALUEBOX, BORDER_WIDTH), GetColor(GuiGetStyle(VALUEBOX, BORDER + (state*3))), baseColor); + GuiDrawText(textValue, GetTextBounds(VALUEBOX, bounds), TEXT_ALIGN_CENTER, GetColor(GuiGetStyle(VALUEBOX, TEXT + (state*3)))); + + // Draw cursor rectangle + if (editMode) + { + // NOTE: ValueBox internal text is always centered + Rectangle cursor = { bounds.x + GuiGetTextWidth(textValue)/2 + bounds.width/2 + 1, + bounds.y + GuiGetStyle(TEXTBOX, BORDER_WIDTH) + 2, + 2, bounds.height - GuiGetStyle(TEXTBOX, BORDER_WIDTH)*2 - 4 }; + if (cursor.height > bounds.height) cursor.height = bounds.height - GuiGetStyle(TEXTBOX, BORDER_WIDTH)*2; + GuiDrawRectangle(cursor, 0, BLANK, GetColor(GuiGetStyle(VALUEBOX, BORDER_COLOR_PRESSED))); + } + + // Draw text label if provided + GuiDrawText(text, textBounds, (GuiGetStyle(VALUEBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_RIGHT)? TEXT_ALIGN_LEFT : TEXT_ALIGN_RIGHT, GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + //-------------------------------------------------------------------- + + return result; +} + +// Floating point Value Box control, updates input val_str with numbers +// NOTE: Requires static variables: frameCounter +int GuiValueBoxFloat(Rectangle bounds, const char *text, char *textValue, float *value, bool editMode) +{ + #if !defined(RAYGUI_VALUEBOX_MAX_CHARS) + #define RAYGUI_VALUEBOX_MAX_CHARS 32 + #endif + + int result = 0; + GuiState state = guiState; + + //char textValue[RAYGUI_VALUEBOX_MAX_CHARS + 1] = "\0"; + //snprintf(textValue, sizeof(textValue), "%2.2f", *value); + + Rectangle textBounds = {0}; + if (text != NULL) + { + textBounds.width = (float)GuiGetTextWidth(text) + 2; + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + textBounds.x = bounds.x + bounds.width + GuiGetStyle(VALUEBOX, TEXT_PADDING); + textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + if (GuiGetStyle(VALUEBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_LEFT) textBounds.x = bounds.x - textBounds.width - GuiGetStyle(VALUEBOX, TEXT_PADDING); + } + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + bool valueHasChanged = false; + + if (editMode) + { + state = STATE_PRESSED; + + int keyCount = (int)strlen(textValue); + + // Add or remove minus symbol + if (IsKeyPressed(KEY_MINUS)) + { + if (textValue[0] == '-') + { + for (int i = 0; i < keyCount; i++) + { + textValue[i] = textValue[i + 1]; + } + keyCount--; + valueHasChanged = true; + } + else if (keyCount < RAYGUI_VALUEBOX_MAX_CHARS - 1) { + if (keyCount == 0) { + textValue[0] = '0'; + textValue[1] = '\0'; + keyCount++; + } + for (int i = keyCount; i > -1; i--) + { + textValue[i + 1] = textValue[i]; + } + textValue[0] = '-'; + keyCount++; + valueHasChanged = true; + } + } + + // Only allow keys in range [48..57] + if (keyCount < RAYGUI_VALUEBOX_MAX_CHARS) + { + if (GuiGetTextWidth(textValue) < bounds.width) + { + int key = GetCharPressed(); + if (((key >= 48) && (key <= 57)) || + (key == '.') || + ((keyCount == 0) && (key == '+')) || // NOTE: Sign can only be in first position + ((keyCount == 0) && (key == '-'))) + { + textValue[keyCount] = (char)key; + keyCount++; + + valueHasChanged = true; + } + } + } + + // Pressed backspace + if (IsKeyPressed(KEY_BACKSPACE)) + { + if (keyCount > 0) + { + keyCount--; + textValue[keyCount] = '\0'; + valueHasChanged = true; + } + } + + if (valueHasChanged) *value = TextToFloat(textValue); + + if ((IsKeyPressed(KEY_ENTER) || IsKeyPressed(KEY_KP_ENTER)) || (!CheckCollisionPointRec(mousePoint, bounds) && IsMouseButtonPressed(MOUSE_LEFT_BUTTON))) result = 1; + } + else + { + if (CheckCollisionPointRec(mousePoint, bounds)) + { + state = STATE_FOCUSED; + if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) result = 1; + } + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + Color baseColor = BLANK; + if (state == STATE_PRESSED) baseColor = GetColor(GuiGetStyle(VALUEBOX, BASE_COLOR_PRESSED)); + else if (state == STATE_DISABLED) baseColor = GetColor(GuiGetStyle(VALUEBOX, BASE_COLOR_DISABLED)); + + GuiDrawRectangle(bounds, GuiGetStyle(VALUEBOX, BORDER_WIDTH), GetColor(GuiGetStyle(VALUEBOX, BORDER + (state*3))), baseColor); + GuiDrawText(textValue, GetTextBounds(VALUEBOX, bounds), TEXT_ALIGN_CENTER, GetColor(GuiGetStyle(VALUEBOX, TEXT + (state*3)))); + + // Draw cursor + if (editMode) + { + // NOTE: ValueBox internal text is always centered + Rectangle cursor = {bounds.x + GuiGetTextWidth(textValue)/2 + bounds.width/2 + 1, + bounds.y + 2*GuiGetStyle(VALUEBOX, BORDER_WIDTH), 4, + bounds.height - 4*GuiGetStyle(VALUEBOX, BORDER_WIDTH)}; + GuiDrawRectangle(cursor, 0, BLANK, GetColor(GuiGetStyle(VALUEBOX, BORDER_COLOR_PRESSED))); + } + + // Draw text label if provided + GuiDrawText(text, textBounds, + (GuiGetStyle(VALUEBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_RIGHT)? TEXT_ALIGN_LEFT : TEXT_ALIGN_RIGHT, + GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + //-------------------------------------------------------------------- + + return result; +} + +// Slider control with pro parameters +// NOTE: Other GuiSlider*() controls use this one +int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) +{ + int result = 0; + GuiState state = guiState; + + float temp = (maxValue - minValue)/2.0f; + if (value == NULL) value = &temp; + float oldValue = *value; + + int sliderWidth = GuiGetStyle(SLIDER, SLIDER_WIDTH); + + Rectangle slider = { bounds.x, bounds.y + GuiGetStyle(SLIDER, BORDER_WIDTH) + GuiGetStyle(SLIDER, SLIDER_PADDING), + 0, bounds.height - 2*GuiGetStyle(SLIDER, BORDER_WIDTH) - 2*GuiGetStyle(SLIDER, SLIDER_PADDING) }; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked) + { + Vector2 mousePoint = GetMousePosition(); + + if (guiControlExclusiveMode) // Allows to keep dragging outside of bounds + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) + { + if (CHECK_BOUNDS_ID(bounds, guiControlExclusiveRec)) + { + state = STATE_PRESSED; + // Get equivalent value and slider position from mousePosition.x + *value = (maxValue - minValue)*((mousePoint.x - bounds.x - sliderWidth/2)/(bounds.width - sliderWidth)) + minValue; + } + } + else + { + guiControlExclusiveMode = false; + guiControlExclusiveRec = RAYGUI_CLITERAL(Rectangle){ 0, 0, 0, 0 }; + } + } + else if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) + { + state = STATE_PRESSED; + guiControlExclusiveMode = true; + guiControlExclusiveRec = bounds; // Store bounds as an identifier when dragging starts + + if (!CheckCollisionPointRec(mousePoint, slider)) + { + // Get equivalent value and slider position from mousePosition.x + *value = (maxValue - minValue)*((mousePoint.x - bounds.x - sliderWidth/2)/(bounds.width - sliderWidth)) + minValue; + } + } + else state = STATE_FOCUSED; + } + + if (*value > maxValue) *value = maxValue; + else if (*value < minValue) *value = minValue; + } + + // Control value change check + if (oldValue == *value) result = 0; + else result = 1; + + // Slider bar limits check + float sliderValue = (((*value - minValue)/(maxValue - minValue))*(bounds.width - sliderWidth - 2*GuiGetStyle(SLIDER, BORDER_WIDTH))); + if (sliderWidth > 0) // Slider + { + slider.x += sliderValue; + slider.width = (float)sliderWidth; + if (slider.x <= (bounds.x + GuiGetStyle(SLIDER, BORDER_WIDTH))) slider.x = bounds.x + GuiGetStyle(SLIDER, BORDER_WIDTH); + else if ((slider.x + slider.width) >= (bounds.x + bounds.width)) slider.x = bounds.x + bounds.width - slider.width - GuiGetStyle(SLIDER, BORDER_WIDTH); + } + else if (sliderWidth == 0) // SliderBar + { + slider.x += GuiGetStyle(SLIDER, BORDER_WIDTH); + slider.width = sliderValue; + if (slider.width > bounds.width) slider.width = bounds.width - 2*GuiGetStyle(SLIDER, BORDER_WIDTH); + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiDrawRectangle(bounds, GuiGetStyle(SLIDER, BORDER_WIDTH), GetColor(GuiGetStyle(SLIDER, BORDER + (state*3))), GetColor(GuiGetStyle(SLIDER, (state != STATE_DISABLED)? BASE_COLOR_NORMAL : BASE_COLOR_DISABLED))); + + // Draw slider internal bar (depends on state) + if (state == STATE_NORMAL) GuiDrawRectangle(slider, 0, BLANK, GetColor(GuiGetStyle(SLIDER, BASE_COLOR_PRESSED))); + else if (state == STATE_FOCUSED) GuiDrawRectangle(slider, 0, BLANK, GetColor(GuiGetStyle(SLIDER, TEXT_COLOR_FOCUSED))); + else if (state == STATE_PRESSED) GuiDrawRectangle(slider, 0, BLANK, GetColor(GuiGetStyle(SLIDER, TEXT_COLOR_PRESSED))); + else if (state == STATE_DISABLED) GuiDrawRectangle(slider, 0, BLANK, GetColor(GuiGetStyle(SLIDER, TEXT_COLOR_DISABLED))); + + // Draw left/right text if provided + if (textLeft != NULL) + { + Rectangle textBounds = { 0 }; + textBounds.width = (float)GuiGetTextWidth(textLeft); + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + textBounds.x = bounds.x - textBounds.width - GuiGetStyle(SLIDER, TEXT_PADDING); + textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + + GuiDrawText(textLeft, textBounds, TEXT_ALIGN_RIGHT, GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + } + + if (textRight != NULL) + { + Rectangle textBounds = { 0 }; + textBounds.width = (float)GuiGetTextWidth(textRight); + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + textBounds.x = bounds.x + bounds.width + GuiGetStyle(SLIDER, TEXT_PADDING); + textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + + GuiDrawText(textRight, textBounds, TEXT_ALIGN_LEFT, GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + } + //-------------------------------------------------------------------- + + return result; +} + +// Slider Bar control extended, returns selected value +int GuiSliderBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) +{ + int result = 0; + int preSliderWidth = GuiGetStyle(SLIDER, SLIDER_WIDTH); + GuiSetStyle(SLIDER, SLIDER_WIDTH, 0); + result = GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue); + GuiSetStyle(SLIDER, SLIDER_WIDTH, preSliderWidth); + + return result; +} + +// Progress Bar control extended, shows current progress value +int GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) +{ + int result = 0; + GuiState state = guiState; + + float temp = (maxValue - minValue)/2.0f; + if (value == NULL) value = &temp; + + // Progress bar + Rectangle progress = { bounds.x + GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), + bounds.y + GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) + GuiGetStyle(PROGRESSBAR, PROGRESS_PADDING), 0, + bounds.height - GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) - 2*GuiGetStyle(PROGRESSBAR, PROGRESS_PADDING) -1 }; + + // Update control + //-------------------------------------------------------------------- + if (*value > maxValue) *value = maxValue; + + // WARNING: Working with floats could lead to rounding issues + if ((state != STATE_DISABLED)) progress.width = ((float)*value/(maxValue - minValue))*(bounds.width - 2*GuiGetStyle(PROGRESSBAR, BORDER_WIDTH)); + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + if (state == STATE_DISABLED) + { + GuiDrawRectangle(bounds, GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), GetColor(GuiGetStyle(PROGRESSBAR, BORDER + (state*3))), BLANK); + } + else + { + if (*value > minValue) + { + // Draw progress bar with colored border, more visual + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y, (int)progress.width + (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) }, 0, BLANK, GetColor(GuiGetStyle(PROGRESSBAR, BORDER_COLOR_FOCUSED))); + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y + 1, (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), bounds.height - 2 }, 0, BLANK, GetColor(GuiGetStyle(PROGRESSBAR, BORDER_COLOR_FOCUSED))); + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y + bounds.height - 1, (int)progress.width + (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) }, 0, BLANK, GetColor(GuiGetStyle(PROGRESSBAR, BORDER_COLOR_FOCUSED))); + } + else GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y, (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), bounds.height+GuiGetStyle(PROGRESSBAR, BORDER_WIDTH)-1 }, 0, BLANK, GetColor(GuiGetStyle(PROGRESSBAR, BORDER_COLOR_NORMAL))); + + if (*value >= maxValue) GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x + progress.width + (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), bounds.y, (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), bounds.height+GuiGetStyle(PROGRESSBAR, BORDER_WIDTH)-1}, 0, BLANK, GetColor(GuiGetStyle(PROGRESSBAR, BORDER_COLOR_FOCUSED))); + else + { + // Draw borders not yet reached by value + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x + (int)progress.width + (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), bounds.y, bounds.width - (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) - (int)progress.width - 1, (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) }, 0, BLANK, GetColor(GuiGetStyle(PROGRESSBAR, BORDER_COLOR_NORMAL))); + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x + (int)progress.width + (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), bounds.y + bounds.height - 1, bounds.width - (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) - (int)progress.width - 1, (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) }, 0, BLANK, GetColor(GuiGetStyle(PROGRESSBAR, BORDER_COLOR_NORMAL))); + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x + bounds.width - (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), bounds.y, (float)GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), bounds.height+GuiGetStyle(PROGRESSBAR, BORDER_WIDTH)-1 }, 0, BLANK, GetColor(GuiGetStyle(PROGRESSBAR, BORDER_COLOR_NORMAL))); + } + + // Draw slider internal progress bar (depends on state) + GuiDrawRectangle(progress, 0, BLANK, GetColor(GuiGetStyle(PROGRESSBAR, BASE_COLOR_PRESSED))); + } + + // Draw left/right text if provided + if (textLeft != NULL) + { + Rectangle textBounds = { 0 }; + textBounds.width = (float)GuiGetTextWidth(textLeft); + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + textBounds.x = bounds.x - textBounds.width - GuiGetStyle(PROGRESSBAR, TEXT_PADDING); + textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + + GuiDrawText(textLeft, textBounds, TEXT_ALIGN_RIGHT, GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + } + + if (textRight != NULL) + { + Rectangle textBounds = { 0 }; + textBounds.width = (float)GuiGetTextWidth(textRight); + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + textBounds.x = bounds.x + bounds.width + GuiGetStyle(PROGRESSBAR, TEXT_PADDING); + textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + + GuiDrawText(textRight, textBounds, TEXT_ALIGN_LEFT, GetColor(GuiGetStyle(LABEL, TEXT + (state*3)))); + } + //-------------------------------------------------------------------- + + return result; +} + +// Status Bar control +int GuiStatusBar(Rectangle bounds, const char *text) +{ + int result = 0; + GuiState state = guiState; + + // Draw control + //-------------------------------------------------------------------- + GuiDrawRectangle(bounds, GuiGetStyle(STATUSBAR, BORDER_WIDTH), GetColor(GuiGetStyle(STATUSBAR, BORDER + (state*3))), GetColor(GuiGetStyle(STATUSBAR, BASE + (state*3)))); + GuiDrawText(text, GetTextBounds(STATUSBAR, bounds), GuiGetStyle(STATUSBAR, TEXT_ALIGNMENT), GetColor(GuiGetStyle(STATUSBAR, TEXT + (state*3)))); + //-------------------------------------------------------------------- + + return result; +} + +// Dummy rectangle control, intended for placeholding +int GuiDummyRec(Rectangle bounds, const char *text) +{ + int result = 0; + GuiState state = guiState; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + // Check button state + if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = STATE_PRESSED; + else state = STATE_FOCUSED; + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiDrawRectangle(bounds, 0, BLANK, GetColor(GuiGetStyle(DEFAULT, (state != STATE_DISABLED)? BASE_COLOR_NORMAL : BASE_COLOR_DISABLED))); + GuiDrawText(text, GetTextBounds(DEFAULT, bounds), TEXT_ALIGN_CENTER, GetColor(GuiGetStyle(BUTTON, (state != STATE_DISABLED)? TEXT_COLOR_NORMAL : TEXT_COLOR_DISABLED))); + //------------------------------------------------------------------ + + return result; +} + +// List View control +int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *active) +{ + int result = 0; + int itemCount = 0; + const char **items = NULL; + + if (text != NULL) items = GuiTextSplit(text, ';', &itemCount, NULL); + + result = GuiListViewEx(bounds, items, itemCount, scrollIndex, active, NULL); + + return result; +} + +// List View control with extended parameters +int GuiListViewEx(Rectangle bounds, const char **text, int count, int *scrollIndex, int *active, int *focus) +{ + int result = 0; + GuiState state = guiState; + + int itemFocused = (focus == NULL)? -1 : *focus; + int itemSelected = (active == NULL)? -1 : *active; + + // Check if we need a scroll bar + bool useScrollBar = false; + if ((GuiGetStyle(LISTVIEW, LIST_ITEMS_HEIGHT) + GuiGetStyle(LISTVIEW, LIST_ITEMS_SPACING))*count > bounds.height) useScrollBar = true; + + // Define base item rectangle [0] + Rectangle itemBounds = { 0 }; + itemBounds.x = bounds.x + GuiGetStyle(LISTVIEW, LIST_ITEMS_SPACING); + itemBounds.y = bounds.y + GuiGetStyle(LISTVIEW, LIST_ITEMS_SPACING) + GuiGetStyle(DEFAULT, BORDER_WIDTH); + itemBounds.width = bounds.width - 2*GuiGetStyle(LISTVIEW, LIST_ITEMS_SPACING) - GuiGetStyle(DEFAULT, BORDER_WIDTH); + itemBounds.height = (float)GuiGetStyle(LISTVIEW, LIST_ITEMS_HEIGHT); + if (useScrollBar) itemBounds.width -= GuiGetStyle(LISTVIEW, SCROLLBAR_WIDTH); + + // Get items on the list + int visibleItems = (int)bounds.height/(GuiGetStyle(LISTVIEW, LIST_ITEMS_HEIGHT) + GuiGetStyle(LISTVIEW, LIST_ITEMS_SPACING)); + if (visibleItems > count) visibleItems = count; + + int startIndex = (scrollIndex == NULL)? 0 : *scrollIndex; + if ((startIndex < 0) || (startIndex > (count - visibleItems))) startIndex = 0; + int endIndex = startIndex + visibleItems; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + Vector2 mousePoint = GetMousePosition(); + + // Check mouse inside list view + if (CheckCollisionPointRec(mousePoint, bounds)) + { + state = STATE_FOCUSED; + + // Check focused and selected item + for (int i = 0; i < visibleItems; i++) + { + if (CheckCollisionPointRec(mousePoint, itemBounds)) + { + itemFocused = startIndex + i; + if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) + { + if (itemSelected == (startIndex + i)) itemSelected = -1; + else itemSelected = startIndex + i; + } + break; + } + + // Update item rectangle y position for next item + itemBounds.y += (GuiGetStyle(LISTVIEW, LIST_ITEMS_HEIGHT) + GuiGetStyle(LISTVIEW, LIST_ITEMS_SPACING)); + } + + if (useScrollBar) + { + int wheelMove = (int)GetMouseWheelMove(); + startIndex -= wheelMove; + + if (startIndex < 0) startIndex = 0; + else if (startIndex > (count - visibleItems)) startIndex = count - visibleItems; + + endIndex = startIndex + visibleItems; + if (endIndex > count) endIndex = count; + } + } + else itemFocused = -1; + + // Reset item rectangle y to [0] + itemBounds.y = bounds.y + GuiGetStyle(LISTVIEW, LIST_ITEMS_SPACING) + GuiGetStyle(DEFAULT, BORDER_WIDTH); + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiDrawRectangle(bounds, GuiGetStyle(LISTVIEW, BORDER_WIDTH), GetColor(GuiGetStyle(LISTVIEW, BORDER + state*3)), GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR))); // Draw background + + // Draw visible items + for (int i = 0; ((i < visibleItems) && (text != NULL)); i++) + { + if (GuiGetStyle(LISTVIEW, LIST_ITEMS_BORDER_NORMAL)) GuiDrawRectangle(itemBounds, GuiGetStyle(LISTVIEW, LIST_ITEMS_BORDER_WIDTH), GetColor(GuiGetStyle(LISTVIEW, BORDER_COLOR_NORMAL)), BLANK); + + if (state == STATE_DISABLED) + { + if ((startIndex + i) == itemSelected) GuiDrawRectangle(itemBounds, GuiGetStyle(LISTVIEW, LIST_ITEMS_BORDER_WIDTH), GetColor(GuiGetStyle(LISTVIEW, BORDER_COLOR_DISABLED)), GetColor(GuiGetStyle(LISTVIEW, BASE_COLOR_DISABLED))); + + GuiDrawText(text[startIndex + i], GetTextBounds(DEFAULT, itemBounds), GuiGetStyle(LISTVIEW, TEXT_ALIGNMENT), GetColor(GuiGetStyle(LISTVIEW, TEXT_COLOR_DISABLED))); + } + else + { + if (((startIndex + i) == itemSelected) && (active != NULL)) + { + // Draw item selected + GuiDrawRectangle(itemBounds, GuiGetStyle(LISTVIEW, LIST_ITEMS_BORDER_WIDTH), GetColor(GuiGetStyle(LISTVIEW, BORDER_COLOR_PRESSED)), GetColor(GuiGetStyle(LISTVIEW, BASE_COLOR_PRESSED))); + GuiDrawText(text[startIndex + i], GetTextBounds(DEFAULT, itemBounds), GuiGetStyle(LISTVIEW, TEXT_ALIGNMENT), GetColor(GuiGetStyle(LISTVIEW, TEXT_COLOR_PRESSED))); + } + else if (((startIndex + i) == itemFocused)) // && (focus != NULL)) // NOTE: We want items focused, despite not returned! + { + // Draw item focused + GuiDrawRectangle(itemBounds, GuiGetStyle(LISTVIEW, LIST_ITEMS_BORDER_WIDTH), GetColor(GuiGetStyle(LISTVIEW, BORDER_COLOR_FOCUSED)), GetColor(GuiGetStyle(LISTVIEW, BASE_COLOR_FOCUSED))); + GuiDrawText(text[startIndex + i], GetTextBounds(DEFAULT, itemBounds), GuiGetStyle(LISTVIEW, TEXT_ALIGNMENT), GetColor(GuiGetStyle(LISTVIEW, TEXT_COLOR_FOCUSED))); + } + else + { + // Draw item normal (no rectangle) + GuiDrawText(text[startIndex + i], GetTextBounds(DEFAULT, itemBounds), GuiGetStyle(LISTVIEW, TEXT_ALIGNMENT), GetColor(GuiGetStyle(LISTVIEW, TEXT_COLOR_NORMAL))); + } + } + + // Update item rectangle y position for next item + itemBounds.y += (GuiGetStyle(LISTVIEW, LIST_ITEMS_HEIGHT) + GuiGetStyle(LISTVIEW, LIST_ITEMS_SPACING)); + } + + if (useScrollBar) + { + Rectangle scrollBarBounds = { + bounds.x + bounds.width - GuiGetStyle(LISTVIEW, BORDER_WIDTH) - GuiGetStyle(LISTVIEW, SCROLLBAR_WIDTH), + bounds.y + GuiGetStyle(LISTVIEW, BORDER_WIDTH), (float)GuiGetStyle(LISTVIEW, SCROLLBAR_WIDTH), + bounds.height - 2*GuiGetStyle(DEFAULT, BORDER_WIDTH) + }; + + // Calculate percentage of visible items and apply same percentage to scrollbar + float percentVisible = (float)(endIndex - startIndex)/count; + float sliderSize = bounds.height*percentVisible; + + int prevSliderSize = GuiGetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE); // Save default slider size + int prevScrollSpeed = GuiGetStyle(SCROLLBAR, SCROLL_SPEED); // Save default scroll speed + GuiSetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE, (int)sliderSize); // Change slider size + GuiSetStyle(SCROLLBAR, SCROLL_SPEED, count - visibleItems); // Change scroll speed + + startIndex = GuiScrollBar(scrollBarBounds, startIndex, 0, count - visibleItems); + + GuiSetStyle(SCROLLBAR, SCROLL_SPEED, prevScrollSpeed); // Reset scroll speed to default + GuiSetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE, prevSliderSize); // Reset slider size to default + } + //-------------------------------------------------------------------- + + if (active != NULL) *active = itemSelected; + if (focus != NULL) *focus = itemFocused; + if (scrollIndex != NULL) *scrollIndex = startIndex; + + return result; +} + +// Color Panel control - Color (RGBA) variant +int GuiColorPanel(Rectangle bounds, const char *text, Color *color) +{ + int result = 0; + + Vector3 vcolor = { (float)color->r/255.0f, (float)color->g/255.0f, (float)color->b/255.0f }; + Vector3 hsv = ConvertRGBtoHSV(vcolor); + Vector3 prevHsv = hsv; // workaround to see if GuiColorPanelHSV modifies the hsv + + GuiColorPanelHSV(bounds, text, &hsv); + + // Check if the hsv was changed, only then change the color + // This is required, because the Color->HSV->Color conversion has precision errors + // Thus the assignment from HSV to Color should only be made, if the HSV has a new user-entered value + // Otherwise GuiColorPanel would often modify it's color without user input + // TODO: GuiColorPanelHSV could return 1 if the slider was dragged, to simplify this check + if (hsv.x != prevHsv.x || hsv.y != prevHsv.y || hsv.z != prevHsv.z) + { + Vector3 rgb = ConvertHSVtoRGB(hsv); + + // NOTE: Vector3ToColor() only available on raylib 1.8.1 + *color = RAYGUI_CLITERAL(Color){ (unsigned char)(255.0f*rgb.x), + (unsigned char)(255.0f*rgb.y), + (unsigned char)(255.0f*rgb.z), + color->a }; + } + return result; +} + +// Color Bar Alpha control +// NOTE: Returns alpha value normalized [0..1] +int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha) +{ + #if !defined(RAYGUI_COLORBARALPHA_CHECKED_SIZE) + #define RAYGUI_COLORBARALPHA_CHECKED_SIZE 10 + #endif + + int result = 0; + GuiState state = guiState; + Rectangle selector = { (float)bounds.x + (*alpha)*bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT)/2, + (float)bounds.y - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), + (float)GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT), + (float)bounds.height + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)*2 }; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked) + { + Vector2 mousePoint = GetMousePosition(); + + if (guiControlExclusiveMode) // Allows to keep dragging outside of bounds + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) + { + if (CHECK_BOUNDS_ID(bounds, guiControlExclusiveRec)) + { + state = STATE_PRESSED; + + *alpha = (mousePoint.x - bounds.x)/bounds.width; + if (*alpha <= 0.0f) *alpha = 0.0f; + if (*alpha >= 1.0f) *alpha = 1.0f; + } + } + else + { + guiControlExclusiveMode = false; + guiControlExclusiveRec = RAYGUI_CLITERAL(Rectangle){ 0, 0, 0, 0 }; + } + } + else if (CheckCollisionPointRec(mousePoint, bounds) || CheckCollisionPointRec(mousePoint, selector)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) + { + state = STATE_PRESSED; + guiControlExclusiveMode = true; + guiControlExclusiveRec = bounds; // Store bounds as an identifier when dragging starts + + *alpha = (mousePoint.x - bounds.x)/bounds.width; + if (*alpha <= 0.0f) *alpha = 0.0f; + if (*alpha >= 1.0f) *alpha = 1.0f; + //selector.x = bounds.x + (int)(((alpha - 0)/(100 - 0))*(bounds.width - 2*GuiGetStyle(SLIDER, BORDER_WIDTH))) - selector.width/2; + } + else state = STATE_FOCUSED; + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + // Draw alpha bar: checked background + if (state != STATE_DISABLED) + { + int checksX = (int)bounds.width/RAYGUI_COLORBARALPHA_CHECKED_SIZE; + int checksY = (int)bounds.height/RAYGUI_COLORBARALPHA_CHECKED_SIZE; + + for (int x = 0; x < checksX; x++) + { + for (int y = 0; y < checksY; y++) + { + Rectangle check = { bounds.x + x*RAYGUI_COLORBARALPHA_CHECKED_SIZE, bounds.y + y*RAYGUI_COLORBARALPHA_CHECKED_SIZE, RAYGUI_COLORBARALPHA_CHECKED_SIZE, RAYGUI_COLORBARALPHA_CHECKED_SIZE }; + GuiDrawRectangle(check, 0, BLANK, ((x + y)%2)? Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER_COLOR_DISABLED)), 0.4f) : Fade(GetColor(GuiGetStyle(COLORPICKER, BASE_COLOR_DISABLED)), 0.4f)); + } + } + + DrawRectangleGradientEx(bounds, RAYGUI_CLITERAL(Color){ 255, 255, 255, 0 }, RAYGUI_CLITERAL(Color){ 255, 255, 255, 0 }, Fade(RAYGUI_CLITERAL(Color){ 0, 0, 0, 255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 0, 0, 0, 255 }, guiAlpha)); + } + else DrawRectangleGradientEx(bounds, Fade(GetColor(GuiGetStyle(COLORPICKER, BASE_COLOR_DISABLED)), 0.1f), Fade(GetColor(GuiGetStyle(COLORPICKER, BASE_COLOR_DISABLED)), 0.1f), Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER_COLOR_DISABLED)), guiAlpha), Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER_COLOR_DISABLED)), guiAlpha)); + + GuiDrawRectangle(bounds, GuiGetStyle(COLORPICKER, BORDER_WIDTH), GetColor(GuiGetStyle(COLORPICKER, BORDER + state*3)), BLANK); + + // Draw alpha bar: selector + GuiDrawRectangle(selector, 0, BLANK, GetColor(GuiGetStyle(COLORPICKER, BORDER + state*3))); + //-------------------------------------------------------------------- + + return result; +} + +// Color Bar Hue control +// Returns hue value normalized [0..1] +// NOTE: Other similar bars (for reference): +// Color GuiColorBarSat() [WHITE->color] +// Color GuiColorBarValue() [BLACK->color], HSV/HSL +// float GuiColorBarLuminance() [BLACK->WHITE] +int GuiColorBarHue(Rectangle bounds, const char *text, float *hue) +{ + int result = 0; + GuiState state = guiState; + Rectangle selector = { (float)bounds.x - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (float)bounds.y + (*hue)/360.0f*bounds.height - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT)/2, (float)bounds.width + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)*2, (float)GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT) }; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked) + { + Vector2 mousePoint = GetMousePosition(); + + if (guiControlExclusiveMode) // Allows to keep dragging outside of bounds + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) + { + if (CHECK_BOUNDS_ID(bounds, guiControlExclusiveRec)) + { + state = STATE_PRESSED; + + *hue = (mousePoint.y - bounds.y)*360/bounds.height; + if (*hue <= 0.0f) *hue = 0.0f; + if (*hue >= 359.0f) *hue = 359.0f; + } + } + else + { + guiControlExclusiveMode = false; + guiControlExclusiveRec = RAYGUI_CLITERAL(Rectangle){ 0, 0, 0, 0 }; + } + } + else if (CheckCollisionPointRec(mousePoint, bounds) || CheckCollisionPointRec(mousePoint, selector)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) + { + state = STATE_PRESSED; + guiControlExclusiveMode = true; + guiControlExclusiveRec = bounds; // Store bounds as an identifier when dragging starts + + *hue = (mousePoint.y - bounds.y)*360/bounds.height; + if (*hue <= 0.0f) *hue = 0.0f; + if (*hue >= 359.0f) *hue = 359.0f; + + } + else state = STATE_FOCUSED; + + /*if (IsKeyDown(KEY_UP)) + { + hue -= 2.0f; + if (hue <= 0.0f) hue = 0.0f; + } + else if (IsKeyDown(KEY_DOWN)) + { + hue += 2.0f; + if (hue >= 360.0f) hue = 360.0f; + }*/ + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + if (state != STATE_DISABLED) + { + // Draw hue bar:color bars + // TODO: Use directly DrawRectangleGradientEx(bounds, color1, color2, color2, color1); + DrawRectangleGradientV((int)bounds.x, (int)(bounds.y), (int)bounds.width, (int)ceilf(bounds.height/6), Fade(RAYGUI_CLITERAL(Color){ 255, 0, 0, 255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 255, 255, 0, 255 }, guiAlpha)); + DrawRectangleGradientV((int)bounds.x, (int)(bounds.y + bounds.height/6), (int)bounds.width, (int)ceilf(bounds.height/6), Fade(RAYGUI_CLITERAL(Color){ 255, 255, 0, 255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 0, 255, 0, 255 }, guiAlpha)); + DrawRectangleGradientV((int)bounds.x, (int)(bounds.y + 2*(bounds.height/6)), (int)bounds.width, (int)ceilf(bounds.height/6), Fade(RAYGUI_CLITERAL(Color){ 0, 255, 0, 255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 0, 255, 255, 255 }, guiAlpha)); + DrawRectangleGradientV((int)bounds.x, (int)(bounds.y + 3*(bounds.height/6)), (int)bounds.width, (int)ceilf(bounds.height/6), Fade(RAYGUI_CLITERAL(Color){ 0, 255, 255, 255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 0, 0, 255, 255 }, guiAlpha)); + DrawRectangleGradientV((int)bounds.x, (int)(bounds.y + 4*(bounds.height/6)), (int)bounds.width, (int)ceilf(bounds.height/6), Fade(RAYGUI_CLITERAL(Color){ 0, 0, 255, 255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 255, 0, 255, 255 }, guiAlpha)); + DrawRectangleGradientV((int)bounds.x, (int)(bounds.y + 5*(bounds.height/6)), (int)bounds.width, (int)(bounds.height/6), Fade(RAYGUI_CLITERAL(Color){ 255, 0, 255, 255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 255, 0, 0, 255 }, guiAlpha)); + } + else DrawRectangleGradientV((int)bounds.x, (int)bounds.y, (int)bounds.width, (int)bounds.height, Fade(Fade(GetColor(GuiGetStyle(COLORPICKER, BASE_COLOR_DISABLED)), 0.1f), guiAlpha), Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER_COLOR_DISABLED)), guiAlpha)); + + GuiDrawRectangle(bounds, GuiGetStyle(COLORPICKER, BORDER_WIDTH), GetColor(GuiGetStyle(COLORPICKER, BORDER + state*3)), BLANK); + + // Draw hue bar: selector + GuiDrawRectangle(selector, 0, BLANK, GetColor(GuiGetStyle(COLORPICKER, BORDER + state*3))); + //-------------------------------------------------------------------- + + return result; +} + +// Color Picker control +// NOTE: It's divided in multiple controls: +// Color GuiColorPanel(Rectangle bounds, Color color) +// float GuiColorBarAlpha(Rectangle bounds, float alpha) +// float GuiColorBarHue(Rectangle bounds, float value) +// NOTE: bounds define GuiColorPanel() size +// NOTE: this picker converts RGB to HSV, which can cause the Hue control to jump. If you have this problem, consider using the HSV variant instead +int GuiColorPicker(Rectangle bounds, const char *text, Color *color) +{ + int result = 0; + + Color temp = { 200, 0, 0, 255 }; + if (color == NULL) color = &temp; + + GuiColorPanel(bounds, NULL, color); + + Rectangle boundsHue = { (float)bounds.x + bounds.width + GuiGetStyle(COLORPICKER, HUEBAR_PADDING), (float)bounds.y, (float)GuiGetStyle(COLORPICKER, HUEBAR_WIDTH), (float)bounds.height }; + //Rectangle boundsAlpha = { bounds.x, bounds.y + bounds.height + GuiGetStyle(COLORPICKER, BARS_PADDING), bounds.width, GuiGetStyle(COLORPICKER, BARS_THICK) }; + + // NOTE: this conversion can cause low hue-resolution, if the r, g and b value are very similar, which causes the hue bar to shift around when only the GuiColorPanel is used + Vector3 hsv = ConvertRGBtoHSV(RAYGUI_CLITERAL(Vector3){ (*color).r/255.0f, (*color).g/255.0f, (*color).b/255.0f }); + + GuiColorBarHue(boundsHue, NULL, &hsv.x); + + //color.a = (unsigned char)(GuiColorBarAlpha(boundsAlpha, (float)color.a/255.0f)*255.0f); + Vector3 rgb = ConvertHSVtoRGB(hsv); + + *color = RAYGUI_CLITERAL(Color){ (unsigned char)roundf(rgb.x*255.0f), (unsigned char)roundf(rgb.y*255.0f), (unsigned char)roundf(rgb.z*255.0f), (*color).a }; + + return result; +} + +// Color Picker control that avoids conversion to RGB and back to HSV on each call, thus avoiding jittering +// The user can call ConvertHSVtoRGB() to convert *colorHsv value to RGB +// NOTE: It's divided in multiple controls: +// int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) +// int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha) +// float GuiColorBarHue(Rectangle bounds, float value) +// NOTE: bounds define GuiColorPanelHSV() size +int GuiColorPickerHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) +{ + int result = 0; + + Vector3 tempHsv = { 0 }; + + if (colorHsv == NULL) + { + const Vector3 tempColor = { 200.0f/255.0f, 0.0f, 0.0f }; + tempHsv = ConvertRGBtoHSV(tempColor); + colorHsv = &tempHsv; + } + + GuiColorPanelHSV(bounds, NULL, colorHsv); + + const Rectangle boundsHue = { (float)bounds.x + bounds.width + GuiGetStyle(COLORPICKER, HUEBAR_PADDING), (float)bounds.y, (float)GuiGetStyle(COLORPICKER, HUEBAR_WIDTH), (float)bounds.height }; + + GuiColorBarHue(boundsHue, NULL, &colorHsv->x); + + return result; +} + +// Color Panel control - HSV variant +int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) +{ + int result = 0; + GuiState state = guiState; + Vector2 pickerSelector = { 0 }; + + const Color colWhite = { 255, 255, 255, 255 }; + const Color colBlack = { 0, 0, 0, 255 }; + + pickerSelector.x = bounds.x + (float)colorHsv->y*bounds.width; // HSV: Saturation + pickerSelector.y = bounds.y + (1.0f - (float)colorHsv->z)*bounds.height; // HSV: Value + + Vector3 maxHue = { colorHsv->x, 1.0f, 1.0f }; + Vector3 rgbHue = ConvertHSVtoRGB(maxHue); + Color maxHueCol = { (unsigned char)(255.0f*rgbHue.x), + (unsigned char)(255.0f*rgbHue.y), + (unsigned char)(255.0f*rgbHue.z), 255 }; + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked) + { + Vector2 mousePoint = GetMousePosition(); + + if (guiControlExclusiveMode) // Allows to keep dragging outside of bounds + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) + { + if (CHECK_BOUNDS_ID(bounds, guiControlExclusiveRec)) + { + pickerSelector = mousePoint; + + if (pickerSelector.x < bounds.x) pickerSelector.x = bounds.x; + if (pickerSelector.x > bounds.x + bounds.width) pickerSelector.x = bounds.x + bounds.width; + if (pickerSelector.y < bounds.y) pickerSelector.y = bounds.y; + if (pickerSelector.y > bounds.y + bounds.height) pickerSelector.y = bounds.y + bounds.height; + + // Calculate color from picker + Vector2 colorPick = { pickerSelector.x - bounds.x, pickerSelector.y - bounds.y }; + + colorPick.x /= (float)bounds.width; // Get normalized value on x + colorPick.y /= (float)bounds.height; // Get normalized value on y + + colorHsv->y = colorPick.x; + colorHsv->z = 1.0f - colorPick.y; + + } + } + else + { + guiControlExclusiveMode = false; + guiControlExclusiveRec = RAYGUI_CLITERAL(Rectangle){ 0, 0, 0, 0 }; + } + } + else if (CheckCollisionPointRec(mousePoint, bounds)) + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) + { + state = STATE_PRESSED; + guiControlExclusiveMode = true; + guiControlExclusiveRec = bounds; + pickerSelector = mousePoint; + + // Calculate color from picker + Vector2 colorPick = { pickerSelector.x - bounds.x, pickerSelector.y - bounds.y }; + + colorPick.x /= (float)bounds.width; // Get normalized value on x + colorPick.y /= (float)bounds.height; // Get normalized value on y + + colorHsv->y = colorPick.x; + colorHsv->z = 1.0f - colorPick.y; + } + else state = STATE_FOCUSED; + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + if (state != STATE_DISABLED) + { + DrawRectangleGradientEx(bounds, Fade(colWhite, guiAlpha), Fade(colWhite, guiAlpha), Fade(maxHueCol, guiAlpha), Fade(maxHueCol, guiAlpha)); + DrawRectangleGradientEx(bounds, Fade(colBlack, 0), Fade(colBlack, guiAlpha), Fade(colBlack, guiAlpha), Fade(colBlack, 0)); + + // Draw color picker: selector + Rectangle selector = { pickerSelector.x - GuiGetStyle(COLORPICKER, COLOR_SELECTOR_SIZE)/2, pickerSelector.y - GuiGetStyle(COLORPICKER, COLOR_SELECTOR_SIZE)/2, (float)GuiGetStyle(COLORPICKER, COLOR_SELECTOR_SIZE), (float)GuiGetStyle(COLORPICKER, COLOR_SELECTOR_SIZE) }; + GuiDrawRectangle(selector, 0, BLANK, colWhite); + } + else + { + DrawRectangleGradientEx(bounds, Fade(Fade(GetColor(GuiGetStyle(COLORPICKER, BASE_COLOR_DISABLED)), 0.1f), guiAlpha), Fade(Fade(colBlack, 0.6f), guiAlpha), Fade(Fade(colBlack, 0.6f), guiAlpha), Fade(Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER_COLOR_DISABLED)), 0.6f), guiAlpha)); + } + + GuiDrawRectangle(bounds, GuiGetStyle(COLORPICKER, BORDER_WIDTH), GetColor(GuiGetStyle(COLORPICKER, BORDER + state*3)), BLANK); + //-------------------------------------------------------------------- + + return result; +} + +// Message Box control +int GuiMessageBox(Rectangle bounds, const char *title, const char *message, const char *buttons) +{ + #if !defined(RAYGUI_MESSAGEBOX_BUTTON_HEIGHT) + #define RAYGUI_MESSAGEBOX_BUTTON_HEIGHT 24 + #endif + #if !defined(RAYGUI_MESSAGEBOX_BUTTON_PADDING) + #define RAYGUI_MESSAGEBOX_BUTTON_PADDING 12 + #endif + + int result = -1; // Returns clicked button from buttons list, 0 refers to closed window button + + int buttonCount = 0; + const char **buttonsText = GuiTextSplit(buttons, ';', &buttonCount, NULL); + Rectangle buttonBounds = { 0 }; + buttonBounds.x = bounds.x + RAYGUI_MESSAGEBOX_BUTTON_PADDING; + buttonBounds.y = bounds.y + bounds.height - RAYGUI_MESSAGEBOX_BUTTON_HEIGHT - RAYGUI_MESSAGEBOX_BUTTON_PADDING; + buttonBounds.width = (bounds.width - RAYGUI_MESSAGEBOX_BUTTON_PADDING*(buttonCount + 1))/buttonCount; + buttonBounds.height = RAYGUI_MESSAGEBOX_BUTTON_HEIGHT; + + //int textWidth = GuiGetTextWidth(message) + 2; + + Rectangle textBounds = { 0 }; + textBounds.x = bounds.x + RAYGUI_MESSAGEBOX_BUTTON_PADDING; + textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + RAYGUI_MESSAGEBOX_BUTTON_PADDING; + textBounds.width = bounds.width - RAYGUI_MESSAGEBOX_BUTTON_PADDING*2; + textBounds.height = bounds.height - RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT - 3*RAYGUI_MESSAGEBOX_BUTTON_PADDING - RAYGUI_MESSAGEBOX_BUTTON_HEIGHT; + + // Draw control + //-------------------------------------------------------------------- + if (GuiWindowBox(bounds, title)) result = 0; + + int prevTextAlignment = GuiGetStyle(LABEL, TEXT_ALIGNMENT); + GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + GuiLabel(textBounds, message); + GuiSetStyle(LABEL, TEXT_ALIGNMENT, prevTextAlignment); + + prevTextAlignment = GuiGetStyle(BUTTON, TEXT_ALIGNMENT); + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + + for (int i = 0; i < buttonCount; i++) + { + if (GuiButton(buttonBounds, buttonsText[i])) result = i + 1; + buttonBounds.x += (buttonBounds.width + RAYGUI_MESSAGEBOX_BUTTON_PADDING); + } + + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, prevTextAlignment); + //-------------------------------------------------------------------- + + return result; +} + +// Text Input Box control, ask for text +int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, const char *buttons, char *text, int textMaxSize, bool *secretViewActive) +{ + #if !defined(RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT) + #define RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT 24 + #endif + #if !defined(RAYGUI_TEXTINPUTBOX_BUTTON_PADDING) + #define RAYGUI_TEXTINPUTBOX_BUTTON_PADDING 12 + #endif + #if !defined(RAYGUI_TEXTINPUTBOX_HEIGHT) + #define RAYGUI_TEXTINPUTBOX_HEIGHT 26 + #endif + + // Used to enable text edit mode + // WARNING: No more than one GuiTextInputBox() should be open at the same time + static bool textEditMode = false; + + int result = -1; + + int buttonCount = 0; + const char **buttonsText = GuiTextSplit(buttons, ';', &buttonCount, NULL); + Rectangle buttonBounds = { 0 }; + buttonBounds.x = bounds.x + RAYGUI_TEXTINPUTBOX_BUTTON_PADDING; + buttonBounds.y = bounds.y + bounds.height - RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT - RAYGUI_TEXTINPUTBOX_BUTTON_PADDING; + buttonBounds.width = (bounds.width - RAYGUI_TEXTINPUTBOX_BUTTON_PADDING*(buttonCount + 1))/buttonCount; + buttonBounds.height = RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT; + + int messageInputHeight = (int)bounds.height - RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT - GuiGetStyle(STATUSBAR, BORDER_WIDTH) - RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT - 2*RAYGUI_TEXTINPUTBOX_BUTTON_PADDING; + + Rectangle textBounds = { 0 }; + if (message != NULL) + { + int textSize = GuiGetTextWidth(message) + 2; + + textBounds.x = bounds.x + bounds.width/2 - textSize/2; + textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; + textBounds.width = (float)textSize; + textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + } + + Rectangle textBoxBounds = { 0 }; + textBoxBounds.x = bounds.x + RAYGUI_TEXTINPUTBOX_BUTTON_PADDING; + textBoxBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT - RAYGUI_TEXTINPUTBOX_HEIGHT/2; + if (message == NULL) textBoxBounds.y = bounds.y + 24 + RAYGUI_TEXTINPUTBOX_BUTTON_PADDING; + else textBoxBounds.y += (messageInputHeight/2 + messageInputHeight/4); + textBoxBounds.width = bounds.width - RAYGUI_TEXTINPUTBOX_BUTTON_PADDING*2; + textBoxBounds.height = RAYGUI_TEXTINPUTBOX_HEIGHT; + + // Draw control + //-------------------------------------------------------------------- + if (GuiWindowBox(bounds, title)) result = 0; + + // Draw message if available + if (message != NULL) + { + int prevTextAlignment = GuiGetStyle(LABEL, TEXT_ALIGNMENT); + GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + GuiLabel(textBounds, message); + GuiSetStyle(LABEL, TEXT_ALIGNMENT, prevTextAlignment); + } + + if (secretViewActive != NULL) + { + static char stars[] = "****************"; + if (GuiTextBox(RAYGUI_CLITERAL(Rectangle){ textBoxBounds.x, textBoxBounds.y, textBoxBounds.width - 4 - RAYGUI_TEXTINPUTBOX_HEIGHT, textBoxBounds.height }, + ((*secretViewActive == 1) || textEditMode)? text : stars, textMaxSize, textEditMode)) textEditMode = !textEditMode; + + GuiToggle(RAYGUI_CLITERAL(Rectangle){ textBoxBounds.x + textBoxBounds.width - RAYGUI_TEXTINPUTBOX_HEIGHT, textBoxBounds.y, RAYGUI_TEXTINPUTBOX_HEIGHT, RAYGUI_TEXTINPUTBOX_HEIGHT }, (*secretViewActive == 1)? "#44#" : "#45#", secretViewActive); + } + else + { + if (GuiTextBox(textBoxBounds, text, textMaxSize, textEditMode)) textEditMode = !textEditMode; + } + + int prevBtnTextAlignment = GuiGetStyle(BUTTON, TEXT_ALIGNMENT); + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + + for (int i = 0; i < buttonCount; i++) + { + if (GuiButton(buttonBounds, buttonsText[i])) result = i + 1; + buttonBounds.x += (buttonBounds.width + RAYGUI_MESSAGEBOX_BUTTON_PADDING); + } + + if (result >= 0) textEditMode = false; + + GuiSetStyle(BUTTON, TEXT_ALIGNMENT, prevBtnTextAlignment); + //-------------------------------------------------------------------- + + return result; // Result is the pressed button index +} + +// Grid control +// NOTE: Returns grid mouse-hover selected cell +// About drawing lines at subpixel spacing, simple put, not easy solution: +// https://stackoverflow.com/questions/4435450/2d-opengl-drawing-lines-that-dont-exactly-fit-pixel-raster +int GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs, Vector2 *mouseCell) +{ + // Grid lines alpha amount + #if !defined(RAYGUI_GRID_ALPHA) + #define RAYGUI_GRID_ALPHA 0.15f + #endif + + int result = 0; + GuiState state = guiState; + + Vector2 mousePoint = GetMousePosition(); + Vector2 currentMouseCell = { -1, -1 }; + + float spaceWidth = spacing/(float)subdivs; + int linesV = (int)(bounds.width/spaceWidth) + 1; + int linesH = (int)(bounds.height/spaceWidth) + 1; + + int color = GuiGetStyle(DEFAULT, LINE_COLOR); + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked && !guiControlExclusiveMode) + { + if (CheckCollisionPointRec(mousePoint, bounds)) + { + // NOTE: Cell values must be the upper left of the cell the mouse is in + currentMouseCell.x = floorf((mousePoint.x - bounds.x)/spacing); + currentMouseCell.y = floorf((mousePoint.y - bounds.y)/spacing); + } + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + if (state == STATE_DISABLED) color = GuiGetStyle(DEFAULT, BORDER_COLOR_DISABLED); + + if (subdivs > 0) + { + // Draw vertical grid lines + for (int i = 0; i < linesV; i++) + { + Rectangle lineV = { bounds.x + spacing*i/subdivs, bounds.y, 1, bounds.height + 1 }; + GuiDrawRectangle(lineV, 0, BLANK, ((i%subdivs) == 0)? GuiFade(GetColor(color), RAYGUI_GRID_ALPHA*4) : GuiFade(GetColor(color), RAYGUI_GRID_ALPHA)); + } + + // Draw horizontal grid lines + for (int i = 0; i < linesH; i++) + { + Rectangle lineH = { bounds.x, bounds.y + spacing*i/subdivs, bounds.width + 1, 1 }; + GuiDrawRectangle(lineH, 0, BLANK, ((i%subdivs) == 0)? GuiFade(GetColor(color), RAYGUI_GRID_ALPHA*4) : GuiFade(GetColor(color), RAYGUI_GRID_ALPHA)); + } + } + + if (mouseCell != NULL) *mouseCell = currentMouseCell; + return result; +} + +//---------------------------------------------------------------------------------- +// Tooltip management functions +// NOTE: Tooltips requires some global variables: tooltipPtr +//---------------------------------------------------------------------------------- +// Enable gui tooltips (global state) +void GuiEnableTooltip(void) { guiTooltip = true; } + +// Disable gui tooltips (global state) +void GuiDisableTooltip(void) { guiTooltip = false; } + +// Set tooltip string +void GuiSetTooltip(const char *tooltip) { guiTooltipPtr = tooltip; } + +//---------------------------------------------------------------------------------- +// Styles loading functions +//---------------------------------------------------------------------------------- + +// Load raygui style file (.rgs) +// NOTE: By default a binary file is expected, that file could contain a custom font, +// in that case, custom font image atlas is GRAY+ALPHA and pixel data can be compressed (DEFLATE) +void GuiLoadStyle(const char *fileName) +{ + #define MAX_LINE_BUFFER_SIZE 256 + + bool tryBinary = false; + if (!guiStyleLoaded) GuiLoadStyleDefault(); + + // Try reading the files as text file first + FILE *rgsFile = fopen(fileName, "rt"); + + if (rgsFile != NULL) + { + char buffer[MAX_LINE_BUFFER_SIZE] = { 0 }; + fgets(buffer, MAX_LINE_BUFFER_SIZE, rgsFile); + + if (buffer[0] == '#') + { + int controlId = 0; + int propertyId = 0; + unsigned int propertyValue = 0; + + while (!feof(rgsFile)) + { + switch (buffer[0]) + { + case 'p': + { + // Style property: p + + sscanf(buffer, "p %d %d 0x%x", &controlId, &propertyId, &propertyValue); + GuiSetStyle(controlId, propertyId, (int)propertyValue); + + } break; + case 'f': + { + // Style font: f + + int fontSize = 0; + char charmapFileName[256] = { 0 }; + char fontFileName[256] = { 0 }; + sscanf(buffer, "f %d %s %[^\r\n]s", &fontSize, charmapFileName, fontFileName); + + Font font = { 0 }; + int *codepoints = NULL; + int codepointCount = 0; + + if (charmapFileName[0] != '0') + { + // Load text data from file + // NOTE: Expected an UTF-8 array of codepoints, no separation + char *textData = LoadFileText(TextFormat("%s/%s", GetDirectoryPath(fileName), charmapFileName)); + codepoints = LoadCodepoints(textData, &codepointCount); + UnloadFileText(textData); + } + + if (fontFileName[0] != '\0') + { + // In case a font is already loaded and it is not default internal font, unload it + if (font.texture.id != GetFontDefault().texture.id) UnloadTexture(font.texture); + + if (codepointCount > 0) font = LoadFontEx(TextFormat("%s/%s", GetDirectoryPath(fileName), fontFileName), fontSize, codepoints, codepointCount); + else font = LoadFontEx(TextFormat("%s/%s", GetDirectoryPath(fileName), fontFileName), fontSize, NULL, 0); // Default to 95 standard codepoints + } + + // If font texture not properly loaded, revert to default font and size/spacing + if (font.texture.id == 0) + { + font = GetFontDefault(); + GuiSetStyle(DEFAULT, TEXT_SIZE, 10); + GuiSetStyle(DEFAULT, TEXT_SPACING, 1); + } + + UnloadCodepoints(codepoints); + + if ((font.texture.id > 0) && (font.glyphCount > 0)) GuiSetFont(font); + + } break; + default: break; + } + + fgets(buffer, MAX_LINE_BUFFER_SIZE, rgsFile); + } + } + else tryBinary = true; + + fclose(rgsFile); + } + + if (tryBinary) + { + rgsFile = fopen(fileName, "rb"); + + if (rgsFile != NULL) + { + fseek(rgsFile, 0, SEEK_END); + int fileDataSize = ftell(rgsFile); + fseek(rgsFile, 0, SEEK_SET); + + if (fileDataSize > 0) + { + unsigned char *fileData = (unsigned char *)RAYGUI_MALLOC(fileDataSize*sizeof(unsigned char)); + fread(fileData, sizeof(unsigned char), fileDataSize, rgsFile); + + GuiLoadStyleFromMemory(fileData, fileDataSize); + + RAYGUI_FREE(fileData); + } + + fclose(rgsFile); + } + } +} + +// Load style default over global style +void GuiLoadStyleDefault(void) +{ + // We set this variable first to avoid cyclic function calls + // when calling GuiSetStyle() and GuiGetStyle() + guiStyleLoaded = true; + + // Initialize default LIGHT style property values + // WARNING: Default value are applied to all controls on set but + // they can be overwritten later on for every custom control + GuiSetStyle(DEFAULT, BORDER_COLOR_NORMAL, 0x838383ff); + GuiSetStyle(DEFAULT, BASE_COLOR_NORMAL, 0xc9c9c9ff); + GuiSetStyle(DEFAULT, TEXT_COLOR_NORMAL, 0x686868ff); + GuiSetStyle(DEFAULT, BORDER_COLOR_FOCUSED, 0x5bb2d9ff); + GuiSetStyle(DEFAULT, BASE_COLOR_FOCUSED, 0xc9effeff); + GuiSetStyle(DEFAULT, TEXT_COLOR_FOCUSED, 0x6c9bbcff); + GuiSetStyle(DEFAULT, BORDER_COLOR_PRESSED, 0x0492c7ff); + GuiSetStyle(DEFAULT, BASE_COLOR_PRESSED, 0x97e8ffff); + GuiSetStyle(DEFAULT, TEXT_COLOR_PRESSED, 0x368bafff); + GuiSetStyle(DEFAULT, BORDER_COLOR_DISABLED, 0xb5c1c2ff); + GuiSetStyle(DEFAULT, BASE_COLOR_DISABLED, 0xe6e9e9ff); + GuiSetStyle(DEFAULT, TEXT_COLOR_DISABLED, 0xaeb7b8ff); + GuiSetStyle(DEFAULT, BORDER_WIDTH, 1); + GuiSetStyle(DEFAULT, TEXT_PADDING, 0); + GuiSetStyle(DEFAULT, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + + // Initialize default extended property values + // NOTE: By default, extended property values are initialized to 0 + GuiSetStyle(DEFAULT, TEXT_SIZE, 10); // DEFAULT, shared by all controls + GuiSetStyle(DEFAULT, TEXT_SPACING, 1); // DEFAULT, shared by all controls + GuiSetStyle(DEFAULT, LINE_COLOR, 0x90abb5ff); // DEFAULT specific property + GuiSetStyle(DEFAULT, BACKGROUND_COLOR, 0xf5f5f5ff); // DEFAULT specific property + GuiSetStyle(DEFAULT, TEXT_LINE_SPACING, 15); // DEFAULT, 15 pixels between lines + GuiSetStyle(DEFAULT, TEXT_ALIGNMENT_VERTICAL, TEXT_ALIGN_MIDDLE); // DEFAULT, text aligned vertically to middle of text-bounds + + // Initialize control-specific property values + // NOTE: Those properties are in default list but require specific values by control type + GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_LEFT); + GuiSetStyle(BUTTON, BORDER_WIDTH, 2); + GuiSetStyle(SLIDER, TEXT_PADDING, 4); + GuiSetStyle(PROGRESSBAR, TEXT_PADDING, 4); + GuiSetStyle(CHECKBOX, TEXT_PADDING, 4); + GuiSetStyle(CHECKBOX, TEXT_ALIGNMENT, TEXT_ALIGN_RIGHT); + GuiSetStyle(DROPDOWNBOX, TEXT_PADDING, 0); + GuiSetStyle(DROPDOWNBOX, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + GuiSetStyle(TEXTBOX, TEXT_PADDING, 4); + GuiSetStyle(TEXTBOX, TEXT_ALIGNMENT, TEXT_ALIGN_LEFT); + GuiSetStyle(VALUEBOX, TEXT_PADDING, 0); + GuiSetStyle(VALUEBOX, TEXT_ALIGNMENT, TEXT_ALIGN_LEFT); + GuiSetStyle(STATUSBAR, TEXT_PADDING, 8); + GuiSetStyle(STATUSBAR, TEXT_ALIGNMENT, TEXT_ALIGN_LEFT); + + // Initialize extended property values + // NOTE: By default, extended property values are initialized to 0 + GuiSetStyle(TOGGLE, GROUP_PADDING, 2); + GuiSetStyle(SLIDER, SLIDER_WIDTH, 16); + GuiSetStyle(SLIDER, SLIDER_PADDING, 1); + GuiSetStyle(PROGRESSBAR, PROGRESS_PADDING, 1); + GuiSetStyle(CHECKBOX, CHECK_PADDING, 1); + GuiSetStyle(COMBOBOX, COMBO_BUTTON_WIDTH, 32); + GuiSetStyle(COMBOBOX, COMBO_BUTTON_SPACING, 2); + GuiSetStyle(DROPDOWNBOX, ARROW_PADDING, 16); + GuiSetStyle(DROPDOWNBOX, DROPDOWN_ITEMS_SPACING, 2); + GuiSetStyle(VALUEBOX, SPINNER_BUTTON_WIDTH, 24); + GuiSetStyle(VALUEBOX, SPINNER_BUTTON_SPACING, 2); + GuiSetStyle(SCROLLBAR, BORDER_WIDTH, 0); + GuiSetStyle(SCROLLBAR, ARROWS_VISIBLE, 0); + GuiSetStyle(SCROLLBAR, ARROWS_SIZE, 6); + GuiSetStyle(SCROLLBAR, SCROLL_SLIDER_PADDING, 0); + GuiSetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE, 16); + GuiSetStyle(SCROLLBAR, SCROLL_PADDING, 0); + GuiSetStyle(SCROLLBAR, SCROLL_SPEED, 12); + GuiSetStyle(LISTVIEW, LIST_ITEMS_HEIGHT, 28); + GuiSetStyle(LISTVIEW, LIST_ITEMS_SPACING, 2); + GuiSetStyle(LISTVIEW, LIST_ITEMS_BORDER_WIDTH, 1); + GuiSetStyle(LISTVIEW, SCROLLBAR_WIDTH, 12); + GuiSetStyle(LISTVIEW, SCROLLBAR_SIDE, SCROLLBAR_RIGHT_SIDE); + GuiSetStyle(COLORPICKER, COLOR_SELECTOR_SIZE, 8); + GuiSetStyle(COLORPICKER, HUEBAR_WIDTH, 16); + GuiSetStyle(COLORPICKER, HUEBAR_PADDING, 8); + GuiSetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT, 8); + GuiSetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW, 2); + + if (guiFont.texture.id != GetFontDefault().texture.id) + { + // Unload previous font texture + UnloadTexture(guiFont.texture); + RAYGUI_FREE(guiFont.recs); + RAYGUI_FREE(guiFont.glyphs); + guiFont.recs = NULL; + guiFont.glyphs = NULL; + + // Setup default raylib font + guiFont = GetFontDefault(); + + // NOTE: Default raylib font character 95 is a white square + Rectangle whiteChar = guiFont.recs[95]; + + // NOTE: We set up a 1px padding on char rectangle to avoid pixel bleeding on MSAA filtering + SetShapesTexture(guiFont.texture, RAYGUI_CLITERAL(Rectangle){ whiteChar.x + 1, whiteChar.y + 1, whiteChar.width - 2, whiteChar.height - 2 }); + } +} + +// Get text with icon id prepended +// NOTE: Useful to add icons by name id (enum) instead of +// a number that can change between ricon versions +const char *GuiIconText(int iconId, const char *text) +{ +#if defined(RAYGUI_NO_ICONS) + return NULL; +#else + static char buffer[1024] = { 0 }; + static char iconBuffer[16] = { 0 }; + + if (text != NULL) + { + memset(buffer, 0, 1024); + snprintf(buffer, 1024, "#%03i#", iconId); + + for (int i = 5; i < 1024; i++) + { + buffer[i] = text[i - 5]; + if (text[i - 5] == '\0') break; + } + + return buffer; + } + else + { + snprintf(iconBuffer, 16, "#%03i#", iconId); + + return iconBuffer; + } +#endif +} + +#if !defined(RAYGUI_NO_ICONS) +// Get full icons data pointer +unsigned int *GuiGetIcons(void) { return guiIconsPtr; } + +// Load raygui icons file (.rgi) +// NOTE: In case nameIds are required, they can be requested with loadIconsName, +// they are returned as a guiIconsName[iconCount][RAYGUI_ICON_MAX_NAME_LENGTH], +// WARNING: guiIconsName[]][] memory should be manually freed! +char **GuiLoadIcons(const char *fileName, bool loadIconsName) +{ + // Style File Structure (.rgi) + // ------------------------------------------------------ + // Offset | Size | Type | Description + // ------------------------------------------------------ + // 0 | 4 | char | Signature: "rGI " + // 4 | 2 | short | Version: 100 + // 6 | 2 | short | reserved + + // 8 | 2 | short | Num icons (N) + // 10 | 2 | short | Icons size (Options: 16, 32, 64) (S) + + // Icons name id (32 bytes per name id) + // foreach (icon) + // { + // 12+32*i | 32 | char | Icon NameId + // } + + // Icons data: One bit per pixel, stored as unsigned int array (depends on icon size) + // S*S pixels/32bit per unsigned int = K unsigned int per icon + // foreach (icon) + // { + // ... | K | unsigned int | Icon Data + // } + + FILE *rgiFile = fopen(fileName, "rb"); + + char **guiIconsName = NULL; + + if (rgiFile != NULL) + { + char signature[5] = { 0 }; + short version = 0; + short reserved = 0; + short iconCount = 0; + short iconSize = 0; + + fread(signature, 1, 4, rgiFile); + fread(&version, sizeof(short), 1, rgiFile); + fread(&reserved, sizeof(short), 1, rgiFile); + fread(&iconCount, sizeof(short), 1, rgiFile); + fread(&iconSize, sizeof(short), 1, rgiFile); + + if ((signature[0] == 'r') && + (signature[1] == 'G') && + (signature[2] == 'I') && + (signature[3] == ' ')) + { + if (loadIconsName) + { + guiIconsName = (char **)RAYGUI_MALLOC(iconCount*sizeof(char **)); + for (int i = 0; i < iconCount; i++) + { + guiIconsName[i] = (char *)RAYGUI_MALLOC(RAYGUI_ICON_MAX_NAME_LENGTH); + fread(guiIconsName[i], 1, RAYGUI_ICON_MAX_NAME_LENGTH, rgiFile); + } + } + else fseek(rgiFile, iconCount*RAYGUI_ICON_MAX_NAME_LENGTH, SEEK_CUR); + + // Read icons data directly over internal icons array + fread(guiIconsPtr, sizeof(unsigned int), (int)iconCount*((int)iconSize*(int)iconSize/32), rgiFile); + } + + fclose(rgiFile); + } + + return guiIconsName; +} + +// Load icons from memory +// WARNING: Binary files only +char **GuiLoadIconsFromMemory(const unsigned char *fileData, int dataSize, bool loadIconsName) +{ + unsigned char *fileDataPtr = (unsigned char *)fileData; + char **guiIconsName = NULL; + + char signature[5] = { 0 }; + short version = 0; + short reserved = 0; + short iconCount = 0; + short iconSize = 0; + + memcpy(signature, fileDataPtr, 4); + memcpy(&version, fileDataPtr + 4, sizeof(short)); + memcpy(&reserved, fileDataPtr + 4 + 2, sizeof(short)); + memcpy(&iconCount, fileDataPtr + 4 + 2 + 2, sizeof(short)); + memcpy(&iconSize, fileDataPtr + 4 + 2 + 2 + 2, sizeof(short)); + fileDataPtr += 12; + + if ((signature[0] == 'r') && + (signature[1] == 'G') && + (signature[2] == 'I') && + (signature[3] == ' ')) + { + if (loadIconsName) + { + guiIconsName = (char **)RAYGUI_MALLOC(iconCount*sizeof(char *)); + for (int i = 0; i < iconCount; i++) + { + guiIconsName[i] = (char *)RAYGUI_MALLOC(RAYGUI_ICON_MAX_NAME_LENGTH); + memcpy(guiIconsName[i], fileDataPtr, RAYGUI_ICON_MAX_NAME_LENGTH); + fileDataPtr += RAYGUI_ICON_MAX_NAME_LENGTH; + } + } + else + { + // Skip icon name data if not required + fileDataPtr += iconCount*RAYGUI_ICON_MAX_NAME_LENGTH; + } + + int iconDataSize = iconCount*((int)iconSize*(int)iconSize/32)*(int)sizeof(unsigned int); + guiIconsPtr = (unsigned int *)RAYGUI_MALLOC(iconDataSize); + + memcpy(guiIconsPtr, fileDataPtr, iconDataSize); + } + + return guiIconsName; +} + +// Draw selected icon using rectangles pixel-by-pixel +void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color) +{ + #define BIT_CHECK(a,b) ((a) & (1u<<(b))) + + for (int i = 0, y = 0; i < RAYGUI_ICON_SIZE*RAYGUI_ICON_SIZE/32; i++) + { + for (int k = 0; k < 32; k++) + { + if (BIT_CHECK(guiIconsPtr[iconId*RAYGUI_ICON_DATA_ELEMENTS + i], k)) + { + #if !defined(RAYGUI_STANDALONE) + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ (float)posX + (k%RAYGUI_ICON_SIZE)*pixelSize, (float)posY + y*pixelSize, (float)pixelSize, (float)pixelSize }, 0, BLANK, color); + #endif + } + + if ((k == 15) || (k == 31)) y++; + } + } +} + +// Set icon drawing size +void GuiSetIconScale(int scale) +{ + if (scale >= 1) guiIconScale = scale; +} + +// Get text width considering gui style and icon size (if required) +int GuiGetTextWidth(const char *text) +{ + #if !defined(ICON_TEXT_PADDING) + #define ICON_TEXT_PADDING 4 + #endif + + Vector2 textSize = { 0 }; + int textIconOffset = 0; + + if ((text != NULL) && (text[0] != '\0')) + { + if (text[0] == '#') + { + for (int i = 1; (i < 5) && (text[i] != '\0'); i++) + { + if (text[i] == '#') + { + textIconOffset = i; + break; + } + } + } + + text += textIconOffset; + + // Make sure guiFont is set, GuiGetStyle() initializes it lazynessly + float fontSize = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); + + // Custom MeasureText() implementation + if ((guiFont.texture.id > 0) && (text != NULL)) + { + // Get size in bytes of text, considering end of line and line break + int size = 0; + for (int i = 0; i < MAX_LINE_BUFFER_SIZE; i++) + { + if ((text[i] != '\0') && (text[i] != '\n')) size++; + else break; + } + + float scaleFactor = fontSize/(float)guiFont.baseSize; + textSize.y = (float)guiFont.baseSize*scaleFactor; + float glyphWidth = 0.0f; + + for (int i = 0, codepointSize = 0; i < size; i += codepointSize) + { + int codepoint = GetCodepointNext(&text[i], &codepointSize); + int codepointIndex = GetGlyphIndex(guiFont, codepoint); + + if (guiFont.glyphs[codepointIndex].advanceX == 0) glyphWidth = ((float)guiFont.recs[codepointIndex].width*scaleFactor); + else glyphWidth = ((float)guiFont.glyphs[codepointIndex].advanceX*scaleFactor); + + textSize.x += (glyphWidth + (float)GuiGetStyle(DEFAULT, TEXT_SPACING)); + } + } + + if (textIconOffset > 0) textSize.x += (RAYGUI_ICON_SIZE + ICON_TEXT_PADDING); + } + + return (int)textSize.x; +} + +#endif // !RAYGUI_NO_ICONS + +//---------------------------------------------------------------------------------- +// Module specific Functions Definition +//---------------------------------------------------------------------------------- + +// Load style from memory +// WARNING: Binary files only +static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize) +{ + unsigned char *fileDataPtr = (unsigned char *)fileData; + + char signature[5] = { 0 }; + short version = 0; + short reserved = 0; + int propertyCount = 0; + + memcpy(signature, fileDataPtr, 4); + memcpy(&version, fileDataPtr + 4, sizeof(short)); + memcpy(&reserved, fileDataPtr + 4 + 2, sizeof(short)); + memcpy(&propertyCount, fileDataPtr + 4 + 2 + 2, sizeof(int)); + fileDataPtr += 12; + + if ((signature[0] == 'r') && + (signature[1] == 'G') && + (signature[2] == 'S') && + (signature[3] == ' ')) + { + short controlId = 0; + short propertyId = 0; + unsigned int propertyValue = 0; + + for (int i = 0; i < propertyCount; i++) + { + memcpy(&controlId, fileDataPtr, sizeof(short)); + memcpy(&propertyId, fileDataPtr + 2, sizeof(short)); + memcpy(&propertyValue, fileDataPtr + 2 + 2, sizeof(unsigned int)); + fileDataPtr += 8; + + if (controlId == 0) // DEFAULT control + { + // If a DEFAULT property is loaded, it is propagated to all controls + // NOTE: All DEFAULT properties should be defined first in the file + GuiSetStyle(0, (int)propertyId, propertyValue); + + if (propertyId < RAYGUI_MAX_PROPS_BASE) for (int j = 1; j < RAYGUI_MAX_CONTROLS; j++) GuiSetStyle(j, (int)propertyId, propertyValue); + } + else GuiSetStyle((int)controlId, (int)propertyId, propertyValue); + } + + // Font loading is highly dependant on raylib API to load font data and image + +#if !defined(RAYGUI_STANDALONE) + // Load custom font if available + int fontDataSize = 0; + memcpy(&fontDataSize, fileDataPtr, sizeof(int)); + fileDataPtr += 4; + + if (fontDataSize > 0) + { + Font font = { 0 }; + int fontType = 0; // 0-Normal, 1-SDF + + memcpy(&font.baseSize, fileDataPtr, sizeof(int)); + memcpy(&font.glyphCount, fileDataPtr + 4, sizeof(int)); + memcpy(&fontType, fileDataPtr + 4 + 4, sizeof(int)); + fileDataPtr += 12; + + // Load font white rectangle + Rectangle fontWhiteRec = { 0 }; + memcpy(&fontWhiteRec, fileDataPtr, sizeof(Rectangle)); + fileDataPtr += 16; + + // Load font image parameters + int fontImageUncompSize = 0; + int fontImageCompSize = 0; + memcpy(&fontImageUncompSize, fileDataPtr, sizeof(int)); + memcpy(&fontImageCompSize, fileDataPtr + 4, sizeof(int)); + fileDataPtr += 8; + + Image imFont = { 0 }; + imFont.mipmaps = 1; + memcpy(&imFont.width, fileDataPtr, sizeof(int)); + memcpy(&imFont.height, fileDataPtr + 4, sizeof(int)); + memcpy(&imFont.format, fileDataPtr + 4 + 4, sizeof(int)); + fileDataPtr += 12; + + if ((fontImageCompSize > 0) && (fontImageCompSize != fontImageUncompSize)) + { + // Compressed font atlas image data (DEFLATE), it requires DecompressData() + int dataUncompSize = 0; + unsigned char *compData = (unsigned char *)RAYGUI_MALLOC(fontImageCompSize); + memcpy(compData, fileDataPtr, fontImageCompSize); + fileDataPtr += fontImageCompSize; + + imFont.data = DecompressData(compData, fontImageCompSize, &dataUncompSize); + + // Security check, dataUncompSize must match the provided fontImageUncompSize + if (dataUncompSize != fontImageUncompSize) RAYGUI_LOG("WARNING: Uncompressed font atlas image data could be corrupted"); + + RAYGUI_FREE(compData); + } + else + { + // Font atlas image data is not compressed + imFont.data = (unsigned char *)RAYGUI_MALLOC(fontImageUncompSize); + memcpy(imFont.data, fileDataPtr, fontImageUncompSize); + fileDataPtr += fontImageUncompSize; + } + + if (font.texture.id != GetFontDefault().texture.id) UnloadTexture(font.texture); + font.texture = LoadTextureFromImage(imFont); + + RAYGUI_FREE(imFont.data); + + // Validate font atlas texture was loaded correctly + if (font.texture.id != 0) + { + // Load font recs data + int recsDataSize = font.glyphCount*sizeof(Rectangle); + int recsDataCompressedSize = 0; + + // WARNING: Version 400 adds the compression size parameter + if (version >= 400) + { + // RGS files version 400 support compressed recs data + memcpy(&recsDataCompressedSize, fileDataPtr, sizeof(int)); + fileDataPtr += sizeof(int); + } + + if ((recsDataCompressedSize > 0) && (recsDataCompressedSize != recsDataSize)) + { + // Recs data is compressed, uncompress it + unsigned char *recsDataCompressed = (unsigned char *)RAYGUI_MALLOC(recsDataCompressedSize); + + memcpy(recsDataCompressed, fileDataPtr, recsDataCompressedSize); + fileDataPtr += recsDataCompressedSize; + + int recsDataUncompSize = 0; + font.recs = (Rectangle *)DecompressData(recsDataCompressed, recsDataCompressedSize, &recsDataUncompSize); + + // Security check, data uncompressed size must match the expected original data size + if (recsDataUncompSize != recsDataSize) RAYGUI_LOG("WARNING: Uncompressed font recs data could be corrupted"); + + RAYGUI_FREE(recsDataCompressed); + } + else + { + // Recs data is uncompressed + font.recs = (Rectangle *)RAYGUI_CALLOC(font.glyphCount, sizeof(Rectangle)); + for (int i = 0; i < font.glyphCount; i++) + { + memcpy(&font.recs[i], fileDataPtr, sizeof(Rectangle)); + fileDataPtr += sizeof(Rectangle); + } + } + + // Load font glyphs info data + int glyphsDataSize = font.glyphCount*16; // 16 bytes data per glyph + int glyphsDataCompressedSize = 0; + + // WARNING: Version 400 adds the compression size parameter + if (version >= 400) + { + // RGS files version 400 support compressed glyphs data + memcpy(&glyphsDataCompressedSize, fileDataPtr, sizeof(int)); + fileDataPtr += sizeof(int); + } + + // Allocate required glyphs space to fill with data + font.glyphs = (GlyphInfo *)RAYGUI_CALLOC(font.glyphCount, sizeof(GlyphInfo)); + + if ((glyphsDataCompressedSize > 0) && (glyphsDataCompressedSize != glyphsDataSize)) + { + // Glyphs data is compressed, uncompress it + unsigned char *glypsDataCompressed = (unsigned char *)RAYGUI_MALLOC(glyphsDataCompressedSize); + + memcpy(glypsDataCompressed, fileDataPtr, glyphsDataCompressedSize); + fileDataPtr += glyphsDataCompressedSize; + + int glyphsDataUncompSize = 0; + unsigned char *glyphsDataUncomp = DecompressData(glypsDataCompressed, glyphsDataCompressedSize, &glyphsDataUncompSize); + + // Security check, data uncompressed size must match the expected original data size + if (glyphsDataUncompSize != glyphsDataSize) RAYGUI_LOG("WARNING: Uncompressed font glyphs data could be corrupted"); + + unsigned char *glyphsDataUncompPtr = glyphsDataUncomp; + + for (int i = 0; i < font.glyphCount; i++) + { + memcpy(&font.glyphs[i].value, glyphsDataUncompPtr, sizeof(int)); + memcpy(&font.glyphs[i].offsetX, glyphsDataUncompPtr + 4, sizeof(int)); + memcpy(&font.glyphs[i].offsetY, glyphsDataUncompPtr + 8, sizeof(int)); + memcpy(&font.glyphs[i].advanceX, glyphsDataUncompPtr + 12, sizeof(int)); + glyphsDataUncompPtr += 16; + } + + RAYGUI_FREE(glypsDataCompressed); + RAYGUI_FREE(glyphsDataUncomp); + } + else + { + // Glyphs data is uncompressed + for (int i = 0; i < font.glyphCount; i++) + { + memcpy(&font.glyphs[i].value, fileDataPtr, sizeof(int)); + memcpy(&font.glyphs[i].offsetX, fileDataPtr + 4, sizeof(int)); + memcpy(&font.glyphs[i].offsetY, fileDataPtr + 8, sizeof(int)); + memcpy(&font.glyphs[i].advanceX, fileDataPtr + 12, sizeof(int)); + fileDataPtr += 16; + } + } + } + else font = GetFontDefault(); // Fallback in case of errors loading font atlas texture + + GuiSetFont(font); + + // Set font texture source rectangle to be used as white texture to draw shapes + // NOTE: It makes possible to draw shapes and text (full UI) in a single draw call + if ((fontWhiteRec.x > 0) && + (fontWhiteRec.y > 0) && + (fontWhiteRec.width > 0) && + (fontWhiteRec.height > 0)) SetShapesTexture(font.texture, fontWhiteRec); + } +#endif + } +} + +// Get text bounds considering control bounds +static Rectangle GetTextBounds(int control, Rectangle bounds) +{ + Rectangle textBounds = bounds; + + textBounds.x = bounds.x + GuiGetStyle(control, BORDER_WIDTH); + textBounds.y = bounds.y + GuiGetStyle(control, BORDER_WIDTH) + GuiGetStyle(control, TEXT_PADDING); + textBounds.width = bounds.width - 2*GuiGetStyle(control, BORDER_WIDTH) - 2*GuiGetStyle(control, TEXT_PADDING); + textBounds.height = bounds.height - 2*GuiGetStyle(control, BORDER_WIDTH) - 2*GuiGetStyle(control, TEXT_PADDING); // NOTE: Text is processed line per line! + + // Depending on control, TEXT_PADDING and TEXT_ALIGNMENT properties could affect the text-bounds + switch (control) + { + case COMBOBOX: + case DROPDOWNBOX: + case LISTVIEW: + // TODO: Special cases (no label): COMBOBOX, DROPDOWNBOX, LISTVIEW + case SLIDER: + case CHECKBOX: + case VALUEBOX: + case CONTROL11: + // TODO: More special cases (label on side): SLIDER, CHECKBOX, VALUEBOX, SPINNER + default: + { + // TODO: WARNING: TEXT_ALIGNMENT is already considered in GuiDrawText() + if (GuiGetStyle(control, TEXT_ALIGNMENT) == TEXT_ALIGN_RIGHT) textBounds.x -= GuiGetStyle(control, TEXT_PADDING); + else textBounds.x += GuiGetStyle(control, TEXT_PADDING); + } + break; + } + + return textBounds; +} + +// Get text icon if provided and move text cursor +// NOTE: We support up to 999 values for iconId +static const char *GetTextIcon(const char *text, int *iconId) +{ +#if !defined(RAYGUI_NO_ICONS) + *iconId = -1; + if (text[0] == '#') // Maybe we have an icon! + { + char iconValue[4] = { 0 }; // Maximum length for icon value: 3 digits + '\0' + + int pos = 1; + while ((pos < 4) && (text[pos] >= '0') && (text[pos] <= '9')) + { + iconValue[pos - 1] = text[pos]; + pos++; + } + + if (text[pos] == '#') + { + *iconId = TextToInteger(iconValue); + + // Move text pointer after icon + // WARNING: If only icon provided, it could point to EOL character: '\0' + if (*iconId >= 0) text += (pos + 1); + } + } +#endif + + return text; +} + +// Get text divided into lines (by line-breaks '\n') +// WARNING: It returns pointers to new lines but it does not add NULL ('\0') terminator! +static const char **GetTextLines(const char *text, int *count) +{ + #define RAYGUI_MAX_TEXT_LINES 128 + + static const char *lines[RAYGUI_MAX_TEXT_LINES] = { 0 }; + for (int i = 0; i < RAYGUI_MAX_TEXT_LINES; i++) lines[i] = NULL; // Init NULL pointers to substrings + + int textSize = (int)strlen(text); + + lines[0] = text; + int len = 0; + *count = 1; + //int lineSize = 0; // Stores current line size, not returned + + for (int i = 0, k = 0; (i < textSize) && (*count < RAYGUI_MAX_TEXT_LINES); i++) + { + if (text[i] == '\n') + { + //lineSize = len; + k++; + lines[k] = &text[i + 1]; // WARNING: next value is valid? + len = 0; + *count += 1; + } + else len++; + } + + //lines[*count - 1].size = len; + + return lines; +} + +// Get text width to next space for provided string +static float GetNextSpaceWidth(const char *text, int *nextSpaceIndex) +{ + float width = 0; + int codepointByteCount = 0; + int codepoint = 0; + int index = 0; + float glyphWidth = 0; + float scaleFactor = (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/guiFont.baseSize; + + for (int i = 0; text[i] != '\0'; i++) + { + if (text[i] != ' ') + { + codepoint = GetCodepoint(&text[i], &codepointByteCount); + index = GetGlyphIndex(guiFont, codepoint); + glyphWidth = (guiFont.glyphs[index].advanceX == 0)? guiFont.recs[index].width*scaleFactor : guiFont.glyphs[index].advanceX*scaleFactor; + width += (glyphWidth + (float)GuiGetStyle(DEFAULT, TEXT_SPACING)); + } + else + { + *nextSpaceIndex = i; + break; + } + } + + return width; +} + +// Gui draw text using default font +static void GuiDrawText(const char *text, Rectangle textBounds, int alignment, Color tint) +{ + #define TEXT_VALIGN_PIXEL_OFFSET(h) ((int)h%2) // Vertical alignment for pixel perfect + + #if !defined(ICON_TEXT_PADDING) + #define ICON_TEXT_PADDING 4 + #endif + + if ((text == NULL) || (text[0] == '\0')) return; // Security check + + // PROCEDURE: + // - Text is processed line per line + // - For every line, horizontal alignment is defined + // - For all text, vertical alignment is defined (multiline text only) + // - For every line, wordwrap mode is checked (useful for GuitextBox(), read-only) + + // Get text lines (using '\n' as delimiter) to be processed individually + // WARNING: We can't use GuiTextSplit() function because it can be already used + // before the GuiDrawText() call and its buffer is static, it would be overriden :( + int lineCount = 0; + const char **lines = GetTextLines(text, &lineCount); + + // Text style variables + //int alignment = GuiGetStyle(DEFAULT, TEXT_ALIGNMENT); + int alignmentVertical = GuiGetStyle(DEFAULT, TEXT_ALIGNMENT_VERTICAL); + int wrapMode = GuiGetStyle(DEFAULT, TEXT_WRAP_MODE); // Wrap-mode only available in read-only mode, no for text editing + + // TODO: WARNING: This totalHeight is not valid for vertical alignment in case of word-wrap + float totalHeight = (float)(lineCount*GuiGetStyle(DEFAULT, TEXT_SIZE) + (lineCount - 1)*GuiGetStyle(DEFAULT, TEXT_SIZE)/2); + float posOffsetY = 0.0f; + + for (int i = 0; i < lineCount; i++) + { + int iconId = 0; + lines[i] = GetTextIcon(lines[i], &iconId); // Check text for icon and move cursor + + // Get text position depending on alignment and iconId + //--------------------------------------------------------------------------------- + Vector2 textBoundsPosition = { textBounds.x, textBounds.y }; + float textBoundsWidthOffset = 0.0f; + + // NOTE: We get text size after icon has been processed + // WARNING: GuiGetTextWidth() also processes text icon to get width! -> Really needed? + int textSizeX = GuiGetTextWidth(lines[i]); + + // If text requires an icon, add size to measure + if (iconId >= 0) + { + textSizeX += RAYGUI_ICON_SIZE*guiIconScale; + + // WARNING: If only icon provided, text could be pointing to EOF character: '\0' +#if !defined(RAYGUI_NO_ICONS) + if ((lines[i] != NULL) && (lines[i][0] != '\0')) textSizeX += ICON_TEXT_PADDING; +#endif + } + + // Check guiTextAlign global variables + switch (alignment) + { + case TEXT_ALIGN_LEFT: textBoundsPosition.x = textBounds.x; break; + case TEXT_ALIGN_CENTER: textBoundsPosition.x = textBounds.x + textBounds.width/2 - textSizeX/2; break; + case TEXT_ALIGN_RIGHT: textBoundsPosition.x = textBounds.x + textBounds.width - textSizeX; break; + default: break; + } + + if (textSizeX > textBounds.width && (lines[i] != NULL) && (lines[i][0] != '\0')) textBoundsPosition.x = textBounds.x; + + switch (alignmentVertical) + { + // Only valid in case of wordWrap = 0; + case TEXT_ALIGN_TOP: textBoundsPosition.y = textBounds.y + posOffsetY; break; + case TEXT_ALIGN_MIDDLE: textBoundsPosition.y = textBounds.y + posOffsetY + textBounds.height/2 - totalHeight/2 + TEXT_VALIGN_PIXEL_OFFSET(textBounds.height); break; + case TEXT_ALIGN_BOTTOM: textBoundsPosition.y = textBounds.y + posOffsetY + textBounds.height - totalHeight + TEXT_VALIGN_PIXEL_OFFSET(textBounds.height); break; + default: break; + } + + // NOTE: Make sure we get pixel-perfect coordinates, + // In case of decimals we got weird text positioning + textBoundsPosition.x = (float)((int)textBoundsPosition.x); + textBoundsPosition.y = (float)((int)textBoundsPosition.y); + //--------------------------------------------------------------------------------- + + // Draw text (with icon if available) + //--------------------------------------------------------------------------------- +#if !defined(RAYGUI_NO_ICONS) + if (iconId >= 0) + { + // NOTE: We consider icon height, probably different than text size + GuiDrawIcon(iconId, (int)textBoundsPosition.x, (int)(textBounds.y + textBounds.height/2 - RAYGUI_ICON_SIZE*guiIconScale/2 + TEXT_VALIGN_PIXEL_OFFSET(textBounds.height)), guiIconScale, tint); + textBoundsPosition.x += (float)(RAYGUI_ICON_SIZE*guiIconScale + ICON_TEXT_PADDING); + textBoundsWidthOffset = (float)(RAYGUI_ICON_SIZE*guiIconScale + ICON_TEXT_PADDING); + } +#endif + // Get size in bytes of text, + // considering end of line and line break + int lineSize = 0; + for (int c = 0; (lines[i][c] != '\0') && (lines[i][c] != '\n') && (lines[i][c] != '\r'); c++, lineSize++){ } + float scaleFactor = (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/guiFont.baseSize; + + int lastSpaceIndex = 0; + bool tempWrapCharMode = false; + + int textOffsetY = 0; + float textOffsetX = 0.0f; + float glyphWidth = 0; + + int ellipsisWidth = GuiGetTextWidth("..."); + bool textOverflow = false; + for (int c = 0, codepointSize = 0; c < lineSize; c += codepointSize) + { + int codepoint = GetCodepointNext(&lines[i][c], &codepointSize); + int index = GetGlyphIndex(guiFont, codepoint); + + // NOTE: Normally we exit the decoding sequence as soon as a bad byte is found (and return 0x3f) + // but we need to draw all of the bad bytes using the '?' symbol moving one byte + if (codepoint == 0x3f) codepointSize = 1; // TODO: Review not recognized codepoints size + + // Get glyph width to check if it goes out of bounds + if (guiFont.glyphs[index].advanceX == 0) glyphWidth = ((float)guiFont.recs[index].width*scaleFactor); + else glyphWidth = (float)guiFont.glyphs[index].advanceX*scaleFactor; + + // Wrap mode text measuring, to validate if + // it can be drawn or a new line is required + if (wrapMode == TEXT_WRAP_CHAR) + { + // Jump to next line if current character reach end of the box limits + if ((textOffsetX + glyphWidth) > textBounds.width - textBoundsWidthOffset) + { + textOffsetX = 0.0f; + textOffsetY += GuiGetStyle(DEFAULT, TEXT_LINE_SPACING); + + if (tempWrapCharMode) // Wrap at char level when too long words + { + wrapMode = TEXT_WRAP_WORD; + tempWrapCharMode = false; + } + } + } + else if (wrapMode == TEXT_WRAP_WORD) + { + if (codepoint == 32) lastSpaceIndex = c; + + // Get width to next space in line + int nextSpaceIndex = 0; + float nextSpaceWidth = GetNextSpaceWidth(lines[i] + c, &nextSpaceIndex); + + int nextSpaceIndex2 = 0; + float nextWordSize = GetNextSpaceWidth(lines[i] + lastSpaceIndex + 1, &nextSpaceIndex2); + + if (nextWordSize > textBounds.width - textBoundsWidthOffset) + { + // Considering the case the next word is longer than bounds + tempWrapCharMode = true; + wrapMode = TEXT_WRAP_CHAR; + } + else if ((textOffsetX + nextSpaceWidth) > textBounds.width - textBoundsWidthOffset) + { + textOffsetX = 0.0f; + textOffsetY += GuiGetStyle(DEFAULT, TEXT_LINE_SPACING); + } + } + + if (codepoint == '\n') break; // WARNING: Lines are already processed manually, no need to keep drawing after this codepoint + else + { + // TODO: There are multiple types of spaces in Unicode, + // maybe it's a good idea to add support for more: http://jkorpela.fi/chars/spaces.html + if ((codepoint != ' ') && (codepoint != '\t')) // Do not draw codepoints with no glyph + { + if (wrapMode == TEXT_WRAP_NONE) + { + // Draw only required text glyphs fitting the textBounds.width + if (textSizeX > textBounds.width) + { + if (textOffsetX <= (textBounds.width - glyphWidth - textBoundsWidthOffset - ellipsisWidth)) + { + DrawTextCodepoint(guiFont, codepoint, RAYGUI_CLITERAL(Vector2){ textBoundsPosition.x + textOffsetX, textBoundsPosition.y + textOffsetY }, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), GuiFade(tint, guiAlpha)); + } + else if (!textOverflow) + { + textOverflow = true; + + for (int j = 0; j < ellipsisWidth; j += ellipsisWidth/3) + { + DrawTextCodepoint(guiFont, '.', RAYGUI_CLITERAL(Vector2){ textBoundsPosition.x + textOffsetX + j, textBoundsPosition.y + textOffsetY }, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), GuiFade(tint, guiAlpha)); + } + } + } + else + { + DrawTextCodepoint(guiFont, codepoint, RAYGUI_CLITERAL(Vector2){ textBoundsPosition.x + textOffsetX, textBoundsPosition.y + textOffsetY }, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), GuiFade(tint, guiAlpha)); + } + } + else if ((wrapMode == TEXT_WRAP_CHAR) || (wrapMode == TEXT_WRAP_WORD)) + { + // Draw only glyphs inside the bounds + if ((textBoundsPosition.y + textOffsetY) <= (textBounds.y + textBounds.height - GuiGetStyle(DEFAULT, TEXT_SIZE))) + { + DrawTextCodepoint(guiFont, codepoint, RAYGUI_CLITERAL(Vector2){ textBoundsPosition.x + textOffsetX, textBoundsPosition.y + textOffsetY }, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), GuiFade(tint, guiAlpha)); + } + } + } + + if (guiFont.glyphs[index].advanceX == 0) textOffsetX += ((float)guiFont.recs[index].width*scaleFactor + (float)GuiGetStyle(DEFAULT, TEXT_SPACING)); + else textOffsetX += ((float)guiFont.glyphs[index].advanceX*scaleFactor + (float)GuiGetStyle(DEFAULT, TEXT_SPACING)); + } + } + + if (wrapMode == TEXT_WRAP_NONE) posOffsetY += (float)GuiGetStyle(DEFAULT, TEXT_LINE_SPACING); + else if ((wrapMode == TEXT_WRAP_CHAR) || (wrapMode == TEXT_WRAP_WORD)) posOffsetY += (textOffsetY + (float)GuiGetStyle(DEFAULT, TEXT_LINE_SPACING)); + //--------------------------------------------------------------------------------- + } + +#if defined(RAYGUI_DEBUG_TEXT_BOUNDS) + GuiDrawRectangle(textBounds, 0, WHITE, Fade(BLUE, 0.4f)); +#endif +} + +// Gui draw rectangle using default raygui plain style with borders +static void GuiDrawRectangle(Rectangle rec, int borderWidth, Color borderColor, Color color) +{ + if (color.a > 0) + { + // Draw rectangle filled with color + DrawRectangle((int)rec.x, (int)rec.y, (int)rec.width, (int)rec.height, GuiFade(color, guiAlpha)); + } + + if (borderWidth > 0) + { + // Draw rectangle border lines with color + DrawRectangle((int)rec.x, (int)rec.y, (int)rec.width, borderWidth, GuiFade(borderColor, guiAlpha)); + DrawRectangle((int)rec.x, (int)rec.y + borderWidth, borderWidth, (int)rec.height - 2*borderWidth, GuiFade(borderColor, guiAlpha)); + DrawRectangle((int)rec.x + (int)rec.width - borderWidth, (int)rec.y + borderWidth, borderWidth, (int)rec.height - 2*borderWidth, GuiFade(borderColor, guiAlpha)); + DrawRectangle((int)rec.x, (int)rec.y + (int)rec.height - borderWidth, (int)rec.width, borderWidth, GuiFade(borderColor, guiAlpha)); + } + +#if defined(RAYGUI_DEBUG_RECS_BOUNDS) + DrawRectangle((int)rec.x, (int)rec.y, (int)rec.width, (int)rec.height, Fade(RED, 0.4f)); +#endif +} + +// Draw tooltip using control bounds +static void GuiTooltip(Rectangle controlRec) +{ + if (!guiLocked && guiTooltip && (guiTooltipPtr != NULL) && !guiControlExclusiveMode) + { + Vector2 textSize = MeasureTextEx(GuiGetFont(), guiTooltipPtr, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), (float)GuiGetStyle(DEFAULT, TEXT_SPACING)); + + if ((controlRec.x + textSize.x + 16) > GetScreenWidth()) controlRec.x -= (textSize.x + 16 - controlRec.width); + + GuiPanel(RAYGUI_CLITERAL(Rectangle){ controlRec.x, controlRec.y + controlRec.height + 4, textSize.x + 16, GuiGetStyle(DEFAULT, TEXT_SIZE) + 8.0f }, NULL); + + int textPadding = GuiGetStyle(LABEL, TEXT_PADDING); + int textAlignment = GuiGetStyle(LABEL, TEXT_ALIGNMENT); + GuiSetStyle(LABEL, TEXT_PADDING, 0); + GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER); + GuiLabel(RAYGUI_CLITERAL(Rectangle){ controlRec.x, controlRec.y + controlRec.height + 4, textSize.x + 16, GuiGetStyle(DEFAULT, TEXT_SIZE) + 8.0f }, guiTooltipPtr); + GuiSetStyle(LABEL, TEXT_ALIGNMENT, textAlignment); + GuiSetStyle(LABEL, TEXT_PADDING, textPadding); + } +} + +// Split controls text into multiple strings +// Also check for multiple columns (required by GuiToggleGroup()) +static const char **GuiTextSplit(const char *text, char delimiter, int *count, int *textRow) +{ + // NOTE: Current implementation returns a copy of the provided string with '\0' (string end delimiter) + // inserted between strings defined by "delimiter" parameter. No memory is dynamically allocated, + // all used memory is static... it has some limitations: + // 1. Maximum number of possible split strings is set by RAYGUI_TEXTSPLIT_MAX_ITEMS + // 2. Maximum size of text to split is RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE + // NOTE: Those definitions could be externally provided if required + + // TODO: HACK: GuiTextSplit() - Review how textRows are returned to user + // textRow is an externally provided array of integers that stores row number for every splitted string + + #if !defined(RAYGUI_TEXTSPLIT_MAX_ITEMS) + #define RAYGUI_TEXTSPLIT_MAX_ITEMS 128 + #endif + #if !defined(RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE) + #define RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE 1024 + #endif + + static const char *result[RAYGUI_TEXTSPLIT_MAX_ITEMS] = { NULL }; // String pointers array (points to buffer data) + static char buffer[RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE] = { 0 }; // Buffer data (text input copy with '\0' added) + memset(buffer, 0, RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE); + + result[0] = buffer; + int counter = 1; + + if (textRow != NULL) textRow[0] = 0; + + // Count how many substrings we have on text and point to every one + for (int i = 0; i < RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE; i++) + { + buffer[i] = text[i]; + if (buffer[i] == '\0') break; + else if ((buffer[i] == delimiter) || (buffer[i] == '\n')) + { + result[counter] = buffer + i + 1; + + if (textRow != NULL) + { + if (buffer[i] == '\n') textRow[counter] = textRow[counter - 1] + 1; + else textRow[counter] = textRow[counter - 1]; + } + + buffer[i] = '\0'; // Set an end of string at this point + + counter++; + if (counter >= RAYGUI_TEXTSPLIT_MAX_ITEMS) break; + } + } + + *count = counter; + + return result; +} + +// Convert color data from RGB to HSV +// NOTE: Color data should be passed normalized +static Vector3 ConvertRGBtoHSV(Vector3 rgb) +{ + Vector3 hsv = { 0 }; + float min = 0.0f; + float max = 0.0f; + float delta = 0.0f; + + min = (rgb.x < rgb.y)? rgb.x : rgb.y; + min = (min < rgb.z)? min : rgb.z; + + max = (rgb.x > rgb.y)? rgb.x : rgb.y; + max = (max > rgb.z)? max : rgb.z; + + hsv.z = max; // Value + delta = max - min; + + if (delta < 0.00001f) + { + hsv.y = 0.0f; + hsv.x = 0.0f; // Undefined, maybe NAN? + return hsv; + } + + if (max > 0.0f) + { + // NOTE: If max is 0, this divide would cause a crash + hsv.y = (delta/max); // Saturation + } + else + { + // NOTE: If max is 0, then r = g = b = 0, s = 0, h is undefined + hsv.y = 0.0f; + hsv.x = 0.0f; // Undefined, maybe NAN? + return hsv; + } + + // NOTE: Comparing float values could not work properly + if (rgb.x >= max) hsv.x = (rgb.y - rgb.z)/delta; // Between yellow & magenta + else + { + if (rgb.y >= max) hsv.x = 2.0f + (rgb.z - rgb.x)/delta; // Between cyan & yellow + else hsv.x = 4.0f + (rgb.x - rgb.y)/delta; // Between magenta & cyan + } + + hsv.x *= 60.0f; // Convert to degrees + + if (hsv.x < 0.0f) hsv.x += 360.0f; + + return hsv; +} + +// Convert color data from HSV to RGB +// NOTE: Color data should be passed normalized +static Vector3 ConvertHSVtoRGB(Vector3 hsv) +{ + Vector3 rgb = { 0 }; + float hh = 0.0f, p = 0.0f, q = 0.0f, t = 0.0f, ff = 0.0f; + long i = 0; + + // NOTE: Comparing float values could not work properly + if (hsv.y <= 0.0f) + { + rgb.x = hsv.z; + rgb.y = hsv.z; + rgb.z = hsv.z; + return rgb; + } + + hh = hsv.x; + if (hh >= 360.0f) hh = 0.0f; + hh /= 60.0f; + + i = (long)hh; + ff = hh - i; + p = hsv.z*(1.0f - hsv.y); + q = hsv.z*(1.0f - (hsv.y*ff)); + t = hsv.z*(1.0f - (hsv.y*(1.0f - ff))); + + switch (i) + { + case 0: + { + rgb.x = hsv.z; + rgb.y = t; + rgb.z = p; + } break; + case 1: + { + rgb.x = q; + rgb.y = hsv.z; + rgb.z = p; + } break; + case 2: + { + rgb.x = p; + rgb.y = hsv.z; + rgb.z = t; + } break; + case 3: + { + rgb.x = p; + rgb.y = q; + rgb.z = hsv.z; + } break; + case 4: + { + rgb.x = t; + rgb.y = p; + rgb.z = hsv.z; + } break; + case 5: + default: + { + rgb.x = hsv.z; + rgb.y = p; + rgb.z = q; + } break; + } + + return rgb; +} + +// Scroll bar control (used by GuiScrollPanel()) +static int GuiScrollBar(Rectangle bounds, int value, int minValue, int maxValue) +{ + GuiState state = guiState; + + // Is the scrollbar horizontal or vertical? + bool isVertical = (bounds.width > bounds.height)? false : true; + + // The size (width or height depending on scrollbar type) of the spinner buttons + const int spinnerSize = GuiGetStyle(SCROLLBAR, ARROWS_VISIBLE)? + (isVertical? (int)bounds.width - 2*GuiGetStyle(SCROLLBAR, BORDER_WIDTH) : + (int)bounds.height - 2*GuiGetStyle(SCROLLBAR, BORDER_WIDTH)) : 0; + + // Arrow buttons [<] [>] [∧] [∨] + Rectangle arrowUpLeft = { 0 }; + Rectangle arrowDownRight = { 0 }; + + // Actual area of the scrollbar excluding the arrow buttons + Rectangle scrollbar = { 0 }; + + // Slider bar that moves --[///]----- + Rectangle slider = { 0 }; + + // Normalize value + if (value > maxValue) value = maxValue; + if (value < minValue) value = minValue; + + int valueRange = maxValue - minValue; + if (valueRange <= 0) valueRange = 1; + + int sliderSize = GuiGetStyle(SCROLLBAR, SCROLL_SLIDER_SIZE); + if (sliderSize < 1) sliderSize = 1; // TODO: Consider a minimum slider size + + // Calculate rectangles for all of the components + arrowUpLeft = RAYGUI_CLITERAL(Rectangle){ + (float)bounds.x + GuiGetStyle(SCROLLBAR, BORDER_WIDTH), + (float)bounds.y + GuiGetStyle(SCROLLBAR, BORDER_WIDTH), + (float)spinnerSize, (float)spinnerSize }; + + if (isVertical) + { + arrowDownRight = RAYGUI_CLITERAL(Rectangle){ (float)bounds.x + GuiGetStyle(SCROLLBAR, BORDER_WIDTH), (float)bounds.y + bounds.height - spinnerSize - GuiGetStyle(SCROLLBAR, BORDER_WIDTH), (float)spinnerSize, (float)spinnerSize }; + scrollbar = RAYGUI_CLITERAL(Rectangle){ bounds.x + GuiGetStyle(SCROLLBAR, BORDER_WIDTH) + GuiGetStyle(SCROLLBAR, SCROLL_PADDING), arrowUpLeft.y + arrowUpLeft.height, bounds.width - 2*(GuiGetStyle(SCROLLBAR, BORDER_WIDTH) + GuiGetStyle(SCROLLBAR, SCROLL_PADDING)), bounds.height - arrowUpLeft.height - arrowDownRight.height - 2*GuiGetStyle(SCROLLBAR, BORDER_WIDTH) }; + + // Make sure the slider won't get outside of the scrollbar + sliderSize = (sliderSize >= scrollbar.height)? ((int)scrollbar.height - 2) : sliderSize; + slider = RAYGUI_CLITERAL(Rectangle){ + bounds.x + GuiGetStyle(SCROLLBAR, BORDER_WIDTH) + GuiGetStyle(SCROLLBAR, SCROLL_SLIDER_PADDING), + scrollbar.y + (int)(((float)(value - minValue)/valueRange)*(scrollbar.height - sliderSize)), + bounds.width - 2*(GuiGetStyle(SCROLLBAR, BORDER_WIDTH) + GuiGetStyle(SCROLLBAR, SCROLL_SLIDER_PADDING)), + (float)sliderSize }; + } + else // horizontal + { + arrowDownRight = RAYGUI_CLITERAL(Rectangle){ (float)bounds.x + bounds.width - spinnerSize - GuiGetStyle(SCROLLBAR, BORDER_WIDTH), (float)bounds.y + GuiGetStyle(SCROLLBAR, BORDER_WIDTH), (float)spinnerSize, (float)spinnerSize }; + scrollbar = RAYGUI_CLITERAL(Rectangle){ arrowUpLeft.x + arrowUpLeft.width, bounds.y + GuiGetStyle(SCROLLBAR, BORDER_WIDTH) + GuiGetStyle(SCROLLBAR, SCROLL_PADDING), bounds.width - arrowUpLeft.width - arrowDownRight.width - 2*GuiGetStyle(SCROLLBAR, BORDER_WIDTH), bounds.height - 2*(GuiGetStyle(SCROLLBAR, BORDER_WIDTH) + GuiGetStyle(SCROLLBAR, SCROLL_PADDING)) }; + + // Make sure the slider won't get outside of the scrollbar + sliderSize = (sliderSize >= scrollbar.width)? ((int)scrollbar.width - 2) : sliderSize; + slider = RAYGUI_CLITERAL(Rectangle){ + scrollbar.x + (int)(((float)(value - minValue)/valueRange)*(scrollbar.width - sliderSize)), + bounds.y + GuiGetStyle(SCROLLBAR, BORDER_WIDTH) + GuiGetStyle(SCROLLBAR, SCROLL_SLIDER_PADDING), + (float)sliderSize, + bounds.height - 2*(GuiGetStyle(SCROLLBAR, BORDER_WIDTH) + GuiGetStyle(SCROLLBAR, SCROLL_SLIDER_PADDING)) }; + } + + // Update control + //-------------------------------------------------------------------- + if ((state != STATE_DISABLED) && !guiLocked) + { + Vector2 mousePoint = GetMousePosition(); + + if (guiControlExclusiveMode) // Allows to keep dragging outside of bounds + { + if (IsMouseButtonDown(MOUSE_LEFT_BUTTON) && + !CheckCollisionPointRec(mousePoint, arrowUpLeft) && + !CheckCollisionPointRec(mousePoint, arrowDownRight)) + { + if (CHECK_BOUNDS_ID(bounds, guiControlExclusiveRec)) + { + state = STATE_PRESSED; + + if (isVertical) value = (int)(((float)(mousePoint.y - scrollbar.y - slider.height/2)*valueRange)/(scrollbar.height - slider.height) + minValue); + else value = (int)(((float)(mousePoint.x - scrollbar.x - slider.width/2)*valueRange)/(scrollbar.width - slider.width) + minValue); + } + } + else + { + guiControlExclusiveMode = false; + guiControlExclusiveRec = RAYGUI_CLITERAL(Rectangle){ 0, 0, 0, 0 }; + } + } + else if (CheckCollisionPointRec(mousePoint, bounds)) + { + state = STATE_FOCUSED; + + // Handle mouse wheel + int wheel = (int)GetMouseWheelMove(); + if (wheel != 0) value += wheel; + + // Handle mouse button down + if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) + { + guiControlExclusiveMode = true; + guiControlExclusiveRec = bounds; // Store bounds as an identifier when dragging starts + + // Check arrows click + if (CheckCollisionPointRec(mousePoint, arrowUpLeft)) value -= valueRange/GuiGetStyle(SCROLLBAR, SCROLL_SPEED); + else if (CheckCollisionPointRec(mousePoint, arrowDownRight)) value += valueRange/GuiGetStyle(SCROLLBAR, SCROLL_SPEED); + else if (!CheckCollisionPointRec(mousePoint, slider)) + { + // If click on scrollbar position but not on slider, place slider directly on that position + if (isVertical) value = (int)(((float)(mousePoint.y - scrollbar.y - slider.height/2)*valueRange)/(scrollbar.height - slider.height) + minValue); + else value = (int)(((float)(mousePoint.x - scrollbar.x - slider.width/2)*valueRange)/(scrollbar.width - slider.width) + minValue); + } + + state = STATE_PRESSED; + } + + // Keyboard control on mouse hover scrollbar + /* + if (isVertical) + { + if (IsKeyDown(KEY_DOWN)) value += 5; + else if (IsKeyDown(KEY_UP)) value -= 5; + } + else + { + if (IsKeyDown(KEY_RIGHT)) value += 5; + else if (IsKeyDown(KEY_LEFT)) value -= 5; + } + */ + } + + // Normalize value + if (value > maxValue) value = maxValue; + if (value < minValue) value = minValue; + } + //-------------------------------------------------------------------- + + // Draw control + //-------------------------------------------------------------------- + GuiDrawRectangle(bounds, GuiGetStyle(SCROLLBAR, BORDER_WIDTH), GetColor(GuiGetStyle(LISTVIEW, BORDER + state*3)), GetColor(GuiGetStyle(DEFAULT, BORDER_COLOR_DISABLED))); // Draw the background + + GuiDrawRectangle(scrollbar, 0, BLANK, GetColor(GuiGetStyle(BUTTON, BASE_COLOR_NORMAL))); // Draw the scrollbar active area background + GuiDrawRectangle(slider, 0, BLANK, GetColor(GuiGetStyle(SLIDER, BORDER + state*3))); // Draw the slider bar + + // Draw arrows (using icon if available) + if (GuiGetStyle(SCROLLBAR, ARROWS_VISIBLE)) + { +#if defined(RAYGUI_NO_ICONS) + GuiDrawText(isVertical? "^" : "<", + RAYGUI_CLITERAL(Rectangle){ arrowUpLeft.x, arrowUpLeft.y, isVertical? bounds.width : bounds.height, isVertical? bounds.width : bounds.height }, + TEXT_ALIGN_CENTER, GetColor(GuiGetStyle(DROPDOWNBOX, TEXT + (state*3)))); + GuiDrawText(isVertical? "v" : ">", + RAYGUI_CLITERAL(Rectangle){ arrowDownRight.x, arrowDownRight.y, isVertical? bounds.width : bounds.height, isVertical? bounds.width : bounds.height }, + TEXT_ALIGN_CENTER, GetColor(GuiGetStyle(DROPDOWNBOX, TEXT + (state*3)))); +#else + GuiDrawText(isVertical? "#121#" : "#118#", + RAYGUI_CLITERAL(Rectangle){ arrowUpLeft.x, arrowUpLeft.y, isVertical? bounds.width : bounds.height, isVertical? bounds.width : bounds.height }, + TEXT_ALIGN_CENTER, GetColor(GuiGetStyle(SCROLLBAR, TEXT + state*3))); // ICON_ARROW_UP_FILL / ICON_ARROW_LEFT_FILL + GuiDrawText(isVertical? "#120#" : "#119#", + RAYGUI_CLITERAL(Rectangle){ arrowDownRight.x, arrowDownRight.y, isVertical? bounds.width : bounds.height, isVertical? bounds.width : bounds.height }, + TEXT_ALIGN_CENTER, GetColor(GuiGetStyle(SCROLLBAR, TEXT + state*3))); // ICON_ARROW_DOWN_FILL / ICON_ARROW_RIGHT_FILL +#endif + } + //-------------------------------------------------------------------- + + return value; +} + +// Color fade-in or fade-out, alpha goes from 0.0f to 1.0f +// WARNING: It multiplies current alpha by alpha scale factor +static Color GuiFade(Color color, float alpha) +{ + if (alpha < 0.0f) alpha = 0.0f; + else if (alpha > 1.0f) alpha = 1.0f; + + Color result = { color.r, color.g, color.b, (unsigned char)(color.a*alpha) }; + + return result; +} + +#if defined(RAYGUI_STANDALONE) +// Returns a Color struct from hexadecimal value +static Color GetColor(int hexValue) +{ + Color color; + + color.r = (unsigned char)(hexValue >> 24) & 0xff; + color.g = (unsigned char)(hexValue >> 16) & 0xff; + color.b = (unsigned char)(hexValue >> 8) & 0xff; + color.a = (unsigned char)hexValue & 0xff; + + return color; +} + +// Returns hexadecimal value for a Color +static int ColorToInt(Color color) +{ + return (((int)color.r << 24) | ((int)color.g << 16) | ((int)color.b << 8) | (int)color.a); +} + +// Check if point is inside rectangle +static bool CheckCollisionPointRec(Vector2 point, Rectangle rec) +{ + bool collision = false; + + if ((point.x >= rec.x) && (point.x <= (rec.x + rec.width)) && + (point.y >= rec.y) && (point.y <= (rec.y + rec.height))) collision = true; + + return collision; +} + +// Formatting of text with variables to 'embed' +static const char *TextFormat(const char *text, ...) +{ + #if !defined(RAYGUI_TEXTFORMAT_MAX_SIZE) + #define RAYGUI_TEXTFORMAT_MAX_SIZE 256 + #endif + + static char buffer[RAYGUI_TEXTFORMAT_MAX_SIZE]; + + va_list args; + va_start(args, text); + vsnprintf(buffer, RAYGUI_TEXTFORMAT_MAX_SIZE, text, args); + va_end(args); + + return buffer; +} + +// Draw rectangle with vertical gradient fill color +// NOTE: This function is only used by GuiColorPicker() +static void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) +{ + Rectangle bounds = { (float)posX, (float)posY, (float)width, (float)height }; + DrawRectangleGradientEx(bounds, color1, color2, color2, color1); +} + +// Split string into multiple strings +const char **TextSplit(const char *text, char delimiter, int *count) +{ + // NOTE: Current implementation returns a copy of the provided string with '\0' (string end delimiter) + // inserted between strings defined by "delimiter" parameter. No memory is dynamically allocated, + // all used memory is static... it has some limitations: + // 1. Maximum number of possible split strings is set by RAYGUI_TEXTSPLIT_MAX_ITEMS + // 2. Maximum size of text to split is RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE + + #if !defined(RAYGUI_TEXTSPLIT_MAX_ITEMS) + #define RAYGUI_TEXTSPLIT_MAX_ITEMS 128 + #endif + #if !defined(RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE) + #define RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE 1024 + #endif + + static const char *result[RAYGUI_TEXTSPLIT_MAX_ITEMS] = { NULL }; + static char buffer[RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE] = { 0 }; + memset(buffer, 0, RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE); + + result[0] = buffer; + int counter = 0; + + if (text != NULL) + { + counter = 1; + + // Count how many substrings we have on text and point to every one + for (int i = 0; i < RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE; i++) + { + buffer[i] = text[i]; + if (buffer[i] == '\0') break; + else if (buffer[i] == delimiter) + { + buffer[i] = '\0'; // Set an end of string at this point + result[counter] = buffer + i + 1; + counter++; + + if (counter == RAYGUI_TEXTSPLIT_MAX_ITEMS) break; + } + } + } + + *count = counter; + return result; +} + +// Get integer value from text +// NOTE: This function replaces atoi() [stdlib.h] +static int TextToInteger(const char *text) +{ + int value = 0; + int sign = 1; + + if ((text[0] == '+') || (text[0] == '-')) + { + if (text[0] == '-') sign = -1; + text++; + } + + for (int i = 0; ((text[i] >= '0') && (text[i] <= '9')); ++i) value = value*10 + (int)(text[i] - '0'); + + return value*sign; +} + +// Get float value from text +// NOTE: This function replaces atof() [stdlib.h] +// WARNING: Only '.' character is understood as decimal point +static float TextToFloat(const char *text) +{ + float value = 0.0f; + float sign = 1.0f; + + if ((text[0] == '+') || (text[0] == '-')) + { + if (text[0] == '-') sign = -1.0f; + text++; + } + + int i = 0; + for (; ((text[i] >= '0') && (text[i] <= '9')); i++) value = value*10.0f + (float)(text[i] - '0'); + + if (text[i++] != '.') value *= sign; + else + { + float divisor = 10.0f; + for (; ((text[i] >= '0') && (text[i] <= '9')); i++) + { + value += ((float)(text[i] - '0'))/divisor; + divisor = divisor*10.0f; + } + } + + return value; +} + +// Encode codepoint into UTF-8 text (char array size returned as parameter) +static const char *CodepointToUTF8(int codepoint, int *byteSize) +{ + static char utf8[6] = { 0 }; + int size = 0; + + if (codepoint <= 0x7f) + { + utf8[0] = (char)codepoint; + size = 1; + } + else if (codepoint <= 0x7ff) + { + utf8[0] = (char)(((codepoint >> 6) & 0x1f) | 0xc0); + utf8[1] = (char)((codepoint & 0x3f) | 0x80); + size = 2; + } + else if (codepoint <= 0xffff) + { + utf8[0] = (char)(((codepoint >> 12) & 0x0f) | 0xe0); + utf8[1] = (char)(((codepoint >> 6) & 0x3f) | 0x80); + utf8[2] = (char)((codepoint & 0x3f) | 0x80); + size = 3; + } + else if (codepoint <= 0x10ffff) + { + utf8[0] = (char)(((codepoint >> 18) & 0x07) | 0xf0); + utf8[1] = (char)(((codepoint >> 12) & 0x3f) | 0x80); + utf8[2] = (char)(((codepoint >> 6) & 0x3f) | 0x80); + utf8[3] = (char)((codepoint & 0x3f) | 0x80); + size = 4; + } + + *byteSize = size; + + return utf8; +} + +// Get next codepoint in a UTF-8 encoded text, scanning until '\0' is found +// When a invalid UTF-8 byte is encountered we exit as soon as possible and a '?'(0x3f) codepoint is returned +// Total number of bytes processed are returned as a parameter +// NOTE: the standard says U+FFFD should be returned in case of errors +// but that character is not supported by the default font in raylib +static int GetCodepointNext(const char *text, int *codepointSize) +{ + const char *ptr = text; + int codepoint = 0x3f; // Codepoint (defaults to '?') + *codepointSize = 1; + + // Get current codepoint and bytes processed + if (0xf0 == (0xf8 & ptr[0])) + { + // 4 byte UTF-8 codepoint + if (((ptr[1] & 0xC0) ^ 0x80) || ((ptr[2] & 0xC0) ^ 0x80) || ((ptr[3] & 0xC0) ^ 0x80)) { return codepoint; } //10xxxxxx checks + codepoint = ((0x07 & ptr[0]) << 18) | ((0x3f & ptr[1]) << 12) | ((0x3f & ptr[2]) << 6) | (0x3f & ptr[3]); + *codepointSize = 4; + } + else if (0xe0 == (0xf0 & ptr[0])) + { + // 3 byte UTF-8 codepoint + if (((ptr[1] & 0xC0) ^ 0x80) || ((ptr[2] & 0xC0) ^ 0x80)) { return codepoint; } //10xxxxxx checks + codepoint = ((0x0f & ptr[0]) << 12) | ((0x3f & ptr[1]) << 6) | (0x3f & ptr[2]); + *codepointSize = 3; + } + else if (0xc0 == (0xe0 & ptr[0])) + { + // 2 byte UTF-8 codepoint + if ((ptr[1] & 0xC0) ^ 0x80) { return codepoint; } //10xxxxxx checks + codepoint = ((0x1f & ptr[0]) << 6) | (0x3f & ptr[1]); + *codepointSize = 2; + } + else if (0x00 == (0x80 & ptr[0])) + { + // 1 byte UTF-8 codepoint + codepoint = ptr[0]; + *codepointSize = 1; + } + + return codepoint; +} +#endif // RAYGUI_STANDALONE + +#endif // RAYGUI_IMPLEMENTATION diff --git a/include/styles/README.md b/include/styles/README.md new file mode 100644 index 0000000..d20b82e --- /dev/null +++ b/include/styles/README.md @@ -0,0 +1,53 @@ +# raygui styles + +`raygui` comes with **several custom UI styles** carefully designed for the best visual experience. Those styles have been created using [rGuiStyler](https://raylibtech.itch.io/rguistyler) tool and they complement internal [default style](default), always available by `raygui`. + +## styles usage + +To use those styles with your `raygui` development, you need to call `GuiLoadStyle()` function at initialization, passing the `.rgs` file to load. Note that `.rgs` is by default a binary file containing the style required font data (glyphs data + glyph atlas image data). + +Styles can also be embedded in the code if desired, `.h` files are provided with every style containing all the required style data, including the font data. To embed those fonts just add the `.h` to your project and call the required function as specified in the header info. + +Here it is a quick overview of those styles, you can navigate to each directory for additional information. + +#### 1. style: [default](default) +![default style](default/style_default.png) + +#### 2. style: [dark](dark) +![dark style](dark/style_dark.png) + +#### 3. style: [bluish](bluish) +![bluish style](bluish/style_bluish.png) + +#### 4. style: [candy](candy) +![candy style](candy/style_candy.png) + +#### 5. style: [cherry](cherry) +![cherry style](cherry/style_cherry.png) + +#### 6. style: [cyber](cyber) +![cyber style](cyber/style_cyber.png) + +#### 7. style: [jungle](jungle) +![jungle style](jungle/style_jungle.png) + +#### 8. style: [lavanda](lavanda) +![lavanda style](lavanda/style_lavanda.png) + +#### 9. style: [terminal](terminal) +![terminal style](terminal/style_terminal.png) + +#### 10. style: [sunny](sunny) +![sunny style](sunny/style_sunny.png) + +#### 11. style: [ashes](ashes) +![ashes style](ashes/style_ashes.png) + +#### 12. enefete: [enefete](enefete) +![enefete style](enefete/style_enefete.png) + +#### 13. amber: [amber](amber) +![amber style](amber/style_amber.png) + + +*NOTE: Those styles require raylib 5.5 and raygui 4.5* diff --git a/include/styles/amber/README.md b/include/styles/amber/README.md new file mode 100644 index 0000000..6c60ed2 --- /dev/null +++ b/include/styles/amber/README.md @@ -0,0 +1,33 @@ +## style: amber + +Amber accenture and charcoal tones with a light font for nice visuals. + +![amber style table](style_amber.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_amber.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_amber.h` | Embeddable style as code file, self-contained, includes font data | +| `style_amber.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![amber style screen](screenshot.png) + +## about font + +"Hello World" font by Anthony Gross +``` +CATEGORY: Monospace +LANGUAGE SUPPORT: Latin Extended +FORMAT: TTF +LICENSE: Free for personal and commercial use, SIL Open Font License +``` + +This font is licensed under the Open Font License. More info: https://www.dafont.com/es/hello-world.font + +_The style font is optimized to look best at 16px, if you require different sizing please open the style in rGuiStyler and edit it._ diff --git a/include/styles/amber/hello-world.ttf b/include/styles/amber/hello-world.ttf new file mode 100644 index 0000000..7d190b8 Binary files /dev/null and b/include/styles/amber/hello-world.ttf differ diff --git a/include/styles/amber/screenshot.old.png b/include/styles/amber/screenshot.old.png new file mode 100644 index 0000000..80a38df Binary files /dev/null and b/include/styles/amber/screenshot.old.png differ diff --git a/include/styles/amber/screenshot.png b/include/styles/amber/screenshot.png new file mode 100644 index 0000000..3c682e9 Binary files /dev/null and b/include/styles/amber/screenshot.png differ diff --git a/include/styles/amber/style_amber.h b/include/styles/amber/style_amber.h new file mode 100644 index 0000000..e5f585e --- /dev/null +++ b/include/styles/amber/style_amber.h @@ -0,0 +1,608 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleAmber(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define AMBER_STYLE_PROPS_COUNT 18 + +// Custom style name: Amber +static const GuiStyleProp amberStyleProps[AMBER_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x898988ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x292929ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0xd4d4d4ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xeb891dff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0x292929ff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0xffffffff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0xf1cf9dff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0xf39333ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0x191410ff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x6a6a6aff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x818181ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x606060ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x00000010 }, // DEFAULT_TEXT_SIZE + { 0, 18, (int)0xef922aff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x333333ff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000018 }, // DEFAULT_TEXT_LINE_SPACING + { 1, 8, (int)0xe7e0d4ff }, // LABEL_TEXT_COLOR_PRESSED + { 4, 8, (int)0xf1cf9dff }, // SLIDER_TEXT_COLOR_PRESSED +}; + +// WARNING: This style uses a custom font: "hello-world.ttf" (size: 16, spacing: 1) + +#define AMBER_STYLE_FONT_ATLAS_COMP_SIZE 2605 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char amberFontData[AMBER_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0x8b, 0x8e, 0x9c, 0xb8, 0x12, 0x00, 0x50, 0xf8, 0xff, 0x7f, 0x76, 0x5d, 0xe9, 0x66, 0xb3, 0xd2, 0xee, 0x8e, 0x6d, + 0xaa, 0x30, 0x8f, 0xee, 0x9c, 0x1c, 0x45, 0x91, 0x9a, 0x34, 0x18, 0xdb, 0x85, 0x0d, 0x33, 0x94, 0x63, 0x03, 0x00, 0x00, + 0x00, 0x88, 0x2d, 0x5a, 0xe7, 0xb3, 0xcc, 0xe7, 0x5b, 0xf7, 0xf3, 0xf6, 0xd7, 0xe7, 0x6d, 0xb0, 0xed, 0xe8, 0xbe, 0xfa, + 0x65, 0xda, 0x92, 0xfb, 0x89, 0xee, 0x37, 0xe2, 0x87, 0x4f, 0x7e, 0xff, 0xc9, 0xec, 0xa7, 0x77, 0xbe, 0xf9, 0xda, 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, 0xef, 0x97, 0x9e, 0xcf, 0xa4, 0x77, 0x5f, 0x56, 0xfa, 0xda, 0x5d, 0x9e, 0xf1, 0x1f, 0xbe, 0xfb, + 0xd9, 0xb4, 0xf8, 0x07, 0xf1, 0x6f, 0xf6, 0x0f, 0xee, 0x4c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbe, 0xc7, 0xaf, 0x3f, 0xea, 0x01, 0xc4, 0x3f, 0xf0, 0xc7, + 0xc5, 0xff, 0xff, 0x00 }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle amberFontRecs[189] = { + { 4, 4, 5 , 16 }, + { 17, 4, 2 , 10 }, + { 27, 4, 4 , 4 }, + { 39, 4, 5 , 10 }, + { 52, 4, 5 , 11 }, + { 65, 4, 5 , 10 }, + { 78, 4, 5 , 10 }, + { 91, 4, 2 , 4 }, + { 101, 4, 4 , 13 }, + { 113, 4, 5 , 13 }, + { 126, 4, 4 , 4 }, + { 138, 4, 5 , 6 }, + { 151, 4, 3 , 2 }, + { 162, 4, 5 , 2 }, + { 175, 4, 2 , 1 }, + { 185, 4, 5 , 10 }, + { 198, 4, 5 , 10 }, + { 211, 4, 4 , 10 }, + { 223, 4, 5 , 10 }, + { 236, 4, 5 , 10 }, + { 249, 4, 5 , 10 }, + { 262, 4, 5 , 10 }, + { 275, 4, 5 , 10 }, + { 288, 4, 5 , 10 }, + { 301, 4, 5 , 10 }, + { 314, 4, 5 , 10 }, + { 327, 4, 2 , 6 }, + { 337, 4, 2 , 6 }, + { 347, 4, 5 , 6 }, + { 360, 4, 5 , 4 }, + { 373, 4, 5 , 6 }, + { 386, 4, 5 , 10 }, + { 399, 4, 5 , 7 }, + { 412, 4, 5 , 10 }, + { 425, 4, 5 , 10 }, + { 438, 4, 5 , 10 }, + { 451, 4, 5 , 10 }, + { 464, 4, 5 , 10 }, + { 477, 4, 5 , 10 }, + { 490, 4, 5 , 10 }, + { 4, 28, 5 , 10 }, + { 17, 28, 4 , 10 }, + { 29, 28, 5 , 10 }, + { 42, 28, 5 , 10 }, + { 55, 28, 5 , 10 }, + { 68, 28, 5 , 10 }, + { 81, 28, 5 , 10 }, + { 94, 28, 5 , 10 }, + { 107, 28, 5 , 10 }, + { 120, 28, 5 , 10 }, + { 133, 28, 5 , 10 }, + { 146, 28, 5 , 10 }, + { 159, 28, 5 , 10 }, + { 172, 28, 5 , 10 }, + { 185, 28, 5 , 10 }, + { 198, 28, 5 , 10 }, + { 211, 28, 5 , 10 }, + { 224, 28, 5 , 10 }, + { 237, 28, 5 , 10 }, + { 250, 28, 3 , 13 }, + { 261, 28, 5 , 10 }, + { 274, 28, 3 , 13 }, + { 285, 28, 4 , 3 }, + { 297, 28, 5 , 1 }, + { 310, 28, 3 , 3 }, + { 321, 28, 5 , 7 }, + { 334, 28, 5 , 10 }, + { 347, 28, 5 , 7 }, + { 360, 28, 5 , 10 }, + { 373, 28, 5 , 7 }, + { 386, 28, 5 , 10 }, + { 399, 28, 5 , 10 }, + { 412, 28, 5 , 10 }, + { 425, 28, 4 , 10 }, + { 437, 28, 3 , 13 }, + { 448, 28, 5 , 10 }, + { 461, 28, 5 , 10 }, + { 474, 28, 5 , 7 }, + { 487, 28, 5 , 7 }, + { 4, 52, 5 , 7 }, + { 17, 52, 5 , 10 }, + { 30, 52, 5 , 10 }, + { 43, 52, 5 , 7 }, + { 56, 52, 5 , 7 }, + { 69, 52, 5 , 10 }, + { 82, 52, 5 , 7 }, + { 95, 52, 5 , 7 }, + { 108, 52, 5 , 7 }, + { 121, 52, 5 , 7 }, + { 134, 52, 5 , 10 }, + { 147, 52, 5 , 7 }, + { 160, 52, 4 , 13 }, + { 172, 52, 2 , 13 }, + { 182, 52, 4 , 13 }, + { 194, 52, 5 , 4 }, + { 207, 52, 2 , 9 }, + { 217, 52, 5 , 7 }, + { 230, 52, 5 , 10 }, + { 243, 52, 5 , 10 }, + { 256, 52, 5 , 10 }, + { 269, 52, 0 , 0 }, + { 277, 52, 5 , 10 }, + { 290, 52, 0 , 0 }, + { 298, 52, 5 , 7 }, + { 311, 52, 3 , 5 }, + { 322, 52, 5 , 5 }, + { 335, 52, 5 , 3 }, + { 348, 52, 5 , 7 }, + { 361, 52, 5 , 2 }, + { 374, 52, 4 , 4 }, + { 386, 52, 5 , 8 }, + { 399, 52, 3 , 5 }, + { 410, 52, 3 , 6 }, + { 421, 52, 0 , 0 }, + { 429, 52, 5 , 10 }, + { 442, 52, 5 , 10 }, + { 455, 52, 2 , 3 }, + { 465, 52, 0 , 0 }, + { 473, 52, 3 , 5 }, + { 484, 52, 4 , 4 }, + { 496, 52, 5 , 5 }, + { 4, 76, 5 , 10 }, + { 17, 76, 5 , 7 }, + { 30, 76, 5 , 10 }, + { 43, 76, 5 , 10 }, + { 56, 76, 5 , 14 }, + { 69, 76, 5 , 14 }, + { 82, 76, 5 , 14 }, + { 95, 76, 5 , 14 }, + { 108, 76, 5 , 12 }, + { 121, 76, 5 , 12 }, + { 134, 76, 5 , 10 }, + { 147, 76, 5 , 13 }, + { 160, 76, 5 , 14 }, + { 173, 76, 5 , 14 }, + { 186, 76, 5 , 14 }, + { 199, 76, 5 , 12 }, + { 212, 76, 4 , 14 }, + { 224, 76, 4 , 14 }, + { 236, 76, 4 , 14 }, + { 248, 76, 4 , 12 }, + { 260, 76, 5 , 10 }, + { 273, 76, 5 , 14 }, + { 286, 76, 5 , 14 }, + { 299, 76, 5 , 14 }, + { 312, 76, 5 , 14 }, + { 325, 76, 5 , 14 }, + { 338, 76, 5 , 12 }, + { 351, 76, 4 , 3 }, + { 363, 76, 5 , 10 }, + { 376, 76, 5 , 14 }, + { 389, 76, 5 , 14 }, + { 402, 76, 5 , 14 }, + { 415, 76, 5 , 12 }, + { 428, 76, 5 , 14 }, + { 441, 76, 5 , 10 }, + { 454, 76, 5 , 10 }, + { 467, 76, 5 , 10 }, + { 480, 76, 5 , 10 }, + { 493, 76, 5 , 10 }, + { 4, 100, 5 , 10 }, + { 17, 100, 5 , 9 }, + { 30, 100, 5 , 9 }, + { 43, 100, 5 , 7 }, + { 56, 100, 5 , 10 }, + { 69, 100, 5 , 10 }, + { 82, 100, 5 , 10 }, + { 95, 100, 5 , 10 }, + { 108, 100, 5 , 9 }, + { 121, 100, 4 , 10 }, + { 133, 100, 4 , 10 }, + { 145, 100, 4 , 10 }, + { 157, 100, 4 , 9 }, + { 169, 100, 5 , 10 }, + { 182, 100, 5 , 10 }, + { 195, 100, 5 , 10 }, + { 208, 100, 5 , 10 }, + { 221, 100, 5 , 10 }, + { 234, 100, 5 , 10 }, + { 247, 100, 5 , 9 }, + { 260, 100, 5 , 6 }, + { 273, 100, 5 , 7 }, + { 286, 100, 5 , 10 }, + { 299, 100, 5 , 10 }, + { 312, 100, 5 , 10 }, + { 325, 100, 5 , 9 }, + { 338, 100, 5 , 13 }, + { 351, 100, 5 , 10 }, + { 364, 100, 5 , 12 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo amberFontGlyphs[189] = { + { 32, 0, 0, 5, { 0 }}, + { 33, 1, 3, 5, { 0 }}, + { 34, 0, 3, 5, { 0 }}, + { 35, 0, 3, 5, { 0 }}, + { 36, 0, 3, 5, { 0 }}, + { 37, 0, 3, 5, { 0 }}, + { 38, 0, 3, 5, { 0 }}, + { 39, 1, 4, 5, { 0 }}, + { 40, 0, 3, 5, { 0 }}, + { 41, 0, 3, 5, { 0 }}, + { 42, 0, 3, 5, { 0 }}, + { 43, 0, 7, 5, { 0 }}, + { 44, 0, 12, 5, { 0 }}, + { 45, 0, 9, 5, { 0 }}, + { 46, 1, 12, 5, { 0 }}, + { 47, 0, 3, 5, { 0 }}, + { 48, 0, 3, 5, { 0 }}, + { 49, 0, 3, 5, { 0 }}, + { 50, 0, 3, 5, { 0 }}, + { 51, 0, 3, 5, { 0 }}, + { 52, 0, 3, 5, { 0 }}, + { 53, 0, 3, 5, { 0 }}, + { 54, 0, 3, 5, { 0 }}, + { 55, 0, 3, 5, { 0 }}, + { 56, 0, 3, 5, { 0 }}, + { 57, 0, 3, 5, { 0 }}, + { 58, 0, 7, 5, { 0 }}, + { 59, 0, 7, 5, { 0 }}, + { 60, 0, 7, 5, { 0 }}, + { 61, 0, 8, 5, { 0 }}, + { 62, 0, 7, 5, { 0 }}, + { 63, 0, 3, 5, { 0 }}, + { 64, 0, 6, 5, { 0 }}, + { 65, 0, 3, 5, { 0 }}, + { 66, 0, 3, 5, { 0 }}, + { 67, 0, 3, 5, { 0 }}, + { 68, 0, 3, 5, { 0 }}, + { 69, 0, 3, 5, { 0 }}, + { 70, 0, 3, 5, { 0 }}, + { 71, 0, 3, 5, { 0 }}, + { 72, 0, 3, 5, { 0 }}, + { 73, 0, 3, 5, { 0 }}, + { 74, 0, 3, 5, { 0 }}, + { 75, 0, 3, 5, { 0 }}, + { 76, 0, 3, 5, { 0 }}, + { 77, 0, 3, 5, { 0 }}, + { 78, 0, 3, 5, { 0 }}, + { 79, 0, 3, 5, { 0 }}, + { 80, 0, 3, 5, { 0 }}, + { 81, 0, 3, 5, { 0 }}, + { 82, 0, 3, 5, { 0 }}, + { 83, 0, 3, 5, { 0 }}, + { 84, 0, 3, 5, { 0 }}, + { 85, 0, 3, 5, { 0 }}, + { 86, 0, 3, 5, { 0 }}, + { 87, 0, 3, 5, { 0 }}, + { 88, 0, 3, 5, { 0 }}, + { 89, 0, 3, 5, { 0 }}, + { 90, 0, 3, 5, { 0 }}, + { 91, 0, 3, 5, { 0 }}, + { 92, 0, 3, 5, { 0 }}, + { 93, 0, 3, 5, { 0 }}, + { 94, 0, 3, 5, { 0 }}, + { 95, 0, 12, 5, { 0 }}, + { 96, 1, 4, 5, { 0 }}, + { 97, 0, 6, 5, { 0 }}, + { 98, 0, 3, 5, { 0 }}, + { 99, 0, 6, 5, { 0 }}, + { 100, 0, 3, 5, { 0 }}, + { 101, 0, 6, 5, { 0 }}, + { 102, 0, 3, 5, { 0 }}, + { 103, 0, 6, 5, { 0 }}, + { 104, 0, 3, 5, { 0 }}, + { 105, 0, 3, 5, { 0 }}, + { 106, 0, 3, 5, { 0 }}, + { 107, 0, 3, 5, { 0 }}, + { 108, 0, 3, 5, { 0 }}, + { 109, 0, 6, 5, { 0 }}, + { 110, 0, 6, 5, { 0 }}, + { 111, 0, 6, 5, { 0 }}, + { 112, 0, 6, 5, { 0 }}, + { 113, 0, 6, 5, { 0 }}, + { 114, 0, 6, 5, { 0 }}, + { 115, 0, 6, 5, { 0 }}, + { 116, 0, 3, 5, { 0 }}, + { 117, 0, 6, 5, { 0 }}, + { 118, 0, 6, 5, { 0 }}, + { 119, 0, 6, 5, { 0 }}, + { 120, 0, 6, 5, { 0 }}, + { 121, 0, 6, 5, { 0 }}, + { 122, 0, 6, 5, { 0 }}, + { 123, 0, 3, 5, { 0 }}, + { 124, 1, 3, 5, { 0 }}, + { 125, 0, 3, 5, { 0 }}, + { 126, 0, 8, 5, { 0 }}, + { 161, 1, 4, 5, { 0 }}, + { 162, 0, 6, 5, { 0 }}, + { 163, 0, 3, 5, { 0 }}, + { 8364, 0, 3, 5, { 0 }}, + { 165, 0, 3, 5, { 0 }}, + { 352, 0, 0, 0, { 0 }}, + { 167, 0, 3, 5, { 0 }}, + { 353, 0, 0, 0, { 0 }}, + { 169, 0, 6, 5, { 0 }}, + { 170, 2, 3, 5, { 0 }}, + { 171, 0, 8, 5, { 0 }}, + { 172, 0, 6, 5, { 0 }}, + { 174, 0, 6, 5, { 0 }}, + { 175, 0, 3, 5, { 0 }}, + { 176, 1, 3, 5, { 0 }}, + { 177, 0, 5, 5, { 0 }}, + { 178, 2, 3, 5, { 0 }}, + { 179, 2, 3, 5, { 0 }}, + { 381, 0, 0, 0, { 0 }}, + { 181, 0, 6, 5, { 0 }}, + { 182, 0, 3, 5, { 0 }}, + { 183, 1, 6, 5, { 0 }}, + { 382, 0, 0, 0, { 0 }}, + { 185, 0, 3, 5, { 0 }}, + { 186, 0, 3, 5, { 0 }}, + { 187, 0, 8, 5, { 0 }}, + { 338, 0, 3, 5, { 0 }}, + { 339, 0, 6, 5, { 0 }}, + { 376, 0, 3, 5, { 0 }}, + { 191, 0, 3, 5, { 0 }}, + { 192, 0, -1, 5, { 0 }}, + { 193, 0, -1, 5, { 0 }}, + { 194, 0, -1, 5, { 0 }}, + { 195, 0, -1, 5, { 0 }}, + { 196, 0, 1, 5, { 0 }}, + { 197, 0, 1, 5, { 0 }}, + { 198, 0, 3, 5, { 0 }}, + { 199, 0, 3, 5, { 0 }}, + { 200, 0, -1, 5, { 0 }}, + { 201, 0, -1, 5, { 0 }}, + { 202, 0, -1, 5, { 0 }}, + { 203, 0, 1, 5, { 0 }}, + { 204, 0, -1, 5, { 0 }}, + { 205, 0, -1, 5, { 0 }}, + { 206, 0, -1, 5, { 0 }}, + { 207, 0, 1, 5, { 0 }}, + { 208, 0, 3, 5, { 0 }}, + { 209, 0, -1, 5, { 0 }}, + { 210, 0, -1, 5, { 0 }}, + { 211, 0, -1, 5, { 0 }}, + { 212, 0, -1, 5, { 0 }}, + { 213, 0, -1, 5, { 0 }}, + { 214, 0, 1, 5, { 0 }}, + { 215, 0, 10, 5, { 0 }}, + { 216, 0, 3, 5, { 0 }}, + { 217, 0, -1, 5, { 0 }}, + { 218, 0, -1, 5, { 0 }}, + { 219, 0, -1, 5, { 0 }}, + { 220, 0, 1, 5, { 0 }}, + { 221, 0, -1, 5, { 0 }}, + { 222, 0, 3, 5, { 0 }}, + { 223, 0, 3, 5, { 0 }}, + { 224, 0, 3, 5, { 0 }}, + { 225, 0, 3, 5, { 0 }}, + { 226, 0, 3, 5, { 0 }}, + { 227, 0, 3, 5, { 0 }}, + { 228, 0, 4, 5, { 0 }}, + { 229, 0, 4, 5, { 0 }}, + { 230, 0, 6, 5, { 0 }}, + { 231, 0, 6, 5, { 0 }}, + { 232, 0, 3, 5, { 0 }}, + { 233, 0, 3, 5, { 0 }}, + { 234, 0, 3, 5, { 0 }}, + { 235, 0, 4, 5, { 0 }}, + { 236, 0, 3, 5, { 0 }}, + { 237, 0, 3, 5, { 0 }}, + { 238, 0, 3, 5, { 0 }}, + { 239, 0, 4, 5, { 0 }}, + { 240, 0, 3, 5, { 0 }}, + { 241, 0, 3, 5, { 0 }}, + { 242, 0, 3, 5, { 0 }}, + { 243, 0, 3, 5, { 0 }}, + { 244, 0, 3, 5, { 0 }}, + { 245, 0, 3, 5, { 0 }}, + { 246, 0, 4, 5, { 0 }}, + { 247, 0, 7, 5, { 0 }}, + { 248, 0, 6, 5, { 0 }}, + { 249, 0, 3, 5, { 0 }}, + { 250, 0, 3, 5, { 0 }}, + { 251, 0, 3, 5, { 0 }}, + { 252, 0, 4, 5, { 0 }}, + { 253, 0, 3, 5, { 0 }}, + { 254, 0, 3, 5, { 0 }}, + { 255, 0, 4, 5, { 0 }}, +}; + +// Style loading function: Amber +static void GuiLoadStyleAmber(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < AMBER_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(amberStyleProps[i].controlId, amberStyleProps[i].propertyId, amberStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int amberFontDataSize = 0; + unsigned char *data = DecompressData(amberFontData, AMBER_STYLE_FONT_ATLAS_COMP_SIZE, &amberFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 16; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, amberFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, amberFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/amber/style_amber.png b/include/styles/amber/style_amber.png new file mode 100644 index 0000000..c428155 Binary files /dev/null and b/include/styles/amber/style_amber.png differ diff --git a/include/styles/amber/style_amber.rgs b/include/styles/amber/style_amber.rgs new file mode 100644 index 0000000..44d806e Binary files /dev/null and b/include/styles/amber/style_amber.rgs differ diff --git a/include/styles/ashes/README.md b/include/styles/ashes/README.md new file mode 100644 index 0000000..b1d4de5 --- /dev/null +++ b/include/styles/ashes/README.md @@ -0,0 +1,27 @@ +## style: ashes + +What once was life now is ashes, just as slight reminiscense covers the ground, a gray sequence of tones that reminds to a distant past. + +![ashes style table](style_ashes.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_ashes.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_ashes.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_ashes.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_ashes.h` | Embeddable style as code file, self-contained, includes font data | +| `style_ashes.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![ashes style screen](screenshot.png) + +## about font + +"V5 Loxica Lixera" font by vFive Digital (Roberto Christen). + +100% free font, downloaded from dafont.com: [v5loxica-lixera](https://www.dafont.com/v5loxica-lixera.font) diff --git a/include/styles/ashes/charset.txt b/include/styles/ashes/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/ashes/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/ashes/font_readme.txt b/include/styles/ashes/font_readme.txt new file mode 100644 index 0000000..1a6b338 --- /dev/null +++ b/include/styles/ashes/font_readme.txt @@ -0,0 +1,51 @@ + +V5 Loxica +--------------- +Instructions: + + +++ Loxica (LIXERA) ++ + +For screen use, set at 16pt. Turn +antialiasing off. Set tracking to zero +for best results. + +++ Loxica (ROBUSTA) ++ + +For screen use, set at 18pt. Turn +antialiasing off. Set tracking to zero +for best results. + + +Notes: + +1. These faces do not contain any hinting +information since they were built for use +at the sizes listed above. Naturally, for +print use you are free to experiment. + +2. Although the intended size for _lixera_ +is 16pt (vs. 18pt for _robusta_), they share +the same optical size (where lixera is the +regular weight, and robusta is the bold). + +3. Pronounciation: "lo-hee-ka lee-he-ra", and +"lo-hee-ka ro-bus-ta." + + + +--------------- +Usage: This is a free font--you may use +this and other V5 fonts at will. It may not +be sold, altered, or improperly credited, +however. All I ask is that you kindly inform +me if you find this font useful, and where +you've used it. + +Enjoy, + +2000 +Roberto Christen +rob@vfive.com + + diff --git a/include/styles/ashes/screenshot.old.png b/include/styles/ashes/screenshot.old.png new file mode 100644 index 0000000..fb20893 Binary files /dev/null and b/include/styles/ashes/screenshot.old.png differ diff --git a/include/styles/ashes/screenshot.png b/include/styles/ashes/screenshot.png new file mode 100644 index 0000000..d7bb693 Binary files /dev/null and b/include/styles/ashes/screenshot.png differ diff --git a/include/styles/ashes/style_ashes.h b/include/styles/ashes/style_ashes.h new file mode 100644 index 0000000..2f7189d --- /dev/null +++ b/include/styles/ashes/style_ashes.h @@ -0,0 +1,565 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleAshes(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define ASHES_STYLE_PROPS_COUNT 16 + +// Custom style name: Ashes +static const GuiStyleProp ashesStyleProps[ASHES_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0xf0f0f0ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x868686ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0xe6e6e6ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0x929999ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0xeaeaeaff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0x98a1a8ff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0x3f3f3fff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0xf6f6f6ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0x414141ff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x8b8b8bff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x777777ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x959595ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x00000010 }, // DEFAULT_TEXT_SIZE + { 0, 18, (int)0x9dadb1ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x6b6b6bff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000018 }, // DEFAULT_TEXT_LINE_SPACING +}; + +// WARNING: This style uses a custom font: "v5loxical.ttf" (size: 16, spacing: 1) + +#define ASHES_STYLE_FONT_ATLAS_COMP_SIZE 1800 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char ashesFontData[ASHES_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0x9d, 0x51, 0xb6, 0xa4, 0x36, 0x0c, 0x44, 0xbd, 0xff, 0x4d, 0x57, 0xbe, 0x72, 0x32, 0xc9, 0x49, 0x83, 0x25, 0x97, 0xb0, + 0x0c, 0x77, 0xee, 0x5f, 0xbf, 0x1e, 0x1a, 0x5c, 0xc8, 0x06, 0xbb, 0x24, 0x6b, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x07, 0xfd, + 0xef, 0x27, 0xfa, 0xf9, 0x4d, 0x4d, 0x1f, 0xe7, 0xdf,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+ 0x00, 0xfd, 0x3d, 0xfb, 0x36, 0xa0, 0x7f, 0x27, 0x3f, 0x74, 0x34, 0xfe, 0x87, 0x25, 0xc3, 0x1c, 0xfd, 0xbb, 0xf8, 0xa1, + 0xd1, 0xbf, 0x4f, 0x9e, 0x46, 0x6f, 0xfd, 0xcf, 0x7b, 0xff, 0x1b, 0xc5, 0xb5, 0xd1, 0xdf, 0xe3, 0x87, 0x67, 0x0e, 0x88, + 0xf9, 0x27, 0x40, 0x7f, 0xf8, 0xa2, 0xf6, 0xa8, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa7, 0x7a, 0x16, + 0x01, 0xfd, 0x01, 0x00, 0x80, 0xfe, 0x1f, 0xd0, 0x1f, 0xd0, 0x1f, 0xd0, 0x1f, 0xd0, 0x1f, 0xd0, 0x1f, 0xd0, 0x1f, 0xb2, + 0x15, 0x0d, 0x68, 0x07, 0x7a, 0x01, 0x40, 0x7f, 0xc0, 0x39, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xbb, 0x01, 0xfd, 0x61, 0xab, 0xfe, 0x7f, 0x01 }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle ashesFontRecs[189] = { + { 4, 4, 4 , 16 }, + { 16, 4, 1 , 10 }, + { 25, 4, 3 , 3 }, + { 36, 4, 6 , 8 }, + { 50, 4, 5 , 11 }, + { 63, 4, 7 , 8 }, + { 78, 4, 6 , 9 }, + { 92, 4, 1 , 3 }, + { 101, 4, 3 , 12 }, + { 112, 4, 3 , 12 }, + { 123, 4, 5 , 5 }, + { 136, 4, 5 , 5 }, + { 149, 4, 2 , 2 }, + { 159, 4, 4 , 1 }, + { 171, 4, 1 , 1 }, + { 180, 4, 5 , 10 }, + { 193, 4, 4 , 8 }, + { 205, 4, 2 , 8 }, + { 215, 4, 4 , 8 }, + { 227, 4, 4 , 8 }, + { 239, 4, 6 , 8 }, + { 4, 28, 4 , 8 }, + { 16, 28, 4 , 8 }, + { 28, 28, 4 , 8 }, + { 40, 28, 4 , 8 }, + { 52, 28, 4 , 8 }, + { 64, 28, 1 , 5 }, + { 73, 28, 2 , 6 }, + { 83, 28, 4 , 7 }, + { 95, 28, 4 , 4 }, + { 107, 28, 4 , 7 }, + { 119, 28, 4 , 10 }, + { 131, 28, 8 , 7 }, + { 147, 28, 4 , 10 }, + { 159, 28, 4 , 10 }, + { 171, 28, 4 , 10 }, + { 183, 28, 4 , 10 }, + { 195, 28, 4 , 10 }, + { 207, 28, 5 , 10 }, + { 220, 28, 4 , 10 }, + { 232, 28, 4 , 10 }, + { 244, 28, 1 , 10 }, + { 4, 52, 3 , 10 }, + { 15, 52, 4 , 10 }, + { 27, 52, 4 , 10 }, + { 39, 52, 7 , 10 }, + { 54, 52, 4 , 10 }, + { 66, 52, 4 , 10 }, + { 78, 52, 4 , 10 }, + { 90, 52, 5 , 11 }, + { 103, 52, 4 , 10 }, + { 115, 52, 4 , 10 }, + { 127, 52, 5 , 10 }, + { 140, 52, 4 , 10 }, + { 152, 52, 4 , 10 }, + { 164, 52, 7 , 10 }, + { 179, 52, 4 , 10 }, + { 191, 52, 4 , 10 }, + { 203, 52, 4 , 10 }, + { 215, 52, 2 , 12 }, + { 225, 52, 5 , 10 }, + { 238, 52, 2 , 12 }, + { 4, 76, 5 , 3 }, + { 17, 76, 5 , 1 }, + { 30, 76, 2 , 2 }, + { 40, 76, 4 , 8 }, + { 52, 76, 4 , 10 }, + { 64, 76, 3 , 8 }, + { 75, 76, 4 , 10 }, + { 87, 76, 4 , 8 }, + { 99, 76, 3 , 10 }, + { 110, 76, 5 , 11 }, + { 123, 76, 4 , 10 }, + { 135, 76, 1 , 10 }, + { 144, 76, 3 , 13 }, + { 155, 76, 4 , 10 }, + { 167, 76, 2 , 10 }, + { 177, 76, 7 , 8 }, + { 192, 76, 4 , 8 }, + { 204, 76, 4 , 8 }, + { 216, 76, 4 , 11 }, + { 228, 76, 4 , 11 }, + { 240, 76, 3 , 8 }, + { 4, 100, 4 , 8 }, + { 16, 100, 3 , 10 }, + { 27, 100, 4 , 8 }, + { 39, 100, 5 , 8 }, + { 52, 100, 7 , 8 }, + { 67, 100, 4 , 8 }, + { 79, 100, 4 , 11 }, + { 91, 100, 4 , 8 }, + { 103, 100, 4 , 12 }, + { 115, 100, 1 , 10 }, + { 124, 100, 4 , 12 }, + { 136, 100, 4 , 2 }, + { 148, 100, 1 , 10 }, + { 157, 100, 4 , 12 }, + { 169, 100, 5 , 10 }, + { 182, 100, 5 , 10 }, + { 195, 100, 5 , 10 }, + { 208, 100, 0 , 0 }, + { 216, 100, 4 , 10 }, + { 228, 100, 0 , 0 }, + { 236, 100, 7 , 9 }, + { 4, 124, 3 , 7 }, + { 15, 124, 6 , 5 }, + { 29, 124, 0 , 0 }, + { 37, 124, 7 , 9 }, + { 52, 124, 4 , 1 }, + { 64, 124, 3 , 5 }, + { 75, 124, 5 , 7 }, + { 88, 124, 3 , 5 }, + { 99, 124, 0 , 0 }, + { 107, 124, 0 , 0 }, + { 115, 124, 4 , 11 }, + { 127, 124, 6 , 10 }, + { 141, 124, 3 , 3 }, + { 152, 124, 0 , 0 }, + { 160, 124, 2 , 5 }, + { 170, 124, 3 , 5 }, + { 181, 124, 6 , 5 }, + { 195, 124, 7 , 10 }, + { 210, 124, 7 , 8 }, + { 225, 124, 0 , 0 }, + { 233, 124, 4 , 10 }, + { 4, 148, 4 , 13 }, + { 16, 148, 4 , 13 }, + { 28, 148, 4 , 13 }, + { 40, 148, 4 , 13 }, + { 52, 148, 4 , 13 }, + { 64, 148, 4 , 13 }, + { 76, 148, 7 , 10 }, + { 91, 148, 4 , 13 }, + { 103, 148, 4 , 13 }, + { 115, 148, 4 , 13 }, + { 127, 148, 4 , 13 }, + { 139, 148, 4 , 13 }, + { 151, 148, 2 , 13 }, + { 161, 148, 2 , 13 }, + { 171, 148, 3 , 13 }, + { 182, 148, 3 , 13 }, + { 193, 148, 5 , 10 }, + { 206, 148, 4 , 13 }, + { 218, 148, 4 , 13 }, + { 230, 148, 4 , 13 }, + { 242, 148, 4 , 13 }, + { 4, 172, 4 , 13 }, + { 16, 172, 4 , 13 }, + { 28, 172, 5 , 5 }, + { 41, 172, 6 , 12 }, + { 55, 172, 4 , 13 }, + { 67, 172, 4 , 13 }, + { 79, 172, 4 , 13 }, + { 91, 172, 4 , 13 }, + { 103, 172, 4 , 13 }, + { 115, 172, 0 , 0 }, + { 123, 172, 5 , 12 }, + { 136, 172, 4 , 12 }, + { 148, 172, 4 , 12 }, + { 160, 172, 4 , 12 }, + { 172, 172, 4 , 12 }, + { 184, 172, 4 , 12 }, + { 196, 172, 4 , 12 }, + { 208, 172, 7 , 8 }, + { 223, 172, 3 , 11 }, + { 234, 172, 4 , 12 }, + { 4, 196, 4 , 12 }, + { 16, 196, 4 , 12 }, + { 28, 196, 4 , 12 }, + { 40, 196, 3 , 12 }, + { 51, 196, 3 , 12 }, + { 62, 196, 3 , 12 }, + { 73, 196, 3 , 12 }, + { 84, 196, 0 , 0 }, + { 92, 196, 4 , 12 }, + { 104, 196, 4 , 12 }, + { 116, 196, 4 , 12 }, + { 128, 196, 4 , 12 }, + { 140, 196, 4 , 12 }, + { 152, 196, 4 , 12 }, + { 164, 196, 5 , 5 }, + { 177, 196, 6 , 10 }, + { 191, 196, 4 , 12 }, + { 203, 196, 4 , 12 }, + { 215, 196, 4 , 12 }, + { 227, 196, 4 , 12 }, + { 239, 196, 4 , 15 }, + { 4, 220, 0 , 0 }, + { 12, 220, 4 , 15 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo ashesFontGlyphs[189] = { + { 32, 0, 0, 4, { 0 }}, + { 33, 0, 3, 4, { 0 }}, + { 34, 0, 1, 5, { 0 }}, + { 35, 0, 4, 8, { 0 }}, + { 36, 0, 2, 7, { 0 }}, + { 37, 0, 5, 9, { 0 }}, + { 38, 0, 4, 8, { 0 }}, + { 39, 0, 1, 3, { 0 }}, + { 40, 0, 2, 5, { 0 }}, + { 41, 0, 2, 5, { 0 }}, + { 42, 0, 3, 7, { 0 }}, + { 43, 0, 6, 7, { 0 }}, + { 44, 0, 12, 4, { 0 }}, + { 45, 0, 9, 5, { 0 }}, + { 46, 0, 12, 3, { 0 }}, + { 47, 0, 3, 7, { 0 }}, + { 48, 0, 5, 6, { 0 }}, + { 49, 0, 5, 4, { 0 }}, + { 50, 0, 5, 6, { 0 }}, + { 51, 0, 5, 6, { 0 }}, + { 52, 0, 5, 8, { 0 }}, + { 53, 0, 5, 6, { 0 }}, + { 54, 0, 5, 6, { 0 }}, + { 55, 0, 5, 6, { 0 }}, + { 56, 0, 5, 6, { 0 }}, + { 57, 0, 5, 6, { 0 }}, + { 58, 0, 8, 3, { 0 }}, + { 59, 0, 8, 4, { 0 }}, + { 60, 0, 5, 6, { 0 }}, + { 61, 0, 7, 7, { 0 }}, + { 62, 0, 5, 6, { 0 }}, + { 63, 1, 3, 7, { 0 }}, + { 64, 0, 5, 10, { 0 }}, + { 65, 0, 3, 6, { 0 }}, + { 66, 0, 3, 6, { 0 }}, + { 67, 0, 3, 6, { 0 }}, + { 68, 0, 3, 6, { 0 }}, + { 69, 0, 3, 6, { 0 }}, + { 70, 0, 3, 6, { 0 }}, + { 71, 0, 3, 6, { 0 }}, + { 72, 0, 3, 6, { 0 }}, + { 73, 0, 3, 3, { 0 }}, + { 74, 0, 3, 5, { 0 }}, + { 75, 0, 3, 6, { 0 }}, + { 76, 0, 3, 6, { 0 }}, + { 77, 0, 3, 9, { 0 }}, + { 78, 0, 3, 6, { 0 }}, + { 79, 0, 3, 6, { 0 }}, + { 80, 0, 3, 6, { 0 }}, + { 81, 0, 3, 7, { 0 }}, + { 82, 0, 3, 6, { 0 }}, + { 83, 0, 3, 6, { 0 }}, + { 84, 0, 3, 6, { 0 }}, + { 85, 0, 3, 6, { 0 }}, + { 86, 0, 3, 6, { 0 }}, + { 87, 0, 3, 9, { 0 }}, + { 88, 0, 3, 6, { 0 }}, + { 89, 0, 3, 6, { 0 }}, + { 90, 0, 3, 6, { 0 }}, + { 91, 0, 2, 4, { 0 }}, + { 92, 0, 3, 7, { 0 }}, + { 93, 0, 2, 4, { 0 }}, + { 94, 0, 3, 7, { 0 }}, + { 95, 0, 12, 7, { 0 }}, + { 96, 0, 1, 4, { 0 }}, + { 97, 0, 5, 6, { 0 }}, + { 98, 0, 3, 6, { 0 }}, + { 99, 0, 5, 5, { 0 }}, + { 100, 0, 3, 6, { 0 }}, + { 101, 0, 5, 6, { 0 }}, + { 102, 0, 3, 5, { 0 }}, + { 103, 0, 5, 6, { 0 }}, + { 104, 0, 3, 6, { 0 }}, + { 105, 0, 3, 3, { 0 }}, + { 106, 0, 3, 5, { 0 }}, + { 107, 0, 3, 6, { 0 }}, + { 108, 0, 3, 4, { 0 }}, + { 109, 0, 5, 9, { 0 }}, + { 110, 0, 5, 6, { 0 }}, + { 111, 0, 5, 6, { 0 }}, + { 112, 0, 5, 6, { 0 }}, + { 113, 0, 5, 6, { 0 }}, + { 114, 0, 5, 5, { 0 }}, + { 115, 0, 5, 6, { 0 }}, + { 116, 0, 3, 5, { 0 }}, + { 117, 0, 5, 6, { 0 }}, + { 118, 0, 5, 7, { 0 }}, + { 119, 0, 5, 9, { 0 }}, + { 120, 0, 5, 6, { 0 }}, + { 121, 0, 5, 6, { 0 }}, + { 122, 0, 5, 6, { 0 }}, + { 123, 0, 2, 6, { 0 }}, + { 124, 0, 3, 3, { 0 }}, + { 125, 0, 2, 6, { 0 }}, + { 126, 0, 1, 6, { 0 }}, + { 161, 0, 4, 4, { 0 }}, + { 162, 0, 3, 6, { 0 }}, + { 163, 0, 3, 7, { 0 }}, + { 8364, 0, 3, 7, { 0 }}, + { 165, 0, 3, 7, { 0 }}, + { 352, 0, 0, 0, { 0 }}, + { 167, 0, 3, 6, { 0 }}, + { 353, 0, 0, 0, { 0 }}, + { 169, 0, 1, 9, { 0 }}, + { 170, 0, 1, 5, { 0 }}, + { 171, 0, 6, 8, { 0 }}, + { 172, 0, 0, 0, { 0 }}, + { 174, 0, 1, 9, { 0 }}, + { 175, 0, 0, 6, { 0 }}, + { 176, 0, 1, 5, { 0 }}, + { 177, 0, 5, 7, { 0 }}, + { 178, 0, 1, 5, { 0 }}, + { 179, 0, 0, 0, { 0 }}, + { 381, 0, 0, 0, { 0 }}, + { 181, 0, 5, 6, { 0 }}, + { 182, 0, 3, 8, { 0 }}, + { 183, 0, 7, 5, { 0 }}, + { 382, 0, 0, 0, { 0 }}, + { 185, 0, 1, 4, { 0 }}, + { 186, 0, 1, 5, { 0 }}, + { 187, 0, 6, 8, { 0 }}, + { 338, 0, 3, 9, { 0 }}, + { 339, 0, 5, 9, { 0 }}, + { 376, 0, 0, 0, { 0 }}, + { 191, 0, 4, 6, { 0 }}, + { 192, 0, 0, 6, { 0 }}, + { 193, 0, 0, 6, { 0 }}, + { 194, 0, 0, 6, { 0 }}, + { 195, 0, 0, 6, { 0 }}, + { 196, 0, 0, 6, { 0 }}, + { 197, 0, 0, 6, { 0 }}, + { 198, 0, 3, 9, { 0 }}, + { 199, 0, 3, 6, { 0 }}, + { 200, 0, 0, 6, { 0 }}, + { 201, 0, 0, 6, { 0 }}, + { 202, 0, 0, 6, { 0 }}, + { 203, 0, 0, 6, { 0 }}, + { 204, 0, 0, 4, { 0 }}, + { 205, 0, 0, 4, { 0 }}, + { 206, 0, 0, 5, { 0 }}, + { 207, 0, 0, 5, { 0 }}, + { 208, 0, 3, 7, { 0 }}, + { 209, 0, 0, 6, { 0 }}, + { 210, 0, 0, 6, { 0 }}, + { 211, 0, 0, 6, { 0 }}, + { 212, 0, 0, 6, { 0 }}, + { 213, 0, 0, 6, { 0 }}, + { 214, 0, 0, 6, { 0 }}, + { 215, 0, 7, 7, { 0 }}, + { 216, 0, 2, 8, { 0 }}, + { 217, 0, 0, 6, { 0 }}, + { 218, 0, 0, 6, { 0 }}, + { 219, 0, 0, 6, { 0 }}, + { 220, 0, 0, 6, { 0 }}, + { 221, 0, 0, 6, { 0 }}, + { 222, 0, 0, 0, { 0 }}, + { 223, 0, 3, 7, { 0 }}, + { 224, 0, 1, 6, { 0 }}, + { 225, 0, 1, 6, { 0 }}, + { 226, 0, 1, 6, { 0 }}, + { 227, 0, 1, 6, { 0 }}, + { 228, 0, 1, 6, { 0 }}, + { 229, 0, 1, 6, { 0 }}, + { 230, 0, 5, 9, { 0 }}, + { 231, 0, 5, 5, { 0 }}, + { 232, 0, 1, 6, { 0 }}, + { 233, 0, 1, 6, { 0 }}, + { 234, 0, 1, 6, { 0 }}, + { 235, 0, 1, 6, { 0 }}, + { 236, 0, 1, 5, { 0 }}, + { 237, 0, 1, 5, { 0 }}, + { 238, 0, 1, 5, { 0 }}, + { 239, 0, 1, 5, { 0 }}, + { 240, 0, 0, 0, { 0 }}, + { 241, 0, 1, 6, { 0 }}, + { 242, 0, 1, 6, { 0 }}, + { 243, 0, 1, 6, { 0 }}, + { 244, 0, 1, 6, { 0 }}, + { 245, 0, 1, 6, { 0 }}, + { 246, 0, 1, 6, { 0 }}, + { 247, 0, 7, 7, { 0 }}, + { 248, 0, 4, 8, { 0 }}, + { 249, 0, 1, 6, { 0 }}, + { 250, 0, 1, 6, { 0 }}, + { 251, 0, 1, 6, { 0 }}, + { 252, 0, 1, 6, { 0 }}, + { 253, 0, 1, 6, { 0 }}, + { 254, 0, 0, 0, { 0 }}, + { 255, 0, 1, 6, { 0 }}, +}; + +// Style loading function: Ashes +static void GuiLoadStyleAshes(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < ASHES_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(ashesStyleProps[i].controlId, ashesStyleProps[i].propertyId, ashesStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int ashesFontDataSize = 0; + unsigned char *data = DecompressData(ashesFontData, ASHES_STYLE_FONT_ATLAS_COMP_SIZE, &ashesFontDataSize); + Image imFont = { data, 256, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 16; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, ashesFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, ashesFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 254, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/ashes/style_ashes.png b/include/styles/ashes/style_ashes.png new file mode 100644 index 0000000..2094965 Binary files /dev/null and b/include/styles/ashes/style_ashes.png differ diff --git a/include/styles/ashes/style_ashes.rgs b/include/styles/ashes/style_ashes.rgs new file mode 100644 index 0000000..56fb93b Binary files /dev/null and b/include/styles/ashes/style_ashes.rgs differ diff --git a/include/styles/ashes/style_ashes.txt.rgs b/include/styles/ashes/style_ashes.txt.rgs new file mode 100644 index 0000000..c66a8b4 --- /dev/null +++ b/include/styles/ashes/style_ashes.txt.rgs @@ -0,0 +1,26 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 16 charset.txt v5loxical.ttf +p 00 00 0xf0f0f0ff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0x868686ff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0xe6e6e6ff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0x929999ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0xeaeaeaff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0x98a1a8ff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0x3f3f3fff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0xf6f6f6ff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0x414141ff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0x8b8b8bff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0x777777ff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x959595ff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x00000010 TEXT_SIZE +p 00 18 0x9dadb1ff LINE_COLOR +p 00 19 0x6b6b6bff BACKGROUND_COLOR +p 00 20 0x00000018 TEXT_LINE_SPACING diff --git a/include/styles/ashes/v5loxical.ttf b/include/styles/ashes/v5loxical.ttf new file mode 100644 index 0000000..61501cb Binary files /dev/null and b/include/styles/ashes/v5loxical.ttf differ diff --git a/include/styles/bluish/README.md b/include/styles/bluish/README.md new file mode 100644 index 0000000..c8390b3 --- /dev/null +++ b/include/styles/bluish/README.md @@ -0,0 +1,27 @@ +## style: bluish + +Like a breeze, a slight touch of color cover the clear sky, a spacious and relaxing feeling. + +![bluish style table](style_bluish.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_bluish.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_bluish.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_bluish.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_bluish.h` | Embeddable style as code file, self-contained, includes font data | +| `style_bluish.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![bluish style screen](screenshot.png) + +## about font + +"Homespun BRK" font by AEnigma (Brian Kent). + +100% free font, downloaded from dafont.com: [homespun-brk](https://www.dafont.com/homespun-brk.font) diff --git a/include/styles/bluish/charset.txt b/include/styles/bluish/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/bluish/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/bluish/font_readme.txt b/include/styles/bluish/font_readme.txt new file mode 100644 index 0000000..8dd9bdc --- /dev/null +++ b/include/styles/bluish/font_readme.txt @@ -0,0 +1,76 @@ +_______________________________ +Homespun Created by Brian Kent + +Thanks for Downloading Homespun. + +Homespun TT [.ttf] +Homespun [8pt] [.fon] + + + 'homespun.fon' is a Windows Bitmap Font (.fon). This font is best +used at 8pt. To use it at larger point sizes (for images), try using +a graphics program like Photoshop, Paint Shop Pro, or the Paint +program that comes with Windows. Type out your text at the recommended +point size [8pt], then resize the image. Set the color mode to 256 +or 2 colors so the edges don't get blured when resizing, then after you +have the text to the size that you want, then change back to a higher +color mode and edit the image. + + For programs that don't show Bitmap Fonts in the Font Selector, you +may be able to get the font to work by typing in: +homespun brk + + When using the TTF version, try using it with anti-aliasing off. + + +If you have any questions or comments, you can e-mail me at +kentpw@norwich.net + +You can visit my Webpage at +http://www.aenigmafonts.com/ + +________________ +INSTALLING FONTS + + There's a couple of ways to install Fonts. The 'easy' way to +install fonts is to just Unzip/place the font file [.ttf] into your +Windows\Fonts directory (I always use this method). If you're unable +to do it the 'easy' way, then try to do it this way (for Windows +95/98/NT): + +1] Unzip the Font(s) to a folder (or somewhere, just remember where +you unzipped it) on your Computer. + +2] Next, click on the START button, then select SETTINGS then +CONTROL PANEL. + +3] When the Control Panel Window pops up, Double Click on FONTS. + +4] When the FONTS window pops up, select File then Install New Font... + +5] A Add Fonts window will pop up, just go to the folder that you +unzipped the Font(s) to, select the Font(s) and then click on OK. +Now the Font(s) are installed. + + Now you can use the Font(s) in programs that utilize Fonts. Make +sure that you install the font(s) first, then open up your apps +(so the app will recognize the font). Sometimes you'll have to +wait until your computer 'auto-refreshes' for programs to recognize +fonts (Windows is sometimes slow to do that). You can refresh your +computer quicker by going into Windows Explorer -or- My Computer and +press F5 (or in the menubar select VIEW then REFRESH). + + +__________ +DISCLAIMER + +-The font(s) in this zip file were created by me (Brian Kent). All +of my Fonts are Freeware, you can use them any way you want to +(Personal use, Commercial use, or whatever). + +-If you have a Font related site and would like to offer my fonts on +your site, go right ahead. All I ask is that you keep this text file +intact with the Font. + +-You may not Sell or Distribute my Fonts for profit or alter them in +any way without asking me first. [e-mail - kentpw@norwich.net] diff --git a/include/styles/bluish/homespun.ttf b/include/styles/bluish/homespun.ttf new file mode 100644 index 0000000..45c23e0 Binary files /dev/null and b/include/styles/bluish/homespun.ttf differ diff --git a/include/styles/bluish/screenshot.old.png b/include/styles/bluish/screenshot.old.png new file mode 100644 index 0000000..ac09b88 Binary files /dev/null and b/include/styles/bluish/screenshot.old.png differ diff --git a/include/styles/bluish/screenshot.png b/include/styles/bluish/screenshot.png new file mode 100644 index 0000000..0623192 Binary files /dev/null and b/include/styles/bluish/screenshot.png differ diff --git a/include/styles/bluish/style_bluish.h b/include/styles/bluish/style_bluish.h new file mode 100644 index 0000000..d95ab8c --- /dev/null +++ b/include/styles/bluish/style_bluish.h @@ -0,0 +1,610 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleBluish(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define BLUISH_STYLE_PROPS_COUNT 14 + +// Custom style name: Bluish +static const GuiStyleProp bluishStyleProps[BLUISH_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x5ca6a6ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0xb4e8f3ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0x447e77ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0x5f8792ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0xcdeff7ff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0x4c6c74ff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0x3b5b5fff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0xeaffffff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0x275057ff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x96aaacff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0xc8d7d9ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x8c9c9eff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 18, (int)0x84adb7ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0xe8eef1ff }, // DEFAULT_BACKGROUND_COLOR +}; + +// WARNING: This style uses a custom font: "homespun.ttf" (size: 10, spacing: 1) + +#define BLUISH_STYLE_FONT_ATLAS_COMP_SIZE 2730 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char bluishFontData[BLUISH_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0x9d, 0xdb, 0x92, 0xdb, 0x38, 0x0c, 0x44, 0x45, 0xee, 0xff, 0xff, 0xf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, 0xc4, 0x22, 0x2d, 0x7b, 0xd9, 0xd4, 0x92, 0xa8, 0xa6, 0x3b, 0x37, 0xfe, 0x11, 0x85, 0xc5, 0x13, + 0x7c, 0x76, 0x8a, 0xe1, 0x72, 0xf2, 0x8e, 0xb5, 0x60, 0xee, 0x8a, 0xff, 0x7b, 0xae, 0x98, 0xed, 0x4a, 0xf1, 0x6e, 0x51, + 0x1e, 0x41, 0xc5, 0x4a, 0x4e, 0xfc, 0x9f, 0xbd, 0x2e, 0x79, 0x3e, 0x1b, 0xd7, 0x8c, 0x2c, 0xa6, 0x09, 0xbb, 0x22, 0x63, + 0x3d, 0x12, 0xaf, 0x98, 0xbb, 0x35, 0x3e, 0x11, 0x9f, 0x8d, 0xab, 0xd4, 0x47, 0x51, 0x9d, 0xc5, 0x3d, 0x55, 0x9d, 0x62, + 0x57, 0xcc, 0xdd, 0x1a, 0x9f, 0x27, 0xab, 0x78, 0xfc, 0x6a, 0x3a, 0xad, 0x58, 0x87, 0x77, 0x43, 0xc7, 0xb2, 0xb1, 0x3a, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x61, 0xd6, 0x3f, + 0xac, 0x03, 0xf1, 0x87, 0x1f, 0x1b, 0xff, 0x7f, 0x01 }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle bluishFontRecs[189] = { + { 4, 4, 5 , 10 }, + { 17, 4, 2 , 8 }, + { 27, 4, 4 , 3 }, + { 39, 4, 6 , 8 }, + { 53, 4, 5 , 10 }, + { 66, 4, 6 , 8 }, + { 80, 4, 5 , 10 }, + { 93, 4, 2 , 3 }, + { 103, 4, 3 , 8 }, + { 114, 4, 3 , 8 }, + { 125, 4, 6 , 6 }, + { 139, 4, 6 , 6 }, + { 153, 4, 2 , 3 }, + { 163, 4, 5 , 2 }, + { 176, 4, 2 , 2 }, + { 186, 4, 6 , 8 }, + { 200, 4, 5 , 8 }, + { 213, 4, 3 , 8 }, + { 224, 4, 5 , 8 }, + { 237, 4, 5 , 8 }, + { 4, 22, 5 , 8 }, + { 17, 22, 5 , 8 }, + { 30, 22, 5 , 8 }, + { 43, 22, 5 , 8 }, + { 56, 22, 5 , 8 }, + { 69, 22, 5 , 8 }, + { 82, 22, 2 , 8 }, + { 92, 22, 2 , 9 }, + { 102, 22, 4 , 6 }, + { 114, 22, 5 , 4 }, + { 127, 22, 4 , 6 }, + { 139, 22, 5 , 8 }, + { 152, 22, 6 , 8 }, + { 166, 22, 5 , 8 }, + { 179, 22, 5 , 8 }, + { 192, 22, 5 , 8 }, + { 205, 22, 5 , 8 }, + { 218, 22, 5 , 8 }, + { 231, 22, 5 , 8 }, + { 4, 40, 5 , 8 }, + { 17, 40, 5 , 8 }, + { 30, 40, 4 , 8 }, + { 42, 40, 5 , 8 }, + { 55, 40, 5 , 8 }, + { 68, 40, 5 , 8 }, + { 81, 40, 8 , 8 }, + { 97, 40, 5 , 8 }, + { 110, 40, 5 , 8 }, + { 123, 40, 5 , 8 }, + { 136, 40, 5 , 9 }, + { 149, 40, 5 , 8 }, + { 162, 40, 5 , 8 }, + { 175, 40, 6 , 8 }, + { 189, 40, 5 , 8 }, + { 202, 40, 5 , 8 }, + { 215, 40, 8 , 8 }, + { 231, 40, 5 , 8 }, + { 4, 58, 5 , 8 }, + { 17, 58, 5 , 8 }, + { 30, 58, 3 , 8 }, + { 41, 58, 6 , 8 }, + { 55, 58, 3 , 8 }, + { 66, 58, 6 , 4 }, + { 80, 58, 5 , 1 }, + { 93, 58, 2 , 3 }, + { 103, 58, 5 , 6 }, + { 116, 58, 5 , 8 }, + { 129, 58, 5 , 6 }, + { 142, 58, 5 , 8 }, + { 155, 58, 5 , 6 }, + { 168, 58, 5 , 8 }, + { 181, 58, 5 , 7 }, + { 194, 58, 5 , 8 }, + { 207, 58, 2 , 8 }, + { 217, 58, 3 , 9 }, + { 228, 58, 5 , 8 }, + { 241, 58, 2 , 8 }, + { 4, 76, 8 , 6 }, + { 20, 76, 5 , 6 }, + { 33, 76, 5 , 6 }, + { 46, 76, 5 , 7 }, + { 59, 76, 5 , 7 }, + { 72, 76, 5 , 6 }, + { 85, 76, 5 , 6 }, + { 98, 76, 5 , 8 }, + { 111, 76, 5 , 6 }, + { 124, 76, 5 , 6 }, + { 137, 76, 8 , 6 }, + { 153, 76, 5 , 6 }, + { 166, 76, 5 , 7 }, + { 179, 76, 5 , 6 }, + { 192, 76, 4 , 8 }, + { 204, 76, 2 , 10 }, + { 214, 76, 4 , 8 }, + { 226, 76, 6 , 4 }, + { 240, 76, 2 , 8 }, + { 4, 94, 5 , 8 }, + { 17, 94, 5 , 8 }, + { 30, 94, 0 , 0 }, + { 38, 94, 6 , 8 }, + { 52, 94, 5 , 10 }, + { 65, 94, 5 , 10 }, + { 78, 94, 5 , 9 }, + { 91, 94, 7 , 8 }, + { 106, 94, 4 , 6 }, + { 118, 94, 5 , 4 }, + { 131, 94, 5 , 3 }, + { 144, 94, 7 , 8 }, + { 159, 94, 5 , 2 }, + { 172, 94, 4 , 4 }, + { 184, 94, 6 , 8 }, + { 198, 94, 4 , 6 }, + { 210, 94, 4 , 6 }, + { 222, 94, 0 , 0 }, + { 230, 94, 5 , 9 }, + { 4, 112, 6 , 8 }, + { 18, 112, 2 , 2 }, + { 28, 112, 0 , 0 }, + { 36, 112, 3 , 6 }, + { 47, 112, 4 , 6 }, + { 59, 112, 5 , 4 }, + { 72, 112, 6 , 8 }, + { 86, 112, 6 , 6 }, + { 100, 112, 5 , 10 }, + { 113, 112, 5 , 8 }, + { 126, 112, 5 , 10 }, + { 139, 112, 5 , 10 }, + { 152, 112, 5 , 10 }, + { 165, 112, 5 , 10 }, + { 178, 112, 5 , 10 }, + { 191, 112, 5 , 10 }, + { 204, 112, 6 , 8 }, + { 218, 112, 5 , 9 }, + { 231, 112, 5 , 10 }, + { 4, 130, 5 , 10 }, + { 17, 130, 5 , 10 }, + { 30, 130, 5 , 10 }, + { 43, 130, 4 , 10 }, + { 55, 130, 4 , 10 }, + { 67, 130, 4 , 10 }, + { 79, 130, 4 , 10 }, + { 91, 130, 6 , 8 }, + { 105, 130, 5 , 10 }, + { 118, 130, 5 , 10 }, + { 131, 130, 5 , 10 }, + { 144, 130, 5 , 10 }, + { 157, 130, 5 , 10 }, + { 170, 130, 5 , 10 }, + { 183, 130, 4 , 4 }, + { 195, 130, 5 , 10 }, + { 208, 130, 5 , 10 }, + { 221, 130, 5 , 10 }, + { 234, 130, 5 , 10 }, + { 4, 148, 5 , 10 }, + { 17, 148, 5 , 10 }, + { 30, 148, 5 , 8 }, + { 43, 148, 5 , 8 }, + { 56, 148, 5 , 9 }, + { 69, 148, 5 , 9 }, + { 82, 148, 5 , 9 }, + { 95, 148, 5 , 9 }, + { 108, 148, 5 , 8 }, + { 121, 148, 5 , 10 }, + { 134, 148, 6 , 6 }, + { 148, 148, 5 , 7 }, + { 161, 148, 5 , 9 }, + { 174, 148, 5 , 9 }, + { 187, 148, 5 , 9 }, + { 200, 148, 5 , 8 }, + { 213, 148, 3 , 9 }, + { 224, 148, 3 , 9 }, + { 235, 148, 4 , 9 }, + { 4, 166, 4 , 8 }, + { 16, 166, 5 , 9 }, + { 29, 166, 5 , 9 }, + { 42, 166, 5 , 9 }, + { 55, 166, 5 , 9 }, + { 68, 166, 5 , 9 }, + { 81, 166, 5 , 9 }, + { 94, 166, 5 , 8 }, + { 107, 166, 4 , 6 }, + { 119, 166, 5 , 8 }, + { 132, 166, 5 , 9 }, + { 145, 166, 5 , 9 }, + { 158, 166, 5 , 9 }, + { 171, 166, 5 , 8 }, + { 184, 166, 5 , 10 }, + { 197, 166, 5 , 10 }, + { 210, 166, 5 , 9 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo bluishFontGlyphs[189] = { + { 32, 0, 0, 5, { 0 }}, + { 33, 0, 1, 2, { 0 }}, + { 34, 0, 1, 4, { 0 }}, + { 35, 0, 1, 6, { 0 }}, + { 36, 0, 0, 5, { 0 }}, + { 37, 0, 1, 6, { 0 }}, + { 38, 0, 0, 5, { 0 }}, + { 39, 0, 1, 2, { 0 }}, + { 40, 0, 1, 3, { 0 }}, + { 41, 0, 1, 3, { 0 }}, + { 42, 0, 1, 6, { 0 }}, + { 43, 0, 2, 6, { 0 }}, + { 44, 0, 7, 2, { 0 }}, + { 45, 0, 4, 5, { 0 }}, + { 46, 0, 7, 2, { 0 }}, + { 47, 0, 1, 6, { 0 }}, + { 48, 0, 1, 5, { 0 }}, + { 49, 0, 1, 3, { 0 }}, + { 50, 0, 1, 5, { 0 }}, + { 51, 0, 1, 5, { 0 }}, + { 52, 0, 1, 5, { 0 }}, + { 53, 0, 1, 5, { 0 }}, + { 54, 0, 1, 5, { 0 }}, + { 55, 0, 1, 5, { 0 }}, + { 56, 0, 1, 5, { 0 }}, + { 57, 0, 1, 5, { 0 }}, + { 58, 0, 1, 2, { 0 }}, + { 59, 0, 1, 2, { 0 }}, + { 60, 0, 2, 4, { 0 }}, + { 61, 0, 3, 5, { 0 }}, + { 62, 0, 2, 4, { 0 }}, + { 63, 0, 1, 5, { 0 }}, + { 64, 0, 1, 6, { 0 }}, + { 65, 0, 1, 5, { 0 }}, + { 66, 0, 1, 5, { 0 }}, + { 67, 0, 1, 5, { 0 }}, + { 68, 0, 1, 5, { 0 }}, + { 69, 0, 1, 5, { 0 }}, + { 70, 0, 1, 5, { 0 }}, + { 71, 0, 1, 5, { 0 }}, + { 72, 0, 1, 5, { 0 }}, + { 73, 0, 1, 4, { 0 }}, + { 74, 0, 1, 5, { 0 }}, + { 75, 0, 1, 5, { 0 }}, + { 76, 0, 1, 5, { 0 }}, + { 77, 0, 1, 8, { 0 }}, + { 78, 0, 1, 5, { 0 }}, + { 79, 0, 1, 5, { 0 }}, + { 80, 0, 1, 5, { 0 }}, + { 81, 0, 1, 5, { 0 }}, + { 82, 0, 1, 5, { 0 }}, + { 83, 0, 1, 5, { 0 }}, + { 84, 0, 1, 6, { 0 }}, + { 85, 0, 1, 5, { 0 }}, + { 86, 0, 1, 5, { 0 }}, + { 87, 0, 1, 8, { 0 }}, + { 88, 0, 1, 5, { 0 }}, + { 89, 0, 1, 5, { 0 }}, + { 90, 0, 1, 5, { 0 }}, + { 91, 0, 1, 3, { 0 }}, + { 92, 0, 1, 6, { 0 }}, + { 93, 0, 1, 3, { 0 }}, + { 94, 0, 1, 6, { 0 }}, + { 95, 0, 9, 5, { 0 }}, + { 96, 0, 1, 2, { 0 }}, + { 97, 0, 3, 5, { 0 }}, + { 98, 0, 1, 5, { 0 }}, + { 99, 0, 3, 5, { 0 }}, + { 100, 0, 1, 5, { 0 }}, + { 101, 0, 3, 5, { 0 }}, + { 102, 0, 1, 5, { 0 }}, + { 103, 0, 3, 5, { 0 }}, + { 104, 0, 1, 5, { 0 }}, + { 105, 0, 1, 2, { 0 }}, + { 106, 0, 1, 3, { 0 }}, + { 107, 0, 1, 5, { 0 }}, + { 108, 0, 1, 2, { 0 }}, + { 109, 0, 3, 8, { 0 }}, + { 110, 0, 3, 5, { 0 }}, + { 111, 0, 3, 5, { 0 }}, + { 112, 0, 3, 5, { 0 }}, + { 113, 0, 3, 5, { 0 }}, + { 114, 0, 3, 5, { 0 }}, + { 115, 0, 3, 5, { 0 }}, + { 116, 0, 1, 5, { 0 }}, + { 117, 0, 3, 5, { 0 }}, + { 118, 0, 3, 5, { 0 }}, + { 119, 0, 3, 8, { 0 }}, + { 120, 0, 3, 5, { 0 }}, + { 121, 0, 3, 5, { 0 }}, + { 122, 0, 3, 5, { 0 }}, + { 123, 0, 1, 4, { 0 }}, + { 124, 0, 0, 2, { 0 }}, + { 125, 0, 1, 4, { 0 }}, + { 126, 0, 3, 6, { 0 }}, + { 161, 0, 1, 2, { 0 }}, + { 162, 0, 2, 5, { 0 }}, + { 163, 0, 1, 5, { 0 }}, + { 8364, 0, 0, 0, { 0 }}, + { 165, 0, 1, 6, { 0 }}, + { 352, 0, -1, 5, { 0 }}, + { 167, 0, 0, 5, { 0 }}, + { 353, 0, 0, 5, { 0 }}, + { 169, 0, 1, 7, { 0 }}, + { 170, 0, -1, 4, { 0 }}, + { 171, 0, 3, 5, { 0 }}, + { 172, 0, 4, 5, { 0 }}, + { 174, 0, 1, 7, { 0 }}, + { 175, 0, -1, 5, { 0 }}, + { 176, 0, -1, 4, { 0 }}, + { 177, 0, 1, 6, { 0 }}, + { 178, 0, -1, 4, { 0 }}, + { 179, 0, -1, 4, { 0 }}, + { 381, 0, 0, 0, { 0 }}, + { 181, 0, 1, 5, { 0 }}, + { 182, 0, 1, 6, { 0 }}, + { 183, 0, 4, 2, { 0 }}, + { 382, 0, 0, 0, { 0 }}, + { 185, 0, -1, 3, { 0 }}, + { 186, 0, -1, 4, { 0 }}, + { 187, 0, 3, 5, { 0 }}, + { 338, 0, 1, 6, { 0 }}, + { 339, 0, 3, 6, { 0 }}, + { 376, 0, -1, 5, { 0 }}, + { 191, 0, 1, 5, { 0 }}, + { 192, 0, -1, 5, { 0 }}, + { 193, 0, -1, 5, { 0 }}, + { 194, 0, -1, 5, { 0 }}, + { 195, 0, -1, 5, { 0 }}, + { 196, 0, -1, 5, { 0 }}, + { 197, 0, -1, 5, { 0 }}, + { 198, 0, 1, 6, { 0 }}, + { 199, 0, 1, 5, { 0 }}, + { 200, 0, -1, 5, { 0 }}, + { 201, 0, -1, 5, { 0 }}, + { 202, 0, -1, 5, { 0 }}, + { 203, 0, -1, 5, { 0 }}, + { 204, 0, -1, 4, { 0 }}, + { 205, 0, -1, 4, { 0 }}, + { 206, 0, -1, 4, { 0 }}, + { 207, 0, -1, 4, { 0 }}, + { 208, 0, 1, 6, { 0 }}, + { 209, 0, -1, 5, { 0 }}, + { 210, 0, -1, 5, { 0 }}, + { 211, 0, -1, 5, { 0 }}, + { 212, 0, -1, 5, { 0 }}, + { 213, 0, -1, 5, { 0 }}, + { 214, 0, -1, 5, { 0 }}, + { 215, 0, 3, 4, { 0 }}, + { 216, 0, 0, 5, { 0 }}, + { 217, 0, -1, 5, { 0 }}, + { 218, 0, -1, 5, { 0 }}, + { 219, 0, -1, 5, { 0 }}, + { 220, 0, -1, 5, { 0 }}, + { 221, 0, -1, 5, { 0 }}, + { 222, 0, 1, 5, { 0 }}, + { 223, 0, 1, 5, { 0 }}, + { 224, 0, 0, 5, { 0 }}, + { 225, 0, 0, 5, { 0 }}, + { 226, 0, 0, 5, { 0 }}, + { 227, 0, 0, 5, { 0 }}, + { 228, 0, 1, 5, { 0 }}, + { 229, 0, -1, 5, { 0 }}, + { 230, 0, 3, 6, { 0 }}, + { 231, 0, 3, 5, { 0 }}, + { 232, 0, 0, 5, { 0 }}, + { 233, 0, 0, 5, { 0 }}, + { 234, 0, 0, 5, { 0 }}, + { 235, 0, 1, 5, { 0 }}, + { 236, 0, 0, 3, { 0 }}, + { 237, 0, 0, 2, { 0 }}, + { 238, 0, 0, 3, { 0 }}, + { 239, 0, 1, 3, { 0 }}, + { 240, 0, 0, 5, { 0 }}, + { 241, 0, 0, 5, { 0 }}, + { 242, 0, 0, 5, { 0 }}, + { 243, 0, 0, 5, { 0 }}, + { 244, 0, 0, 5, { 0 }}, + { 245, 0, 0, 5, { 0 }}, + { 246, 0, 1, 5, { 0 }}, + { 247, 0, 2, 4, { 0 }}, + { 248, 0, 2, 5, { 0 }}, + { 249, 0, 0, 5, { 0 }}, + { 250, 0, 0, 5, { 0 }}, + { 251, 0, 0, 5, { 0 }}, + { 252, 0, 1, 5, { 0 }}, + { 253, 0, 0, 5, { 0 }}, + { 254, 0, 0, 5, { 0 }}, + { 255, 0, 1, 5, { 0 }}, +}; + +// Style loading function: Bluish +static void GuiLoadStyleBluish(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < BLUISH_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(bluishStyleProps[i].controlId, bluishStyleProps[i].propertyId, bluishStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int bluishFontDataSize = 0; + unsigned char *data = DecompressData(bluishFontData, BLUISH_STYLE_FONT_ATLAS_COMP_SIZE, &bluishFontDataSize); + Image imFont = { data, 256, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 10; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, bluishFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, bluishFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 254, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/bluish/style_bluish.png b/include/styles/bluish/style_bluish.png new file mode 100644 index 0000000..fff86b1 Binary files /dev/null and b/include/styles/bluish/style_bluish.png differ diff --git a/include/styles/bluish/style_bluish.rgs b/include/styles/bluish/style_bluish.rgs new file mode 100644 index 0000000..5a27c6e Binary files /dev/null and b/include/styles/bluish/style_bluish.rgs differ diff --git a/include/styles/bluish/style_bluish.txt.rgs b/include/styles/bluish/style_bluish.txt.rgs new file mode 100644 index 0000000..f94aefc --- /dev/null +++ b/include/styles/bluish/style_bluish.txt.rgs @@ -0,0 +1,24 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 10 charset.txt homespun.ttf +p 00 00 0x5ca6a6ff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0xb4e8f3ff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0x447e77ff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0x5f8792ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0xcdeff7ff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0x4c6c74ff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0x3b5b5fff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0xeaffffff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0x275057ff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0x96aaacff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0xc8d7d9ff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x8c9c9eff DEFAULT_TEXT_COLOR_DISABLED +p 00 18 0x84adb7ff LINE_COLOR +p 00 19 0xe8eef1ff BACKGROUND_COLOR diff --git a/include/styles/candy/README.md b/include/styles/candy/README.md new file mode 100644 index 0000000..712185d --- /dev/null +++ b/include/styles/candy/README.md @@ -0,0 +1,27 @@ +## style: candy + +Sweet, colorful, tasty! Enjoy this funfair ride and be careful with the witch of the candy house! + +![candy style table](style_candy.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_candy.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_candy.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_candy.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_candy.h` | Embeddable style as code file, self-contained, includes font data | +| `style_candy.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![candy style screen](screenshot.png) + +## about font + +"V5 Eastergothic" font by vFive Digital (Roberto Christen). + +100% free font, downloaded from dafont.com: [v5eastergothic](https://www.dafont.com/v5eastergothic.font) diff --git a/include/styles/candy/charset.txt b/include/styles/candy/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/candy/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/candy/font_readme.txt b/include/styles/candy/font_readme.txt new file mode 100644 index 0000000..cfd8cb2 --- /dev/null +++ b/include/styles/candy/font_readme.txt @@ -0,0 +1,27 @@ + +V5 Easter Gothic +---------------- +Instructions: + + +++ Easter Gothic ++ + +For screen use, set at 15pt or any multiple +of 15 (display). Turn antialiasing off. Set +tracking to 100 for best results. + +--------------- +Usage: This is a free font--you may use +this and other V5 fonts at will. It may not +be sold, altered, or improperly credited, +however. All I ask is that you kindly inform +me if you find this font useful, and where +you've used it. + +Enjoy, + +2000 +Roberto Christen +rob@vfive.com + + diff --git a/include/styles/candy/screenshot.old.png b/include/styles/candy/screenshot.old.png new file mode 100644 index 0000000..8d71945 Binary files /dev/null and b/include/styles/candy/screenshot.old.png differ diff --git a/include/styles/candy/screenshot.png b/include/styles/candy/screenshot.png new file mode 100644 index 0000000..b68ec52 Binary files /dev/null and b/include/styles/candy/screenshot.png differ diff --git a/include/styles/candy/style_candy.h b/include/styles/candy/style_candy.h new file mode 100644 index 0000000..58e6928 --- /dev/null +++ b/include/styles/candy/style_candy.h @@ -0,0 +1,582 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleCandy(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define CANDY_STYLE_PROPS_COUNT 17 + +// Custom style name: Candy +static const GuiStyleProp candyStyleProps[CANDY_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0xe58b68ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0xfeda96ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0xe59b5fff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xee813fff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0xfcd85bff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0xfc6955ff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0xb34848ff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0xeb7272ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0xbd4a4aff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x94795dff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0xc2a37aff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x9c8369ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x0000000f }, // DEFAULT_TEXT_SIZE + { 0, 17, (int)0x00000000 }, // DEFAULT_TEXT_SPACING + { 0, 18, (int)0xd77575ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0xfff5e1ff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000016 }, // DEFAULT_TEXT_LINE_SPACING +}; + +// WARNING: This style uses a custom font: "v5easter.ttf" (size: 15, spacing: 0) + +#define CANDY_STYLE_FONT_ATLAS_COMP_SIZE 2110 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char candyFontData[CANDY_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0x5b, 0x76, 0xa4, 0x36, 0x10, 0x00, 0x50, 0xad, 0x2b, 0xfb, 0xdf, 0x97, 0x72, 0x92, 0x7c, 0xe4, 0xcc, 0x8c, 0x1b, + 0x54, 0xa5, 0x12, 0x08, 0xfa, 0xfa, 0xfe, 0x19, 0xbb, 0x1b, 0x10, 0xa5, 0x07, 0xa0, 0x52, 0x6f, 0x00, 0x00, 0x00, 0xc0, + 0x97, 0xfb, 0xe7, 0xe7, 0xcf, 0xdf, 0xb5, 0x1f, 0x7e, 0xfb, 0xff, 0xdf, 0xf6, 0x1f, 0xb7, 0x1e, 0x6d, 0xc9, 0xff, 0xe7, + 0xf1, 0x9e, 0x8c, 0x7d, 0x42, 0x3b, 0xd8, 0x72, 0xbe, 0xcf, 0xbf, 0xff, 0xae, 0x97, 0x7c, 0xfb, 0xa7, 0xcf, 0x39, 0xdb, + 0xa3, 0xcc, 0xb6, 0xa3, 0x4f, 0xed, 0x07, 0xc7, 0xd4, 0x06, 0xb6, 0xf4, 0xd4, 0xd1, 0xf5, 0xe9, 0x52, 0x8d, 0x95, 0xce, + 0xf9, 0xf1, 0xb7, 0xf0, 0x31, 0xb6, 0x05, 0xdb, 0xfa, 0x64, 0x19, 0xaf, 0x8c, 0xff, 0xdf, 0x7f, 0x2a, 0xe3, 0xff, 0xf8, + 0x33, 0x67, 0xae, 0x89, 0xff, 0x8f, 0x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e7, 0xa8, 0xbd, 0xe6, 0x45, 0x0a, + 0xdc, 0xf5, 0x6e, 0x90, 0xb6, 0x8a, 0xdd, 0xfc, 0xe5, 0x1c, 0xe8, 0x7f, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfa, 0xef, 0xc7, + 0x79, 0x00, 0xf1, 0x0f, 0x7c, 0x5d, 0xfc, 0xff, 0x0d }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle candyFontRecs[189] = { + { 4, 4, 3 , 15 }, + { 15, 4, 2 , 9 }, + { 25, 4, 3 , 2 }, + { 36, 4, 8 , 9 }, + { 52, 4, 6 , 11 }, + { 66, 4, 7 , 9 }, + { 81, 4, 7 , 9 }, + { 96, 4, 1 , 2 }, + { 105, 4, 3 , 11 }, + { 116, 4, 3 , 11 }, + { 127, 4, 7 , 7 }, + { 142, 4, 6 , 5 }, + { 156, 4, 2 , 3 }, + { 166, 4, 5 , 1 }, + { 179, 4, 2 , 2 }, + { 189, 4, 5 , 10 }, + { 202, 4, 6 , 9 }, + { 216, 4, 4 , 9 }, + { 228, 4, 6 , 9 }, + { 242, 4, 6 , 9 }, + { 256, 4, 7 , 9 }, + { 271, 4, 6 , 9 }, + { 285, 4, 6 , 9 }, + { 299, 4, 6 , 9 }, + { 313, 4, 6 , 9 }, + { 327, 4, 6 , 9 }, + { 341, 4, 2 , 6 }, + { 351, 4, 2 , 7 }, + { 361, 4, 4 , 6 }, + { 373, 4, 5 , 3 }, + { 386, 4, 4 , 6 }, + { 398, 4, 6 , 9 }, + { 412, 4, 8 , 7 }, + { 428, 4, 6 , 9 }, + { 442, 4, 6 , 9 }, + { 456, 4, 6 , 9 }, + { 470, 4, 6 , 9 }, + { 484, 4, 6 , 9 }, + { 4, 27, 6 , 9 }, + { 18, 27, 6 , 9 }, + { 32, 27, 6 , 9 }, + { 46, 27, 2 , 9 }, + { 56, 27, 6 , 9 }, + { 70, 27, 6 , 9 }, + { 84, 27, 6 , 9 }, + { 98, 27, 8 , 9 }, + { 114, 27, 6 , 9 }, + { 128, 27, 6 , 9 }, + { 142, 27, 6 , 9 }, + { 156, 27, 6 , 9 }, + { 170, 27, 6 , 9 }, + { 184, 27, 6 , 9 }, + { 198, 27, 6 , 9 }, + { 212, 27, 6 , 9 }, + { 226, 27, 6 , 9 }, + { 240, 27, 8 , 9 }, + { 256, 27, 6 , 9 }, + { 270, 27, 6 , 9 }, + { 284, 27, 6 , 9 }, + { 298, 27, 3 , 11 }, + { 309, 27, 5 , 10 }, + { 322, 27, 3 , 11 }, + { 333, 27, 6 , 4 }, + { 347, 27, 6 , 1 }, + { 361, 27, 3 , 2 }, + { 372, 27, 6 , 7 }, + { 386, 27, 6 , 10 }, + { 400, 27, 6 , 7 }, + { 414, 27, 6 , 10 }, + { 428, 27, 6 , 7 }, + { 442, 27, 5 , 10 }, + { 455, 27, 7 , 10 }, + { 470, 27, 6 , 10 }, + { 484, 27, 2 , 10 }, + { 494, 27, 2 , 12 }, + { 4, 50, 6 , 10 }, + { 18, 50, 3 , 10 }, + { 29, 50, 8 , 7 }, + { 45, 50, 6 , 7 }, + { 59, 50, 6 , 7 }, + { 73, 50, 6 , 10 }, + { 87, 50, 6 , 10 }, + { 101, 50, 6 , 7 }, + { 115, 50, 6 , 7 }, + { 129, 50, 3 , 10 }, + { 140, 50, 6 , 7 }, + { 154, 50, 6 , 7 }, + { 168, 50, 8 , 7 }, + { 184, 50, 6 , 7 }, + { 198, 50, 6 , 10 }, + { 212, 50, 6 , 7 }, + { 226, 50, 4 , 11 }, + { 238, 50, 1 , 11 }, + { 247, 50, 4 , 11 }, + { 259, 50, 6 , 2 }, + { 273, 50, 2 , 10 }, + { 283, 50, 6 , 11 }, + { 297, 50, 8 , 9 }, + { 313, 50, 7 , 9 }, + { 328, 50, 6 , 9 }, + { 342, 50, 0 , 0 }, + { 350, 50, 6 , 11 }, + { 364, 50, 0 , 0 }, + { 372, 50, 8 , 8 }, + { 388, 50, 5 , 7 }, + { 401, 50, 7 , 6 }, + { 416, 50, 0 , 0 }, + { 424, 50, 8 , 8 }, + { 440, 50, 6 , 1 }, + { 454, 50, 4 , 5 }, + { 466, 50, 6 , 7 }, + { 480, 50, 3 , 5 }, + { 491, 50, 3 , 5 }, + { 502, 50, 0 , 0 }, + { 4, 73, 6 , 9 }, + { 18, 73, 6 , 9 }, + { 32, 73, 4 , 4 }, + { 44, 73, 0 , 0 }, + { 52, 73, 2 , 5 }, + { 62, 73, 4 , 7 }, + { 74, 73, 7 , 6 }, + { 89, 73, 10 , 9 }, + { 107, 73, 10 , 7 }, + { 125, 73, 0 , 0 }, + { 133, 73, 6 , 9 }, + { 147, 73, 6 , 12 }, + { 161, 73, 6 , 12 }, + { 175, 73, 6 , 12 }, + { 189, 73, 6 , 12 }, + { 203, 73, 6 , 11 }, + { 217, 73, 6 , 12 }, + { 231, 73, 10 , 9 }, + { 249, 73, 6 , 12 }, + { 263, 73, 6 , 12 }, + { 277, 73, 6 , 12 }, + { 291, 73, 6 , 12 }, + { 305, 73, 6 , 11 }, + { 319, 73, 3 , 12 }, + { 330, 73, 3 , 12 }, + { 341, 73, 4 , 12 }, + { 353, 73, 4 , 11 }, + { 365, 73, 8 , 9 }, + { 381, 73, 6 , 12 }, + { 395, 73, 6 , 12 }, + { 409, 73, 6 , 12 }, + { 423, 73, 6 , 12 }, + { 437, 73, 6 , 12 }, + { 451, 73, 6 , 11 }, + { 465, 73, 5 , 5 }, + { 478, 73, 9 , 10 }, + { 495, 73, 6 , 12 }, + { 4, 96, 6 , 12 }, + { 18, 96, 6 , 12 }, + { 32, 96, 6 , 11 }, + { 46, 96, 6 , 12 }, + { 60, 96, 0 , 0 }, + { 68, 96, 6 , 10 }, + { 82, 96, 6 , 10 }, + { 96, 96, 6 , 10 }, + { 110, 96, 6 , 10 }, + { 124, 96, 6 , 10 }, + { 138, 96, 6 , 9 }, + { 152, 96, 6 , 11 }, + { 166, 96, 10 , 7 }, + { 184, 96, 6 , 10 }, + { 198, 96, 6 , 10 }, + { 212, 96, 6 , 10 }, + { 226, 96, 6 , 10 }, + { 240, 96, 6 , 9 }, + { 254, 96, 3 , 10 }, + { 265, 96, 3 , 10 }, + { 276, 96, 4 , 10 }, + { 288, 96, 4 , 9 }, + { 300, 96, 0 , 0 }, + { 308, 96, 6 , 13 }, + { 322, 96, 6 , 10 }, + { 336, 96, 6 , 10 }, + { 350, 96, 6 , 10 }, + { 364, 96, 6 , 10 }, + { 378, 96, 6 , 9 }, + { 392, 96, 0 , 0 }, + { 400, 96, 8 , 8 }, + { 416, 96, 6 , 10 }, + { 430, 96, 6 , 10 }, + { 444, 96, 6 , 10 }, + { 458, 96, 6 , 9 }, + { 472, 96, 6 , 13 }, + { 486, 96, 0 , 0 }, + { 494, 96, 6 , 12 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo candyFontGlyphs[189] = { + { 32, 0, 0, 3, { 0 }}, + { 33, 0, 3, 3, { 0 }}, + { 34, 0, 2, 4, { 0 }}, + { 35, 0, 3, 9, { 0 }}, + { 36, 0, 2, 7, { 0 }}, + { 37, 0, 3, 8, { 0 }}, + { 38, 0, 3, 8, { 0 }}, + { 39, 0, 2, 2, { 0 }}, + { 40, 1, 2, 5, { 0 }}, + { 41, 1, 2, 5, { 0 }}, + { 42, 0, 4, 8, { 0 }}, + { 43, 0, 6, 7, { 0 }}, + { 44, 0, 10, 3, { 0 }}, + { 45, 0, 7, 6, { 0 }}, + { 46, 0, 10, 3, { 0 }}, + { 47, 1, 3, 7, { 0 }}, + { 48, 0, 3, 7, { 0 }}, + { 49, 0, 3, 5, { 0 }}, + { 50, 0, 3, 7, { 0 }}, + { 51, 0, 3, 7, { 0 }}, + { 52, 0, 3, 8, { 0 }}, + { 53, 0, 3, 7, { 0 }}, + { 54, 0, 3, 7, { 0 }}, + { 55, 0, 3, 7, { 0 }}, + { 56, 0, 3, 7, { 0 }}, + { 57, 0, 3, 7, { 0 }}, + { 58, 0, 6, 3, { 0 }}, + { 59, 0, 6, 3, { 0 }}, + { 60, 1, 5, 6, { 0 }}, + { 61, 1, 7, 7, { 0 }}, + { 62, 1, 5, 6, { 0 }}, + { 63, 0, 3, 7, { 0 }}, + { 64, 0, 4, 9, { 0 }}, + { 65, 0, 3, 7, { 0 }}, + { 66, 0, 3, 7, { 0 }}, + { 67, 0, 3, 7, { 0 }}, + { 68, 0, 3, 7, { 0 }}, + { 69, 0, 3, 7, { 0 }}, + { 70, 0, 3, 7, { 0 }}, + { 71, 0, 3, 7, { 0 }}, + { 72, 0, 3, 7, { 0 }}, + { 73, 0, 3, 3, { 0 }}, + { 74, 0, 3, 7, { 0 }}, + { 75, 0, 3, 7, { 0 }}, + { 76, 0, 3, 7, { 0 }}, + { 77, 0, 3, 9, { 0 }}, + { 78, 0, 3, 7, { 0 }}, + { 79, 0, 3, 7, { 0 }}, + { 80, 0, 3, 7, { 0 }}, + { 81, 0, 3, 7, { 0 }}, + { 82, 0, 3, 7, { 0 }}, + { 83, 0, 3, 7, { 0 }}, + { 84, 0, 3, 7, { 0 }}, + { 85, 0, 3, 7, { 0 }}, + { 86, 0, 3, 7, { 0 }}, + { 87, 0, 3, 9, { 0 }}, + { 88, 0, 3, 7, { 0 }}, + { 89, 0, 3, 7, { 0 }}, + { 90, 0, 3, 7, { 0 }}, + { 91, 1, 2, 5, { 0 }}, + { 92, 1, 3, 7, { 0 }}, + { 93, 1, 2, 5, { 0 }}, + { 94, 0, 3, 7, { 0 }}, + { 95, 0, 11, 7, { 0 }}, + { 96, 0, 0, 4, { 0 }}, + { 97, 0, 5, 7, { 0 }}, + { 98, 0, 2, 7, { 0 }}, + { 99, 0, 5, 7, { 0 }}, + { 100, 0, 2, 7, { 0 }}, + { 101, 0, 5, 7, { 0 }}, + { 102, 0, 2, 6, { 0 }}, + { 103, 0, 5, 7, { 0 }}, + { 104, 0, 2, 7, { 0 }}, + { 105, 0, 2, 3, { 0 }}, + { 106, 0, 2, 3, { 0 }}, + { 107, 0, 2, 7, { 0 }}, + { 108, 0, 2, 4, { 0 }}, + { 109, 0, 5, 9, { 0 }}, + { 110, 0, 5, 7, { 0 }}, + { 111, 0, 5, 7, { 0 }}, + { 112, 0, 5, 7, { 0 }}, + { 113, 0, 5, 7, { 0 }}, + { 114, 0, 5, 7, { 0 }}, + { 115, 0, 5, 7, { 0 }}, + { 116, 0, 2, 4, { 0 }}, + { 117, 0, 5, 7, { 0 }}, + { 118, 0, 5, 7, { 0 }}, + { 119, 0, 5, 9, { 0 }}, + { 120, 0, 5, 7, { 0 }}, + { 121, 0, 5, 7, { 0 }}, + { 122, 0, 5, 7, { 0 }}, + { 123, 1, 2, 6, { 0 }}, + { 124, 1, 2, 3, { 0 }}, + { 125, 1, 2, 6, { 0 }}, + { 126, 0, 0, 7, { 0 }}, + { 161, 0, 3, 3, { 0 }}, + { 162, 0, 2, 7, { 0 }}, + { 163, 0, 3, 9, { 0 }}, + { 8364, 0, 3, 8, { 0 }}, + { 165, 0, 3, 7, { 0 }}, + { 352, 0, 0, 0, { 0 }}, + { 167, 0, 2, 7, { 0 }}, + { 353, 0, 0, 0, { 0 }}, + { 169, 0, 0, 9, { 0 }}, + { 170, 0, 0, 6, { 0 }}, + { 171, 1, 5, 9, { 0 }}, + { 172, 0, 0, 0, { 0 }}, + { 174, 0, 0, 9, { 0 }}, + { 175, 0, 0, 7, { 0 }}, + { 176, 0, 0, 5, { 0 }}, + { 177, 0, 4, 7, { 0 }}, + { 178, 0, 0, 4, { 0 }}, + { 179, 0, 0, 4, { 0 }}, + { 381, 0, 0, 0, { 0 }}, + { 181, 0, 5, 7, { 0 }}, + { 182, 0, 3, 7, { 0 }}, + { 183, 0, 6, 5, { 0 }}, + { 382, 0, 0, 0, { 0 }}, + { 185, 0, 0, 3, { 0 }}, + { 186, 0, 0, 5, { 0 }}, + { 187, 1, 5, 9, { 0 }}, + { 338, 0, 3, 11, { 0 }}, + { 339, 0, 5, 11, { 0 }}, + { 376, 0, 0, 0, { 0 }}, + { 191, 0, 4, 7, { 0 }}, + { 192, 0, 0, 7, { 0 }}, + { 193, 0, 0, 7, { 0 }}, + { 194, 0, 0, 7, { 0 }}, + { 195, 0, 0, 7, { 0 }}, + { 196, 0, 1, 7, { 0 }}, + { 197, 0, 0, 7, { 0 }}, + { 198, 0, 3, 11, { 0 }}, + { 199, 0, 3, 7, { 0 }}, + { 200, 0, 0, 7, { 0 }}, + { 201, 0, 0, 7, { 0 }}, + { 202, 0, 0, 7, { 0 }}, + { 203, 0, 1, 7, { 0 }}, + { 204, -1, 0, 3, { 0 }}, + { 205, 0, 0, 3, { 0 }}, + { 206, -1, 0, 3, { 0 }}, + { 207, -1, 1, 3, { 0 }}, + { 208, 0, 3, 9, { 0 }}, + { 209, 0, 0, 7, { 0 }}, + { 210, 0, 0, 7, { 0 }}, + { 211, 0, 0, 7, { 0 }}, + { 212, 0, 0, 7, { 0 }}, + { 213, 0, 0, 7, { 0 }}, + { 214, 0, 1, 7, { 0 }}, + { 215, 0, 7, 6, { 0 }}, + { 216, 0, 3, 10, { 0 }}, + { 217, 0, 0, 7, { 0 }}, + { 218, 0, 0, 7, { 0 }}, + { 219, 0, 0, 7, { 0 }}, + { 220, 0, 1, 7, { 0 }}, + { 221, 0, 0, 7, { 0 }}, + { 222, 0, 0, 0, { 0 }}, + { 223, 0, 3, 7, { 0 }}, + { 224, 0, 2, 7, { 0 }}, + { 225, 0, 2, 7, { 0 }}, + { 226, 0, 2, 7, { 0 }}, + { 227, 0, 2, 7, { 0 }}, + { 228, 0, 3, 7, { 0 }}, + { 229, 0, 1, 7, { 0 }}, + { 230, 0, 5, 11, { 0 }}, + { 231, 0, 5, 7, { 0 }}, + { 232, 0, 2, 7, { 0 }}, + { 233, 0, 2, 7, { 0 }}, + { 234, 0, 2, 7, { 0 }}, + { 235, 0, 3, 7, { 0 }}, + { 236, 0, 2, 4, { 0 }}, + { 237, 0, 2, 4, { 0 }}, + { 238, 0, 2, 4, { 0 }}, + { 239, 0, 3, 4, { 0 }}, + { 240, 0, 0, 0, { 0 }}, + { 241, 0, 2, 7, { 0 }}, + { 242, 0, 2, 7, { 0 }}, + { 243, 0, 2, 7, { 0 }}, + { 244, 0, 2, 7, { 0 }}, + { 245, 0, 2, 7, { 0 }}, + { 246, 0, 3, 7, { 0 }}, + { 247, 0, 0, 0, { 0 }}, + { 248, 0, 5, 9, { 0 }}, + { 249, 0, 2, 7, { 0 }}, + { 250, 0, 2, 7, { 0 }}, + { 251, 0, 2, 7, { 0 }}, + { 252, 0, 3, 7, { 0 }}, + { 253, 0, 2, 7, { 0 }}, + { 254, 0, 0, 0, { 0 }}, + { 255, 0, 3, 7, { 0 }}, +}; + +// Style loading function: Candy +static void GuiLoadStyleCandy(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < CANDY_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(candyStyleProps[i].controlId, candyStyleProps[i].propertyId, candyStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int candyFontDataSize = 0; + unsigned char *data = DecompressData(candyFontData, CANDY_STYLE_FONT_ATLAS_COMP_SIZE, &candyFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 15; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, candyFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, candyFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/candy/style_candy.png b/include/styles/candy/style_candy.png new file mode 100644 index 0000000..cf5a770 Binary files /dev/null and b/include/styles/candy/style_candy.png differ diff --git a/include/styles/candy/style_candy.rgs b/include/styles/candy/style_candy.rgs new file mode 100644 index 0000000..f016522 Binary files /dev/null and b/include/styles/candy/style_candy.rgs differ diff --git a/include/styles/candy/style_candy.txt.rgs b/include/styles/candy/style_candy.txt.rgs new file mode 100644 index 0000000..69b6088 --- /dev/null +++ b/include/styles/candy/style_candy.txt.rgs @@ -0,0 +1,27 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 15 charset.txt v5easter.ttf +p 00 00 0xe58b68ff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0xfeda96ff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0xe59b5fff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0xee813fff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0xfcd85bff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0xfc6955ff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0xb34848ff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0xeb7272ff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0xbd4a4aff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0x94795dff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0xc2a37aff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x9c8369ff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x0000000f TEXT_SIZE +p 00 17 0x00000000 TEXT_SPACING +p 00 18 0xd77575ff LINE_COLOR +p 00 19 0xfff5e1ff BACKGROUND_COLOR +p 00 20 0x00000016 TEXT_LINE_SPACING diff --git a/include/styles/candy/v5easter.ttf b/include/styles/candy/v5easter.ttf new file mode 100644 index 0000000..77a911a Binary files /dev/null and b/include/styles/candy/v5easter.ttf differ diff --git a/include/styles/cherry/README.md b/include/styles/cherry/README.md new file mode 100644 index 0000000..2830c03 --- /dev/null +++ b/include/styles/cherry/README.md @@ -0,0 +1,27 @@ +## style: cherry + +Sweet with a touch of liquour, covered in chocolate, just give it a try! Not suitable for every palate, only the most demanding. + +![cherry style table](style_cherry.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_cherry.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_cherry.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_cherry.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_cherry.h` | Embeddable style as code file, self-contained, includes font data | +| `style_cherry.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![cherry style screen](screenshot.png) + +## about font + +"Westington" font by Hazel Abbiati. + +100% free font, downloaded from dafont.com: [westington](https://www.dafont.com/westington.font) diff --git a/include/styles/cherry/Westington.ttf b/include/styles/cherry/Westington.ttf new file mode 100644 index 0000000..68efae8 Binary files /dev/null and b/include/styles/cherry/Westington.ttf differ diff --git a/include/styles/cherry/charset.txt b/include/styles/cherry/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/cherry/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/cherry/screenshot.old.png b/include/styles/cherry/screenshot.old.png new file mode 100644 index 0000000..3c139e9 Binary files /dev/null and b/include/styles/cherry/screenshot.old.png differ diff --git a/include/styles/cherry/screenshot.png b/include/styles/cherry/screenshot.png new file mode 100644 index 0000000..5c01e0b Binary files /dev/null and b/include/styles/cherry/screenshot.png differ diff --git a/include/styles/cherry/style_cherry.h b/include/styles/cherry/style_cherry.h new file mode 100644 index 0000000..2808edd --- /dev/null +++ b/include/styles/cherry/style_cherry.h @@ -0,0 +1,617 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleCherry(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define CHERRY_STYLE_PROPS_COUNT 17 + +// Custom style name: Cherry +static const GuiStyleProp cherryStyleProps[CHERRY_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0xda5757ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x753233ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0xe17373ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xfaaa97ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0xe06262ff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0xfdb4aaff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0xe03c46ff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0x5b1e20ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0xc2474fff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0xa19292ff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x706060ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x9e8585ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x0000000f }, // DEFAULT_TEXT_SIZE + { 0, 17, (int)0x00000000 }, // DEFAULT_TEXT_SPACING + { 0, 18, (int)0xfb8170ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x3a1720ff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000016 }, // DEFAULT_TEXT_LINE_SPACING +}; + +// WARNING: This style uses a custom font: "Westington.ttf" (size: 15, spacing: 0) + +#define CHERRY_STYLE_FONT_ATLAS_COMP_SIZE 2821 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char cherryFontData[CHERRY_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0x59, 0x92, 0xdc, 0xba, 0x11, 0x05, 0x50, 0xee, 0x7f, 0xd3, 0xd7, 0xe1, 0x70, 0x84, 0xed, 0x27, 0xa9, 0x09, 0x20, + 0x91, 0x20, 0xab, 0x5b, 0x47, 0xe7, 0xaf, 0xa1, 0x1a, 0x38, 0x24, 0x26, 0x16, 0x12, 0xb9, 0x00, 0x00, 0x00, 0x00, 0xf2, + 0xef, 0x7f, 0x5f, 0xfd, 0xf5, 0xcf, 0x65, 0xff, 0xff, 0xaa, 0xdc, 0xbe, 0x73, 0xfd, 0xb3, 0xb3, 0xf8, 0xae, 0x59, 0xf8, + 0x7f, 0xf9, 0xf2, 0xbb, 0x64, 0xfa, 0x33, 0xd7, 0x8f, 0x7b, 0xfd, 0x58, 0xef, 0xce, 0xfd, 0xfa, 0x31, 0x5c, 0x37, 0x9f, + 0xbf, 0xf6, 0xdd, 0x2a, 0xaf, 0xb9, 0x2f, 0x59, 0xbf, 0x7b, 0x3a, 0xae, 0xc8, 0xdc, 0x35, 0xb8, 0x3f, 0xa7, 0xd7, 0xf0, + 0x95, 0xeb, 0xef, 0x9c, 0xe1, 0x59, 0x1c, 0x7f, 0xab, 0xb5, 0x1a, 0xe0, 0xeb, 0xbf, 0x8e, 0xee, 0xa6, 0x14, 0xee, 0xab, + 0xff, 0xbd, 0x22, 0x8b, 0x65, 0xa3, 0xd7, 0xec, 0xdd, 0x57, 0x59, 0xa8, 0xa5, 0x2a, 0x57, 0x21, 0x8b, 0xe7, 0x61, 0xf5, + 0xdc, 0xa5, 0x54, 0xff, 0x8c, 0xbe, 0x6d, 0x5a, 0x8e, 0xe7, 0xae, 0x24, 0xd3, 0x7f, 0x1d, 0xbf, 0xa2, 0xf2, 0x6e, 0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, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x79, 0xff, 0xf9, 0xe7, 0x3c, 0x80, 0xf8, 0x07, 0xfe, 0xba, 0xf8, 0xff, 0x17 }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle cherryFontRecs[189] = { + { 4, 4, 5 , 15 }, + { 17, 4, 3 , 10 }, + { 28, 4, 5 , 2 }, + { 41, 4, 10 , 10 }, + { 59, 4, 7 , 11 }, + { 74, 4, 7 , 10 }, + { 89, 4, 8 , 10 }, + { 105, 4, 1 , 2 }, + { 114, 4, 3 , 10 }, + { 125, 4, 3 , 10 }, + { 136, 4, 3 , 3 }, + { 147, 4, 7 , 7 }, + { 162, 4, 2 , 2 }, + { 172, 4, 6 , 3 }, + { 186, 4, 1 , 1 }, + { 195, 4, 4 , 10 }, + { 207, 4, 5 , 8 }, + { 220, 4, 5 , 8 }, + { 233, 4, 5 , 8 }, + { 246, 4, 5 , 8 }, + { 259, 4, 5 , 8 }, + { 272, 4, 5 , 8 }, + { 285, 4, 5 , 8 }, + { 298, 4, 5 , 8 }, + { 311, 4, 5 , 8 }, + { 324, 4, 5 , 8 }, + { 337, 4, 3 , 10 }, + { 348, 4, 3 , 12 }, + { 359, 4, 6 , 7 }, + { 373, 4, 6 , 4 }, + { 387, 4, 6 , 7 }, + { 401, 4, 5 , 10 }, + { 414, 4, 8 , 10 }, + { 430, 4, 7 , 9 }, + { 445, 4, 7 , 9 }, + { 460, 4, 6 , 9 }, + { 474, 4, 6 , 9 }, + { 488, 4, 7 , 9 }, + { 4, 27, 6 , 9 }, + { 18, 27, 6 , 9 }, + { 32, 27, 7 , 9 }, + { 47, 27, 3 , 9 }, + { 58, 27, 6 , 9 }, + { 72, 27, 7 , 9 }, + { 87, 27, 7 , 9 }, + { 102, 27, 11 , 9 }, + { 121, 27, 8 , 9 }, + { 137, 27, 6 , 9 }, + { 151, 27, 6 , 9 }, + { 165, 27, 7 , 9 }, + { 180, 27, 7 , 9 }, + { 195, 27, 6 , 9 }, + { 209, 27, 7 , 9 }, + { 224, 27, 8 , 9 }, + { 240, 27, 9 , 9 }, + { 257, 27, 11 , 9 }, + { 276, 27, 7 , 9 }, + { 291, 27, 7 , 9 }, + { 306, 27, 7 , 9 }, + { 321, 27, 3 , 9 }, + { 332, 27, 4 , 10 }, + { 344, 27, 3 , 9 }, + { 355, 27, 3 , 3 }, + { 366, 27, 7 , 2 }, + { 381, 27, 2 , 2 }, + { 391, 27, 6 , 6 }, + { 405, 27, 6 , 9 }, + { 419, 27, 6 , 6 }, + { 433, 27, 6 , 9 }, + { 447, 27, 6 , 6 }, + { 461, 27, 5 , 9 }, + { 474, 27, 5 , 9 }, + { 487, 27, 7 , 9 }, + { 4, 50, 3 , 7 }, + { 15, 50, 3 , 8 }, + { 26, 50, 6 , 9 }, + { 40, 50, 4 , 9 }, + { 52, 50, 11 , 6 }, + { 71, 50, 7 , 6 }, + { 86, 50, 5 , 6 }, + { 99, 50, 6 , 8 }, + { 113, 50, 6 , 8 }, + { 127, 50, 5 , 6 }, + { 140, 50, 5 , 6 }, + { 153, 50, 5 , 9 }, + { 166, 50, 7 , 6 }, + { 181, 50, 7 , 6 }, + { 196, 50, 11 , 6 }, + { 215, 50, 7 , 6 }, + { 230, 50, 7 , 8 }, + { 245, 50, 6 , 6 }, + { 259, 50, 5 , 9 }, + { 272, 50, 1 , 9 }, + { 281, 50, 5 , 9 }, + { 294, 50, 7 , 3 }, + { 309, 50, 3 , 10 }, + { 320, 50, 7 , 10 }, + { 335, 50, 7 , 10 }, + { 350, 50, 6 , 9 }, + { 364, 50, 7 , 9 }, + { 379, 50, 6 , 12 }, + { 393, 50, 7 , 11 }, + { 408, 50, 5 , 9 }, + { 421, 50, 5 , 5 }, + { 434, 50, 4 , 5 }, + { 446, 50, 6 , 7 }, + { 460, 50, 6 , 3 }, + { 474, 50, 5 , 5 }, + { 487, 50, 6 , 1 }, + { 4, 73, 3 , 3 }, + { 15, 73, 7 , 10 }, + { 30, 73, 3 , 5 }, + { 41, 73, 3 , 5 }, + { 52, 73, 7 , 12 }, + { 67, 73, 6 , 8 }, + { 81, 73, 7 , 9 }, + { 96, 73, 2 , 3 }, + { 106, 73, 6 , 9 }, + { 120, 73, 3 , 5 }, + { 131, 73, 3 , 5 }, + { 142, 73, 6 , 7 }, + { 156, 73, 13 , 9 }, + { 177, 73, 10 , 6 }, + { 195, 73, 7 , 11 }, + { 210, 73, 5 , 10 }, + { 223, 73, 7 , 12 }, + { 238, 73, 7 , 12 }, + { 253, 73, 7 , 12 }, + { 268, 73, 7 , 12 }, + { 283, 73, 7 , 11 }, + { 298, 73, 7 , 11 }, + { 313, 73, 12 , 9 }, + { 333, 73, 6 , 11 }, + { 347, 73, 7 , 12 }, + { 362, 73, 7 , 12 }, + { 377, 73, 7 , 12 }, + { 392, 73, 7 , 11 }, + { 407, 73, 3 , 12 }, + { 418, 73, 3 , 12 }, + { 429, 73, 3 , 12 }, + { 440, 73, 3 , 11 }, + { 451, 73, 7 , 9 }, + { 466, 73, 8 , 12 }, + { 482, 73, 6 , 12 }, + { 496, 73, 6 , 12 }, + { 4, 96, 6 , 12 }, + { 18, 96, 6 , 12 }, + { 32, 96, 6 , 11 }, + { 46, 96, 5 , 5 }, + { 59, 96, 8 , 9 }, + { 75, 96, 8 , 12 }, + { 91, 96, 8 , 12 }, + { 107, 96, 8 , 12 }, + { 123, 96, 8 , 11 }, + { 139, 96, 7 , 12 }, + { 154, 96, 7 , 9 }, + { 169, 96, 8 , 9 }, + { 185, 96, 6 , 9 }, + { 199, 96, 6 , 9 }, + { 213, 96, 6 , 9 }, + { 227, 96, 6 , 9 }, + { 241, 96, 6 , 8 }, + { 255, 96, 6 , 10 }, + { 269, 96, 10 , 6 }, + { 287, 96, 6 , 8 }, + { 301, 96, 6 , 9 }, + { 315, 96, 6 , 9 }, + { 329, 96, 6 , 9 }, + { 343, 96, 6 , 8 }, + { 357, 96, 3 , 10 }, + { 368, 96, 3 , 10 }, + { 379, 96, 3 , 10 }, + { 390, 96, 3 , 9 }, + { 401, 96, 6 , 10 }, + { 415, 96, 7 , 9 }, + { 430, 96, 5 , 9 }, + { 443, 96, 5 , 9 }, + { 456, 96, 5 , 9 }, + { 469, 96, 5 , 9 }, + { 482, 96, 5 , 8 }, + { 495, 96, 7 , 9 }, + { 4, 119, 8 , 8 }, + { 20, 119, 7 , 9 }, + { 35, 119, 7 , 9 }, + { 50, 119, 7 , 9 }, + { 65, 119, 7 , 8 }, + { 80, 119, 7 , 11 }, + { 95, 119, 5 , 8 }, + { 108, 119, 7 , 10 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo cherryFontGlyphs[189] = { + { 32, 0, 0, 5, { 0 }}, + { 33, 0, 2, 4, { 0 }}, + { 34, 0, 2, 6, { 0 }}, + { 35, 0, 2, 11, { 0 }}, + { 36, 0, 2, 8, { 0 }}, + { 37, 0, 2, 8, { 0 }}, + { 38, 0, 2, 9, { 0 }}, + { 39, 0, 2, 2, { 0 }}, + { 40, 0, 2, 4, { 0 }}, + { 41, 0, 2, 4, { 0 }}, + { 42, 0, 2, 4, { 0 }}, + { 43, 0, 4, 8, { 0 }}, + { 44, 0, 11, 3, { 0 }}, + { 45, 0, 6, 7, { 0 }}, + { 46, 0, 11, 2, { 0 }}, + { 47, 0, 2, 5, { 0 }}, + { 48, 0, 4, 6, { 0 }}, + { 49, 0, 4, 6, { 0 }}, + { 50, 0, 4, 6, { 0 }}, + { 51, 0, 4, 6, { 0 }}, + { 52, 0, 4, 6, { 0 }}, + { 53, 0, 4, 6, { 0 }}, + { 54, 0, 4, 6, { 0 }}, + { 55, 0, 4, 6, { 0 }}, + { 56, 0, 4, 6, { 0 }}, + { 57, 0, 4, 6, { 0 }}, + { 58, 0, 2, 4, { 0 }}, + { 59, 0, 2, 4, { 0 }}, + { 60, 0, 4, 7, { 0 }}, + { 61, 0, 5, 7, { 0 }}, + { 62, 0, 4, 7, { 0 }}, + { 63, 0, 2, 6, { 0 }}, + { 64, 0, 2, 9, { 0 }}, + { 65, 0, 3, 8, { 0 }}, + { 66, 0, 3, 8, { 0 }}, + { 67, 0, 3, 7, { 0 }}, + { 68, 0, 3, 7, { 0 }}, + { 69, 0, 3, 8, { 0 }}, + { 70, 0, 3, 7, { 0 }}, + { 71, 0, 3, 7, { 0 }}, + { 72, 0, 3, 8, { 0 }}, + { 73, 0, 3, 4, { 0 }}, + { 74, 0, 3, 7, { 0 }}, + { 75, 0, 3, 8, { 0 }}, + { 76, 0, 3, 8, { 0 }}, + { 77, 0, 3, 12, { 0 }}, + { 78, 0, 3, 9, { 0 }}, + { 79, 0, 3, 7, { 0 }}, + { 80, 0, 3, 7, { 0 }}, + { 81, 0, 3, 8, { 0 }}, + { 82, 0, 3, 8, { 0 }}, + { 83, 0, 3, 7, { 0 }}, + { 84, 0, 3, 8, { 0 }}, + { 85, 0, 3, 9, { 0 }}, + { 86, 0, 3, 10, { 0 }}, + { 87, 0, 3, 12, { 0 }}, + { 88, 0, 3, 8, { 0 }}, + { 89, 0, 3, 8, { 0 }}, + { 90, 0, 3, 8, { 0 }}, + { 91, 0, 3, 4, { 0 }}, + { 92, 0, 2, 5, { 0 }}, + { 93, 0, 3, 4, { 0 }}, + { 94, 0, 3, 4, { 0 }}, + { 95, 0, 10, 8, { 0 }}, + { 96, 0, 2, 3, { 0 }}, + { 97, 0, 6, 7, { 0 }}, + { 98, 0, 3, 7, { 0 }}, + { 99, 0, 6, 7, { 0 }}, + { 100, 0, 3, 7, { 0 }}, + { 101, 0, 6, 7, { 0 }}, + { 102, 0, 3, 6, { 0 }}, + { 103, 0, 5, 6, { 0 }}, + { 104, 0, 3, 8, { 0 }}, + { 105, 0, 5, 4, { 0 }}, + { 106, 0, 5, 4, { 0 }}, + { 107, 0, 3, 7, { 0 }}, + { 108, 0, 3, 5, { 0 }}, + { 109, 0, 6, 12, { 0 }}, + { 110, 0, 6, 8, { 0 }}, + { 111, 0, 6, 6, { 0 }}, + { 112, 0, 6, 7, { 0 }}, + { 113, 0, 6, 7, { 0 }}, + { 114, 0, 6, 6, { 0 }}, + { 115, 0, 6, 6, { 0 }}, + { 116, 0, 3, 6, { 0 }}, + { 117, 0, 6, 8, { 0 }}, + { 118, 0, 6, 8, { 0 }}, + { 119, 0, 6, 12, { 0 }}, + { 120, 0, 6, 8, { 0 }}, + { 121, 0, 6, 8, { 0 }}, + { 122, 0, 6, 7, { 0 }}, + { 123, 0, 3, 6, { 0 }}, + { 124, 0, 3, 2, { 0 }}, + { 125, 0, 3, 6, { 0 }}, + { 126, 0, 6, 8, { 0 }}, + { 161, 0, 4, 4, { 0 }}, + { 162, 0, 4, 8, { 0 }}, + { 163, 0, 2, 8, { 0 }}, + { 8364, 0, 3, 7, { 0 }}, + { 165, 0, 3, 8, { 0 }}, + { 352, 0, 0, 7, { 0 }}, + { 167, 0, 2, 8, { 0 }}, + { 353, 0, 3, 6, { 0 }}, + { 169, 0, 1, 6, { 0 }}, + { 170, 0, 2, 5, { 0 }}, + { 171, 0, 5, 7, { 0 }}, + { 172, 0, 6, 7, { 0 }}, + { 174, 0, 1, 6, { 0 }}, + { 175, 0, 2, 7, { 0 }}, + { 176, 0, 2, 4, { 0 }}, + { 177, 0, 3, 8, { 0 }}, + { 178, 0, 2, 4, { 0 }}, + { 179, 0, 2, 4, { 0 }}, + { 381, 0, 0, 8, { 0 }}, + { 181, 0, 6, 7, { 0 }}, + { 182, 0, 3, 8, { 0 }}, + { 183, 0, 6, 3, { 0 }}, + { 382, 0, 3, 7, { 0 }}, + { 185, 0, 2, 4, { 0 }}, + { 186, 0, 2, 4, { 0 }}, + { 187, 0, 5, 7, { 0 }}, + { 338, 0, 3, 14, { 0 }}, + { 339, 0, 6, 11, { 0 }}, + { 376, 0, 1, 8, { 0 }}, + { 191, 0, 4, 6, { 0 }}, + { 192, 0, 0, 8, { 0 }}, + { 193, 0, 0, 8, { 0 }}, + { 194, 0, 0, 8, { 0 }}, + { 195, 0, 0, 8, { 0 }}, + { 196, 0, 1, 8, { 0 }}, + { 197, 0, 1, 8, { 0 }}, + { 198, 0, 3, 13, { 0 }}, + { 199, 0, 3, 7, { 0 }}, + { 200, 0, 0, 8, { 0 }}, + { 201, 0, 0, 8, { 0 }}, + { 202, 0, 0, 8, { 0 }}, + { 203, 0, 1, 8, { 0 }}, + { 204, 0, 0, 4, { 0 }}, + { 205, 0, 0, 4, { 0 }}, + { 206, 0, 0, 4, { 0 }}, + { 207, 0, 1, 4, { 0 }}, + { 208, 0, 3, 8, { 0 }}, + { 209, 0, 0, 9, { 0 }}, + { 210, 0, 0, 7, { 0 }}, + { 211, 0, 0, 7, { 0 }}, + { 212, 0, 0, 7, { 0 }}, + { 213, 0, 0, 7, { 0 }}, + { 214, 0, 1, 7, { 0 }}, + { 215, 1, 5, 7, { 0 }}, + { 216, 0, 3, 9, { 0 }}, + { 217, 0, 0, 9, { 0 }}, + { 218, 0, 0, 9, { 0 }}, + { 219, 0, 0, 9, { 0 }}, + { 220, 0, 1, 9, { 0 }}, + { 221, 0, 0, 8, { 0 }}, + { 222, 0, 2, 8, { 0 }}, + { 223, 0, 3, 9, { 0 }}, + { 224, 0, 3, 7, { 0 }}, + { 225, 0, 3, 7, { 0 }}, + { 226, 0, 3, 7, { 0 }}, + { 227, 0, 3, 7, { 0 }}, + { 228, 0, 4, 7, { 0 }}, + { 229, 0, 2, 7, { 0 }}, + { 230, 0, 6, 11, { 0 }}, + { 231, 0, 6, 7, { 0 }}, + { 232, 0, 3, 7, { 0 }}, + { 233, 0, 3, 7, { 0 }}, + { 234, 0, 3, 7, { 0 }}, + { 235, 0, 4, 7, { 0 }}, + { 236, 0, 2, 4, { 0 }}, + { 237, 0, 2, 4, { 0 }}, + { 238, 0, 2, 4, { 0 }}, + { 239, 0, 3, 4, { 0 }}, + { 240, 0, 2, 7, { 0 }}, + { 241, 0, 3, 8, { 0 }}, + { 242, 0, 3, 6, { 0 }}, + { 243, 0, 3, 6, { 0 }}, + { 244, 0, 3, 6, { 0 }}, + { 245, 0, 3, 6, { 0 }}, + { 246, 0, 4, 6, { 0 }}, + { 247, 0, 3, 8, { 0 }}, + { 248, 0, 4, 9, { 0 }}, + { 249, 0, 3, 8, { 0 }}, + { 250, 0, 3, 8, { 0 }}, + { 251, 0, 3, 8, { 0 }}, + { 252, 0, 4, 8, { 0 }}, + { 253, 0, 3, 8, { 0 }}, + { 254, 0, 4, 6, { 0 }}, + { 255, 0, 4, 8, { 0 }}, +}; + +// Style loading function: Cherry +static void GuiLoadStyleCherry(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < CHERRY_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(cherryStyleProps[i].controlId, cherryStyleProps[i].propertyId, cherryStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int cherryFontDataSize = 0; + unsigned char *data = DecompressData(cherryFontData, CHERRY_STYLE_FONT_ATLAS_COMP_SIZE, &cherryFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 15; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, cherryFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, cherryFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/cherry/style_cherry.png b/include/styles/cherry/style_cherry.png new file mode 100644 index 0000000..2e54516 Binary files /dev/null and b/include/styles/cherry/style_cherry.png differ diff --git a/include/styles/cherry/style_cherry.rgs b/include/styles/cherry/style_cherry.rgs new file mode 100644 index 0000000..7ef11a2 Binary files /dev/null and b/include/styles/cherry/style_cherry.rgs differ diff --git a/include/styles/cherry/style_cherry.txt.rgs b/include/styles/cherry/style_cherry.txt.rgs new file mode 100644 index 0000000..447c6d2 --- /dev/null +++ b/include/styles/cherry/style_cherry.txt.rgs @@ -0,0 +1,27 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 15 charset.txt Westington.ttf +p 00 00 0xda5757ff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0x753233ff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0xe17373ff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0xfaaa97ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0xe06262ff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0xfdb4aaff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0xe03c46ff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0x5b1e20ff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0xc2474fff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0xa19292ff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0x706060ff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x9e8585ff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x0000000f TEXT_SIZE +p 00 17 0x00000000 TEXT_SPACING +p 00 18 0xfb8170ff LINE_COLOR +p 00 19 0x3a1720ff BACKGROUND_COLOR +p 00 20 0x00000016 TEXT_LINE_SPACING diff --git a/include/styles/cyber/Kyrou7Wide.ttf b/include/styles/cyber/Kyrou7Wide.ttf new file mode 100644 index 0000000..165c3e7 Binary files /dev/null and b/include/styles/cyber/Kyrou7Wide.ttf differ diff --git a/include/styles/cyber/README.md b/include/styles/cyber/README.md new file mode 100644 index 0000000..12a5f4c --- /dev/null +++ b/include/styles/cyber/README.md @@ -0,0 +1,27 @@ +## style: cyber + +Future is now! Neons and shadows, city never sleeps! Robots waiting in the corners and expensive vending machines! You got the style! + +![cyber style table](style_cyber.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_cyber.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_cyber.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_cyber.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_cyber.h` | Embeddable style as code file, self-contained, includes font data | +| `style_cyber.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![cyber style screen](screenshot.png) + +## about font + +"Grixel Kyrou 7 Wide" font by [Nikos Giannakopoulos](http://www.grixel.gr/). + +100% free font, downloaded from dafont.com: [grixel-kyrou-7-wide](https://www.dafont.com/grixel-kyrou-7-wide.font) diff --git a/include/styles/cyber/charset.txt b/include/styles/cyber/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/cyber/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/cyber/font_readme.txt b/include/styles/cyber/font_readme.txt new file mode 100644 index 0000000..45def0a --- /dev/null +++ b/include/styles/cyber/font_readme.txt @@ -0,0 +1,36 @@ +Thank you for downloading the free Grixel fonts. You can use them in your personal and commercial projects too. They include Western European, Central European, Turkish and Greek characters. They are Unicode TrueType fonts and are optimized to work in both Windows XP and Mac OS X platforms using Adobe Photoshop CS2 and Macromedia Flash 8. + + +Grixel fonts are under Creative Commons Attribution-NoDerivs 2.5 License which can be found here: + +http://creativecommons.org/licenses/by-nd/2.5/ + +=============================================================== +Attribution-NoDerivs 2.5 + +You are free: + + * to copy, distribute, display, and perform the work + * to make commercial use of the work + +Under the following conditions: + +by +Attribution. You must attribute the work in the manner specified by the author or licensor. + +nd +No Derivative Works. You may not alter, transform, or build upon this work. + + * For any reuse or distribution, you must make clear to others the license terms of this work. + * Any of these conditions can be waived if you get permission from the copyright holder. + +Your fair use and other rights are in no way affected by the above. +=============================================================== + + +In no event shall Nikos Giannakopoulos be held liable to you for any consequential or incidental damages, including any lost revenue, profits, goodwill or savings, or for any claim by any third party caused by using these fonts. + +Please read the UsageGuides.pdf before you use them. + + +Grixel - Greek pixel fonts | Nikos Giannakopoulos | www.grixel.gr \ No newline at end of file diff --git a/include/styles/cyber/screenshot.old.png b/include/styles/cyber/screenshot.old.png new file mode 100644 index 0000000..2ea08b5 Binary files /dev/null and b/include/styles/cyber/screenshot.old.png differ diff --git a/include/styles/cyber/screenshot.png b/include/styles/cyber/screenshot.png new file mode 100644 index 0000000..58d5cfd Binary files /dev/null and b/include/styles/cyber/screenshot.png differ diff --git a/include/styles/cyber/style_cyber.h b/include/styles/cyber/style_cyber.h new file mode 100644 index 0000000..9f27578 --- /dev/null +++ b/include/styles/cyber/style_cyber.h @@ -0,0 +1,592 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleCyber(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define CYBER_STYLE_PROPS_COUNT 17 + +// Custom style name: Cyber +static const GuiStyleProp cyberStyleProps[CYBER_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x2f7486ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x024658ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0x51bfd3ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0x82cde0ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0x3299b4ff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0xb6e1eaff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0xeb7630ff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0xffbc51ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0xd86f36ff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x134b5aff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x02313dff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x17505fff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x0000000e }, // DEFAULT_TEXT_SIZE + { 0, 17, (int)0x00000000 }, // DEFAULT_TEXT_SPACING + { 0, 18, (int)0x81c0d0ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x00222bff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000015 }, // DEFAULT_TEXT_LINE_SPACING +}; + +// WARNING: This style uses a custom font: "Kyrou7Wide.ttf" (size: 14, spacing: 0) + +#define CYBER_STYLE_FONT_ATLAS_COMP_SIZE 2306 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char cyberFontData[CYBER_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0xdd, 0x72, 0xe3, 0x36, 0x12, 0x06, 0x50, 0x96, 0x6b, 0xdf, 0xff, 0x85, 0x1d, 0xec, 0xb7, 0xb5, 0x93, 0x4c, 0xe2, + 0xa9, 0x8c, 0x88, 0x7f, 0x8a, 0x92, 0xcf, 0x9c, 0xaa, 0xb9, 0x30, 0x2d, 0x89, 0x04, 0xd1, 0x40, 0x93, 0x34, 0x5a, 0x39, + 0x00, 0x00, 0x00, 0x00, 0x16, 0xcb, 0xc5, 0x9f, 0x96, 0xe6, 0x9f, 0xae, 0x3b, 0xa2, 0x9f, 0xff, 0x9e, 0x7b, 0xec, 0xfa, + 0x57, 0x7f, 0xbb, 0xe7, 0xe1, 0xb9, 0xd3, 0x9e, 0x5f, 0x7f, 0x92, 0xd3, 0xdf, 0xcd, 0x50, 0xeb, 0xa6, 0x7a, 0xc6, 0xce, + 0xcf, 0x4c, 0x5f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, 0x15, 0x3b, 0xf7, 0xf9, 0x43, 0x0f, 0xe5, 0x49, 0x39, 0x40, 0xdb, 0x5a, 0xf6, 0x72, 0xab, + 0xad, 0x8f, 0xf7, 0x39, 0x8d, 0x95, 0xfd, 0xee, 0xb5, 0x75, 0xa6, 0x9e, 0x2f, 0xb4, 0x5c, 0x11, 0xd7, 0xab, 0xa2, 0xbe, + 0xce, 0xd6, 0x96, 0xa3, 0x3d, 0xde, 0xe4, 0x58, 0xc5, 0x3f, 0xab, 0xe6, 0xfc, 0x77, 0xea, 0xf5, 0x99, 0x6a, 0x0b, 0xf1, + 0x8f, 0xf8, 0xff, 0x6e, 0xbd, 0x5e, 0xfc, 0xf3, 0x7d, 0xf3, 0xff, 0x32, 0x55, 0x2f, 0xfe, 0xb8, 0xd5, 0xd6, 0xf9, 0x6b, + 0xa1, 0xfb, 0x6c, 0xbd, 0x6b, 0x15, 0x44, 0xe0, 0x8a, 0x3b, 0xb0, 0x73, 0x4f, 0x70, 0x81, 0xd7, 0xc8, 0xc1, 0x46, 0xe2, + 0xda, 0xec, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x8b, 0x3f, 0xff, 0x69, 0x07, 0x10, 0xff, 0xc0, + 0xb7, 0x8b, 0xff, 0xff, 0x01 }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle cyberFontRecs[189] = { + { 4, 4, 4 , 14 }, + { 16, 4, 1 , 8 }, + { 25, 4, 4 , 3 }, + { 37, 4, 8 , 8 }, + { 53, 4, 8 , 9 }, + { 69, 4, 8 , 8 }, + { 85, 4, 8 , 8 }, + { 101, 4, 1 , 3 }, + { 110, 4, 4 , 9 }, + { 122, 4, 4 , 9 }, + { 134, 4, 5 , 6 }, + { 147, 4, 5 , 6 }, + { 160, 4, 2 , 2 }, + { 170, 4, 4 , 1 }, + { 182, 4, 1 , 1 }, + { 191, 4, 8 , 8 }, + { 207, 4, 8 , 8 }, + { 223, 4, 2 , 8 }, + { 233, 4, 8 , 8 }, + { 249, 4, 8 , 8 }, + { 265, 4, 8 , 8 }, + { 281, 4, 8 , 8 }, + { 297, 4, 8 , 8 }, + { 313, 4, 7 , 8 }, + { 328, 4, 8 , 8 }, + { 344, 4, 8 , 8 }, + { 360, 4, 1 , 4 }, + { 369, 4, 2 , 5 }, + { 379, 4, 4 , 8 }, + { 391, 4, 5 , 3 }, + { 404, 4, 4 , 8 }, + { 416, 4, 7 , 8 }, + { 431, 4, 8 , 8 }, + { 447, 4, 8 , 8 }, + { 463, 4, 8 , 8 }, + { 479, 4, 8 , 8 }, + { 495, 4, 8 , 8 }, + { 4, 26, 7 , 8 }, + { 19, 26, 7 , 8 }, + { 34, 26, 8 , 8 }, + { 50, 26, 8 , 8 }, + { 66, 26, 5 , 8 }, + { 79, 26, 7 , 8 }, + { 94, 26, 8 , 8 }, + { 110, 26, 7 , 8 }, + { 125, 26, 8 , 8 }, + { 141, 26, 8 , 8 }, + { 157, 26, 8 , 8 }, + { 173, 26, 8 , 8 }, + { 189, 26, 8 , 9 }, + { 205, 26, 8 , 8 }, + { 221, 26, 8 , 8 }, + { 237, 26, 8 , 8 }, + { 253, 26, 8 , 8 }, + { 269, 26, 8 , 8 }, + { 285, 26, 9 , 8 }, + { 302, 26, 8 , 8 }, + { 318, 26, 8 , 8 }, + { 334, 26, 8 , 8 }, + { 350, 26, 4 , 9 }, + { 362, 26, 8 , 8 }, + { 378, 26, 4 , 9 }, + { 390, 26, 4 , 3 }, + { 402, 26, 7 , 1 }, + { 417, 26, 2 , 3 }, + { 427, 26, 7 , 5 }, + { 442, 26, 7 , 8 }, + { 457, 26, 7 , 5 }, + { 472, 26, 7 , 8 }, + { 487, 26, 7 , 5 }, + { 4, 48, 4 , 8 }, + { 16, 48, 7 , 7 }, + { 31, 48, 7 , 8 }, + { 46, 48, 1 , 8 }, + { 55, 48, 3 , 10 }, + { 66, 48, 7 , 8 }, + { 81, 48, 4 , 8 }, + { 93, 48, 9 , 5 }, + { 110, 48, 7 , 5 }, + { 125, 48, 7 , 5 }, + { 140, 48, 7 , 7 }, + { 155, 48, 7 , 7 }, + { 170, 48, 5 , 5 }, + { 183, 48, 7 , 5 }, + { 198, 48, 5 , 8 }, + { 211, 48, 7 , 5 }, + { 226, 48, 7 , 5 }, + { 241, 48, 9 , 5 }, + { 258, 48, 7 , 5 }, + { 273, 48, 7 , 7 }, + { 288, 48, 7 , 5 }, + { 303, 48, 4 , 9 }, + { 315, 48, 1 , 9 }, + { 324, 48, 4 , 9 }, + { 336, 48, 8 , 2 }, + { 352, 48, 1 , 8 }, + { 361, 48, 7 , 8 }, + { 376, 48, 7 , 8 }, + { 391, 48, 8 , 9 }, + { 407, 48, 8 , 9 }, + { 423, 48, 8 , 10 }, + { 439, 48, 4 , 9 }, + { 451, 48, 7 , 8 }, + { 466, 48, 8 , 8 }, + { 482, 48, 7 , 6 }, + { 497, 48, 5 , 3 }, + { 4, 70, 5 , 3 }, + { 17, 70, 8 , 8 }, + { 33, 70, 0 , 0 }, + { 41, 70, 4 , 3 }, + { 53, 70, 8 , 6 }, + { 69, 70, 4 , 5 }, + { 81, 70, 4 , 5 }, + { 93, 70, 8 , 10 }, + { 109, 70, 7 , 7 }, + { 124, 70, 5 , 7 }, + { 137, 70, 1 , 1 }, + { 146, 70, 7 , 8 }, + { 161, 70, 2 , 5 }, + { 171, 70, 4 , 5 }, + { 183, 70, 5 , 3 }, + { 196, 70, 14 , 8 }, + { 218, 70, 13 , 5 }, + { 239, 70, 8 , 9 }, + { 255, 70, 7 , 8 }, + { 270, 70, 8 , 10 }, + { 286, 70, 8 , 10 }, + { 302, 70, 8 , 10 }, + { 318, 70, 8 , 10 }, + { 334, 70, 8 , 9 }, + { 350, 70, 8 , 12 }, + { 366, 70, 14 , 8 }, + { 388, 70, 8 , 10 }, + { 404, 70, 7 , 10 }, + { 419, 70, 7 , 10 }, + { 434, 70, 7 , 10 }, + { 449, 70, 7 , 9 }, + { 464, 70, 5 , 10 }, + { 477, 70, 5 , 10 }, + { 490, 70, 5 , 10 }, + { 4, 92, 5 , 9 }, + { 17, 92, 8 , 8 }, + { 33, 92, 8 , 10 }, + { 49, 92, 8 , 10 }, + { 65, 92, 8 , 10 }, + { 81, 92, 8 , 10 }, + { 97, 92, 8 , 10 }, + { 113, 92, 8 , 9 }, + { 129, 92, 4 , 4 }, + { 141, 92, 8 , 8 }, + { 157, 92, 8 , 10 }, + { 173, 92, 8 , 10 }, + { 189, 92, 8 , 10 }, + { 205, 92, 8 , 9 }, + { 221, 92, 8 , 10 }, + { 237, 92, 7 , 9 }, + { 252, 92, 7 , 9 }, + { 267, 92, 7 , 8 }, + { 282, 92, 7 , 8 }, + { 297, 92, 7 , 8 }, + { 312, 92, 7 , 8 }, + { 327, 92, 7 , 8 }, + { 342, 92, 7 , 9 }, + { 357, 92, 13 , 5 }, + { 378, 92, 7 , 7 }, + { 393, 92, 7 , 8 }, + { 408, 92, 7 , 8 }, + { 423, 92, 7 , 8 }, + { 438, 92, 7 , 8 }, + { 453, 92, 3 , 8 }, + { 464, 92, 2 , 8 }, + { 474, 92, 3 , 8 }, + { 485, 92, 3 , 8 }, + { 4, 114, 8 , 8 }, + { 20, 114, 7 , 8 }, + { 35, 114, 7 , 8 }, + { 50, 114, 7 , 8 }, + { 65, 114, 7 , 8 }, + { 80, 114, 7 , 8 }, + { 95, 114, 7 , 8 }, + { 110, 114, 5 , 6 }, + { 123, 114, 7 , 5 }, + { 138, 114, 7 , 8 }, + { 153, 114, 7 , 8 }, + { 168, 114, 7 , 8 }, + { 183, 114, 7 , 8 }, + { 198, 114, 7 , 10 }, + { 213, 114, 7 , 10 }, + { 228, 114, 7 , 10 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo cyberFontGlyphs[189] = { + { 32, 0, 0, 4, { 0 }}, + { 33, 0, 3, 2, { 0 }}, + { 34, 0, 3, 4, { 0 }}, + { 35, 0, 3, 8, { 0 }}, + { 36, 0, 3, 8, { 0 }}, + { 37, 0, 3, 8, { 0 }}, + { 38, 0, 3, 8, { 0 }}, + { 39, 0, 3, 2, { 0 }}, + { 40, 0, 3, 4, { 0 }}, + { 41, 0, 3, 4, { 0 }}, + { 42, 0, 4, 6, { 0 }}, + { 43, 0, 4, 6, { 0 }}, + { 44, 0, 10, 3, { 0 }}, + { 45, 0, 7, 5, { 0 }}, + { 46, 0, 10, 2, { 0 }}, + { 47, 0, 3, 8, { 0 }}, + { 48, 0, 3, 8, { 0 }}, + { 49, 0, 3, 3, { 0 }}, + { 50, 0, 3, 8, { 0 }}, + { 51, 0, 3, 8, { 0 }}, + { 52, 0, 3, 8, { 0 }}, + { 53, 0, 3, 8, { 0 }}, + { 54, 0, 3, 8, { 0 }}, + { 55, 0, 3, 7, { 0 }}, + { 56, 0, 3, 8, { 0 }}, + { 57, 0, 3, 8, { 0 }}, + { 58, 0, 6, 2, { 0 }}, + { 59, 0, 6, 3, { 0 }}, + { 60, 0, 3, 5, { 0 }}, + { 61, 0, 6, 6, { 0 }}, + { 62, 0, 3, 5, { 0 }}, + { 63, 0, 3, 7, { 0 }}, + { 64, 0, 3, 8, { 0 }}, + { 65, 0, 3, 8, { 0 }}, + { 66, 0, 3, 8, { 0 }}, + { 67, 0, 3, 8, { 0 }}, + { 68, 0, 3, 8, { 0 }}, + { 69, 0, 3, 7, { 0 }}, + { 70, 0, 3, 7, { 0 }}, + { 71, 0, 3, 8, { 0 }}, + { 72, 0, 3, 8, { 0 }}, + { 73, 0, 3, 6, { 0 }}, + { 74, 0, 3, 7, { 0 }}, + { 75, 0, 3, 8, { 0 }}, + { 76, 0, 3, 7, { 0 }}, + { 77, 0, 3, 9, { 0 }}, + { 78, 0, 3, 8, { 0 }}, + { 79, 0, 3, 8, { 0 }}, + { 80, 0, 3, 8, { 0 }}, + { 81, 0, 3, 8, { 0 }}, + { 82, 0, 3, 8, { 0 }}, + { 83, 0, 3, 8, { 0 }}, + { 84, 0, 3, 8, { 0 }}, + { 85, 0, 3, 8, { 0 }}, + { 86, 0, 3, 8, { 0 }}, + { 87, 0, 3, 10, { 0 }}, + { 88, 0, 3, 8, { 0 }}, + { 89, 0, 3, 8, { 0 }}, + { 90, 0, 3, 8, { 0 }}, + { 91, 0, 3, 4, { 0 }}, + { 92, 0, 3, 8, { 0 }}, + { 93, 0, 3, 4, { 0 }}, + { 94, 0, 3, 4, { 0 }}, + { 95, 0, 11, 7, { 0 }}, + { 96, 0, 3, 3, { 0 }}, + { 97, 0, 6, 7, { 0 }}, + { 98, 0, 3, 7, { 0 }}, + { 99, 0, 6, 7, { 0 }}, + { 100, 0, 3, 7, { 0 }}, + { 101, 0, 6, 7, { 0 }}, + { 102, 0, 3, 5, { 0 }}, + { 103, 0, 6, 7, { 0 }}, + { 104, 0, 3, 7, { 0 }}, + { 105, 0, 3, 2, { 0 }}, + { 106, -2, 3, 2, { 0 }}, + { 107, 0, 3, 7, { 0 }}, + { 108, 0, 3, 4, { 0 }}, + { 109, 0, 6, 10, { 0 }}, + { 110, 0, 6, 7, { 0 }}, + { 111, 0, 6, 7, { 0 }}, + { 112, 0, 6, 7, { 0 }}, + { 113, 0, 6, 7, { 0 }}, + { 114, 0, 6, 6, { 0 }}, + { 115, 0, 6, 7, { 0 }}, + { 116, 0, 3, 6, { 0 }}, + { 117, 0, 6, 7, { 0 }}, + { 118, 0, 6, 7, { 0 }}, + { 119, 0, 6, 10, { 0 }}, + { 120, 0, 6, 7, { 0 }}, + { 121, 0, 6, 7, { 0 }}, + { 122, 0, 6, 7, { 0 }}, + { 123, 0, 3, 5, { 0 }}, + { 124, 0, 3, 2, { 0 }}, + { 125, 0, 3, 5, { 0 }}, + { 126, 0, 6, 8, { 0 }}, + { 161, 0, 3, 2, { 0 }}, + { 162, 0, 4, 7, { 0 }}, + { 163, 0, 3, 7, { 0 }}, + { 8364, 0, 3, 9, { 0 }}, + { 165, 0, 3, 8, { 0 }}, + { 352, 0, 1, 8, { 0 }}, + { 167, 0, 4, 5, { 0 }}, + { 353, 0, 3, 7, { 0 }}, + { 169, 0, 3, 9, { 0 }}, + { 170, 0, 3, 7, { 0 }}, + { 171, 0, 6, 6, { 0 }}, + { 172, 0, 7, 6, { 0 }}, + { 174, 0, 3, 9, { 0 }}, + { 175, 0, 0, 0, { 0 }}, + { 176, 0, 3, 4, { 0 }}, + { 177, 0, 6, 8, { 0 }}, + { 178, 0, 3, 4, { 0 }}, + { 179, 0, 3, 4, { 0 }}, + { 381, 0, 1, 8, { 0 }}, + { 181, 0, 6, 7, { 0 }}, + { 182, 0, 4, 6, { 0 }}, + { 183, 0, 7, 2, { 0 }}, + { 382, 0, 3, 7, { 0 }}, + { 185, 0, 3, 4, { 0 }}, + { 186, 0, 3, 5, { 0 }}, + { 187, 0, 6, 6, { 0 }}, + { 338, 0, 3, 14, { 0 }}, + { 339, 0, 6, 13, { 0 }}, + { 376, 0, 2, 8, { 0 }}, + { 191, 0, 3, 7, { 0 }}, + { 192, 0, 1, 8, { 0 }}, + { 193, 0, 1, 8, { 0 }}, + { 194, 0, 1, 8, { 0 }}, + { 195, 0, 1, 8, { 0 }}, + { 196, 0, 2, 8, { 0 }}, + { 197, 0, -1, 8, { 0 }}, + { 198, 0, 3, 14, { 0 }}, + { 199, 0, 3, 8, { 0 }}, + { 200, 0, 1, 7, { 0 }}, + { 201, 0, 1, 7, { 0 }}, + { 202, 0, 1, 7, { 0 }}, + { 203, 0, 2, 7, { 0 }}, + { 204, 0, 1, 6, { 0 }}, + { 205, 0, 1, 6, { 0 }}, + { 206, 0, 1, 6, { 0 }}, + { 207, 0, 2, 6, { 0 }}, + { 208, 0, 3, 9, { 0 }}, + { 209, 0, 1, 8, { 0 }}, + { 210, 0, 1, 8, { 0 }}, + { 211, 0, 1, 8, { 0 }}, + { 212, 0, 1, 8, { 0 }}, + { 213, 0, 1, 8, { 0 }}, + { 214, 0, 2, 8, { 0 }}, + { 215, 1, 6, 6, { 0 }}, + { 216, 0, 3, 8, { 0 }}, + { 217, 0, 1, 8, { 0 }}, + { 218, 0, 1, 8, { 0 }}, + { 219, 0, 1, 8, { 0 }}, + { 220, 0, 2, 8, { 0 }}, + { 221, 0, 1, 8, { 0 }}, + { 222, 0, 3, 7, { 0 }}, + { 223, 0, 3, 7, { 0 }}, + { 224, 0, 3, 7, { 0 }}, + { 225, 0, 3, 7, { 0 }}, + { 226, 0, 3, 7, { 0 }}, + { 227, 0, 3, 7, { 0 }}, + { 228, 0, 3, 7, { 0 }}, + { 229, 0, 2, 7, { 0 }}, + { 230, 0, 6, 13, { 0 }}, + { 231, 0, 6, 7, { 0 }}, + { 232, 0, 3, 7, { 0 }}, + { 233, 0, 3, 7, { 0 }}, + { 234, 0, 3, 7, { 0 }}, + { 235, 0, 3, 7, { 0 }}, + { 236, -1, 3, 2, { 0 }}, + { 237, 0, 3, 2, { 0 }}, + { 238, -1, 3, 2, { 0 }}, + { 239, -1, 3, 2, { 0 }}, + { 240, 0, 3, 8, { 0 }}, + { 241, 0, 3, 7, { 0 }}, + { 242, 0, 3, 7, { 0 }}, + { 243, 0, 3, 7, { 0 }}, + { 244, 0, 3, 7, { 0 }}, + { 245, 0, 3, 7, { 0 }}, + { 246, 0, 3, 7, { 0 }}, + { 247, 0, 4, 6, { 0 }}, + { 248, 0, 6, 7, { 0 }}, + { 249, 0, 3, 7, { 0 }}, + { 250, 0, 3, 7, { 0 }}, + { 251, 0, 3, 7, { 0 }}, + { 252, 0, 3, 7, { 0 }}, + { 253, 0, 3, 7, { 0 }}, + { 254, 0, 3, 7, { 0 }}, + { 255, 0, 3, 7, { 0 }}, +}; + +// Style loading function: Cyber +static void GuiLoadStyleCyber(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < CYBER_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(cyberStyleProps[i].controlId, cyberStyleProps[i].propertyId, cyberStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int cyberFontDataSize = 0; + unsigned char *data = DecompressData(cyberFontData, CYBER_STYLE_FONT_ATLAS_COMP_SIZE, &cyberFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 14; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, cyberFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, cyberFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/cyber/style_cyber.png b/include/styles/cyber/style_cyber.png new file mode 100644 index 0000000..d4fd661 Binary files /dev/null and b/include/styles/cyber/style_cyber.png differ diff --git a/include/styles/cyber/style_cyber.rgs b/include/styles/cyber/style_cyber.rgs new file mode 100644 index 0000000..142aeee Binary files /dev/null and b/include/styles/cyber/style_cyber.rgs differ diff --git a/include/styles/cyber/style_cyber.txt.rgs b/include/styles/cyber/style_cyber.txt.rgs new file mode 100644 index 0000000..770213a --- /dev/null +++ b/include/styles/cyber/style_cyber.txt.rgs @@ -0,0 +1,27 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 14 charset.txt Kyrou 7 Wide.ttf +p 00 00 0x2f7486ff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0x024658ff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0x51bfd3ff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0x82cde0ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0x3299b4ff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0xb6e1eaff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0xeb7630ff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0xffbc51ff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0xd86f36ff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0x134b5aff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0x02313dff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x17505fff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x0000000e TEXT_SIZE +p 00 17 0x00000000 TEXT_SPACING +p 00 18 0x81c0d0ff LINE_COLOR +p 00 19 0x00222bff BACKGROUND_COLOR +p 00 20 0x00000015 TEXT_LINE_SPACING diff --git a/include/styles/dark/PixelOperator.ttf b/include/styles/dark/PixelOperator.ttf new file mode 100644 index 0000000..34fe947 Binary files /dev/null and b/include/styles/dark/PixelOperator.ttf differ diff --git a/include/styles/dark/README.md b/include/styles/dark/README.md new file mode 100644 index 0000000..c3595fc --- /dev/null +++ b/include/styles/dark/README.md @@ -0,0 +1,27 @@ +## style: dark + +Classical dark style with an extra high-def colour touch! Elegant and professional, perfect for the expensive tools! + +![dark style table](style_dark.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_dark.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_dark.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_dark.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_dark.h` | Embeddable style as code file, self-contained, includes font data | +| `style_dark.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![dark style screen](screenshot.png) + +## about font + +"Pixel Operator" font by de Jayvee Enaguas. + +CC0 1.0 Universal, downloaded from dafont.com: [pixel-operator](https://www.dafont.com/pixel-operator.font) diff --git a/include/styles/dark/charset.txt b/include/styles/dark/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/dark/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/dark/font_LICENSE.txt b/include/styles/dark/font_LICENSE.txt new file mode 100644 index 0000000..0e259d4 --- /dev/null +++ b/include/styles/dark/font_LICENSE.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/include/styles/dark/screenshot.old.png b/include/styles/dark/screenshot.old.png new file mode 100644 index 0000000..712d30c Binary files /dev/null and b/include/styles/dark/screenshot.old.png differ diff --git a/include/styles/dark/screenshot.png b/include/styles/dark/screenshot.png new file mode 100644 index 0000000..cc9dbee Binary files /dev/null and b/include/styles/dark/screenshot.png differ diff --git a/include/styles/dark/style_dark.h b/include/styles/dark/style_dark.h new file mode 100644 index 0000000..0e8d44f --- /dev/null +++ b/include/styles/dark/style_dark.h @@ -0,0 +1,589 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleDark(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define DARK_STYLE_PROPS_COUNT 23 + +// Custom style name: Dark +static const GuiStyleProp darkStyleProps[DARK_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x878787ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x2c2c2cff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0xc3c3c3ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xe1e1e1ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0x848484ff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0x181818ff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0x000000ff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0xefefefff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0x202020ff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x6a6a6aff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x818181ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x606060ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x00000010 }, // DEFAULT_TEXT_SIZE + { 0, 17, (int)0x00000000 }, // DEFAULT_TEXT_SPACING + { 0, 18, (int)0x9d9d9dff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x3c3c3cff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000018 }, // DEFAULT_TEXT_LINE_SPACING + { 1, 5, (int)0xf7f7f7ff }, // LABEL_TEXT_COLOR_FOCUSED + { 1, 8, (int)0x898989ff }, // LABEL_TEXT_COLOR_PRESSED + { 4, 5, (int)0xb0b0b0ff }, // SLIDER_TEXT_COLOR_FOCUSED + { 5, 5, (int)0x848484ff }, // PROGRESSBAR_TEXT_COLOR_FOCUSED + { 9, 5, (int)0xf5f5f5ff }, // TEXTBOX_TEXT_COLOR_FOCUSED + { 10, 5, (int)0xf6f6f6ff }, // VALUEBOX_TEXT_COLOR_FOCUSED +}; + +// WARNING: This style uses a custom font: "PixelOperator.ttf" (size: 16, spacing: 0) + +#define DARK_STYLE_FONT_ATLAS_COMP_SIZE 2138 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char darkFontData[DARK_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0xdb, 0x92, 0xa5, 0xba, 0x0d, 0x00, 0x50, 0xff, 0xff, 0x4f, 0x2b, 0x0f, 0xa9, 0x54, 0x32, 0x95, 0xd3, 0x80, 0x64, + 0xd9, 0x98, 0x9e, 0x35, 0xeb, 0xad, 0x77, 0x4f, 0xc3, 0x36, 0x96, 0x6f, 0x80, 0x1c, 0x03, 0x00, 0x00, 0x00, 0xf8, 0xeb, + 0xc5, 0x3f, 0xfe, 0x24, 0x7e, 0xfc, 0xcd, 0x78, 0xfc, 0x77, 0xae, 0x7f, 0xfe, 0x9f, 0x4f, 0xe3, 0xe2, 0x58, 0xcf, 0xce, + 0x35, 0x7b, 0xdc, 0x48, 0x94, 0xc4, 0x3f, 0x9f, 0x5f, 0x3c, 0xfe, 0xbb, 0x3f, 0x7d, 0xbf, 0xfc, 0xef, 0x5f, 0xfd, 0xa5, + 0xeb, 0xb3, 0x8f, 0x54, 0xb9, 0xe7, 0xff, 0x4f, 0xee, 0x2a, 0xc6, 0x92, 0xb2, 0xbf, 0x3f, 0xbb, 0xfc, 0xb9, 0x77, 0xfe, + 0x9f, 0xb8, 0xf8, 0x3e, 0x95, 0xab, 0xf4, 0x24, 0xb6, 0x4e, 0x88, 0xff, 0x78, 0x14, 0x89, 0xd1, 0x5a, 0x73, 0xfe, 0x7b, + 0xd4, 0x68, 0x6c, 0xa9, 0xaa, 0x25, 0x79, 0x15, 0xe9, 0xf9, 0xf2, 0xb8, 0xaa, 0xfd, 0xf9, 0x16, 0x30, 0x5a, 0xbe, 0xcb, + 0x7c, 0x6d, 0x8c, 0xe9, 0xdf, 0x7e,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xc6, 0xff, 0x2b, 0xda, 0xd8, 0x37, 0x4b, 0x63, + 0xcd, 0xbd, 0xa3, 0xfe, 0x33, 0x8c, 0xa6, 0xd1, 0x1f, 0xef, 0xb4, 0x1a, 0xb0, 0x66, 0x9c, 0xf1, 0x7e, 0x4b, 0x08, 0x7c, + 0xed, 0x49, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x80, 0x93, 0xfc, 0xfb, 0x9f, 0x72, 0x00, 0xf1, 0x0f, 0xfc, 0x75, 0xf1, 0xff, 0x2f }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle darkFontRecs[189] = { + { 4, 4, 4 , 16 }, + { 16, 4, 1 , 9 }, + { 25, 4, 3 , 3 }, + { 36, 4, 6 , 9 }, + { 50, 4, 5 , 13 }, + { 63, 4, 7 , 9 }, + { 78, 4, 5 , 9 }, + { 91, 4, 1 , 3 }, + { 100, 4, 3 , 9 }, + { 111, 4, 3 , 9 }, + { 122, 4, 5 , 5 }, + { 135, 4, 5 , 5 }, + { 148, 4, 2 , 3 }, + { 158, 4, 4 , 1 }, + { 170, 4, 1 , 1 }, + { 179, 4, 3 , 9 }, + { 190, 4, 5 , 9 }, + { 203, 4, 3 , 9 }, + { 214, 4, 5 , 9 }, + { 227, 4, 5 , 9 }, + { 240, 4, 5 , 9 }, + { 253, 4, 5 , 9 }, + { 266, 4, 5 , 9 }, + { 279, 4, 5 , 9 }, + { 292, 4, 5 , 9 }, + { 305, 4, 5 , 9 }, + { 318, 4, 1 , 7 }, + { 327, 4, 2 , 9 }, + { 337, 4, 3 , 5 }, + { 348, 4, 4 , 3 }, + { 360, 4, 3 , 5 }, + { 371, 4, 5 , 9 }, + { 384, 4, 7 , 9 }, + { 399, 4, 5 , 9 }, + { 412, 4, 5 , 9 }, + { 425, 4, 5 , 9 }, + { 438, 4, 5 , 9 }, + { 451, 4, 5 , 9 }, + { 464, 4, 5 , 9 }, + { 477, 4, 5 , 9 }, + { 490, 4, 5 , 9 }, + { 4, 28, 1 , 9 }, + { 13, 28, 5 , 9 }, + { 26, 28, 5 , 9 }, + { 39, 28, 5 , 9 }, + { 52, 28, 7 , 9 }, + { 67, 28, 5 , 9 }, + { 80, 28, 5 , 9 }, + { 93, 28, 5 , 9 }, + { 106, 28, 5 , 9 }, + { 119, 28, 5 , 9 }, + { 132, 28, 5 , 9 }, + { 145, 28, 5 , 9 }, + { 158, 28, 5 , 9 }, + { 171, 28, 5 , 9 }, + { 184, 28, 7 , 9 }, + { 199, 28, 5 , 9 }, + { 212, 28, 5 , 9 }, + { 225, 28, 5 , 9 }, + { 238, 28, 3 , 9 }, + { 249, 28, 3 , 9 }, + { 260, 28, 3 , 9 }, + { 271, 28, 5 , 3 }, + { 284, 28, 5 , 1 }, + { 297, 28, 2 , 2 }, + { 307, 28, 5 , 7 }, + { 320, 28, 5 , 9 }, + { 333, 28, 5 , 7 }, + { 346, 28, 5 , 9 }, + { 359, 28, 5 , 7 }, + { 372, 28, 4 , 9 }, + { 384, 28, 5 , 9 }, + { 397, 28, 5 , 9 }, + { 410, 28, 1 , 9 }, + { 419, 28, 5 , 11 }, + { 432, 28, 5 , 9 }, + { 445, 28, 2 , 9 }, + { 455, 28, 7 , 7 }, + { 470, 28, 5 , 7 }, + { 483, 28, 5 , 7 }, + { 496, 28, 5 , 9 }, + { 4, 52, 5 , 9 }, + { 17, 52, 5 , 7 }, + { 30, 52, 5 , 7 }, + { 43, 52, 4 , 8 }, + { 55, 52, 5 , 7 }, + { 68, 52, 5 , 7 }, + { 81, 52, 7 , 7 }, + { 96, 52, 5 , 7 }, + { 109, 52, 5 , 9 }, + { 122, 52, 5 , 7 }, + { 135, 52, 4 , 9 }, + { 147, 52, 1 , 9 }, + { 156, 52, 4 , 9 }, + { 168, 52, 6 , 2 }, + { 182, 52, 1 , 9 }, + { 191, 52, 5 , 11 }, + { 204, 52, 6 , 9 }, + { 218, 52, 6 , 9 }, + { 232, 52, 5 , 9 }, + { 245, 52, 5 , 12 }, + { 258, 52, 0 , 0 }, + { 266, 52, 5 , 10 }, + { 279, 52, 7 , 9 }, + { 294, 52, 0 , 0 }, + { 302, 52, 6 , 5 }, + { 316, 52, 5 , 3 }, + { 329, 52, 7 , 9 }, + { 344, 52, 0 , 0 }, + { 352, 52, 4 , 4 }, + { 364, 52, 5 , 7 }, + { 377, 52, 0 , 0 }, + { 385, 52, 0 , 0 }, + { 393, 52, 5 , 12 }, + { 406, 52, 5 , 9 }, + { 419, 52, 7 , 9 }, + { 434, 52, 1 , 1 }, + { 443, 52, 5 , 10 }, + { 456, 52, 0 , 0 }, + { 464, 52, 0 , 0 }, + { 472, 52, 6 , 5 }, + { 486, 52, 9 , 9 }, + { 4, 76, 9 , 7 }, + { 21, 76, 5 , 11 }, + { 34, 76, 5 , 9 }, + { 47, 76, 5 , 12 }, + { 60, 76, 5 , 12 }, + { 73, 76, 5 , 12 }, + { 86, 76, 6 , 12 }, + { 100, 76, 5 , 11 }, + { 113, 76, 5 , 13 }, + { 126, 76, 9 , 9 }, + { 143, 76, 5 , 12 }, + { 156, 76, 5 , 12 }, + { 169, 76, 5 , 12 }, + { 182, 76, 5 , 12 }, + { 195, 76, 5 , 11 }, + { 208, 76, 2 , 12 }, + { 218, 76, 2 , 12 }, + { 228, 76, 3 , 12 }, + { 239, 76, 3 , 11 }, + { 250, 76, 6 , 9 }, + { 264, 76, 6 , 12 }, + { 278, 76, 5 , 12 }, + { 291, 76, 5 , 12 }, + { 304, 76, 5 , 12 }, + { 317, 76, 6 , 12 }, + { 331, 76, 5 , 11 }, + { 344, 76, 5 , 5 }, + { 357, 76, 7 , 9 }, + { 372, 76, 5 , 12 }, + { 385, 76, 5 , 12 }, + { 398, 76, 5 , 12 }, + { 411, 76, 5 , 11 }, + { 424, 76, 5 , 12 }, + { 437, 76, 5 , 9 }, + { 450, 76, 5 , 9 }, + { 463, 76, 5 , 10 }, + { 476, 76, 5 , 10 }, + { 489, 76, 5 , 10 }, + { 4, 100, 6 , 10 }, + { 18, 100, 5 , 9 }, + { 31, 100, 5 , 11 }, + { 44, 100, 9 , 7 }, + { 61, 100, 5 , 10 }, + { 74, 100, 5 , 10 }, + { 87, 100, 5 , 10 }, + { 100, 100, 5 , 10 }, + { 113, 100, 5 , 9 }, + { 126, 100, 2 , 10 }, + { 136, 100, 2 , 10 }, + { 146, 100, 3 , 10 }, + { 157, 100, 3 , 9 }, + { 168, 100, 6 , 9 }, + { 182, 100, 6 , 10 }, + { 196, 100, 5 , 10 }, + { 209, 100, 5 , 10 }, + { 222, 100, 5 , 10 }, + { 235, 100, 6 , 10 }, + { 249, 100, 5 , 9 }, + { 262, 100, 5 , 5 }, + { 275, 100, 7 , 7 }, + { 290, 100, 5 , 10 }, + { 303, 100, 5 , 10 }, + { 316, 100, 5 , 10 }, + { 329, 100, 5 , 9 }, + { 342, 100, 5 , 12 }, + { 355, 100, 5 , 11 }, + { 368, 100, 5 , 11 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo darkFontGlyphs[189] = { + { 32, 0, 0, 4, { 0 }}, + { 33, 2, 4, 5, { 0 }}, + { 34, 2, 4, 7, { 0 }}, + { 35, 1, 4, 8, { 0 }}, + { 36, 1, 2, 7, { 0 }}, + { 37, 1, 4, 9, { 0 }}, + { 38, 1, 4, 7, { 0 }}, + { 39, 2, 4, 5, { 0 }}, + { 40, 3, 4, 7, { 0 }}, + { 41, 1, 4, 7, { 0 }}, + { 42, 1, 4, 7, { 0 }}, + { 43, 1, 6, 7, { 0 }}, + { 44, 1, 12, 5, { 0 }}, + { 45, 1, 8, 6, { 0 }}, + { 46, 2, 12, 5, { 0 }}, + { 47, 1, 4, 5, { 0 }}, + { 48, 1, 4, 7, { 0 }}, + { 49, 2, 4, 7, { 0 }}, + { 50, 1, 4, 7, { 0 }}, + { 51, 1, 4, 7, { 0 }}, + { 52, 1, 4, 7, { 0 }}, + { 53, 1, 4, 7, { 0 }}, + { 54, 1, 4, 7, { 0 }}, + { 55, 1, 4, 7, { 0 }}, + { 56, 1, 4, 7, { 0 }}, + { 57, 1, 4, 7, { 0 }}, + { 58, 2, 6, 5, { 0 }}, + { 59, 1, 6, 5, { 0 }}, + { 60, 1, 6, 5, { 0 }}, + { 61, 1, 7, 6, { 0 }}, + { 62, 1, 6, 5, { 0 }}, + { 63, 1, 4, 7, { 0 }}, + { 64, 1, 4, 9, { 0 }}, + { 65, 1, 4, 7, { 0 }}, + { 66, 1, 4, 7, { 0 }}, + { 67, 1, 4, 7, { 0 }}, + { 68, 1, 4, 7, { 0 }}, + { 69, 1, 4, 7, { 0 }}, + { 70, 1, 4, 7, { 0 }}, + { 71, 1, 4, 7, { 0 }}, + { 72, 1, 4, 7, { 0 }}, + { 73, 2, 4, 5, { 0 }}, + { 74, 1, 4, 7, { 0 }}, + { 75, 1, 4, 7, { 0 }}, + { 76, 1, 4, 7, { 0 }}, + { 77, 1, 4, 9, { 0 }}, + { 78, 1, 4, 7, { 0 }}, + { 79, 1, 4, 7, { 0 }}, + { 80, 1, 4, 7, { 0 }}, + { 81, 1, 4, 7, { 0 }}, + { 82, 1, 4, 7, { 0 }}, + { 83, 1, 4, 7, { 0 }}, + { 84, 1, 4, 7, { 0 }}, + { 85, 1, 4, 7, { 0 }}, + { 86, 1, 4, 7, { 0 }}, + { 87, 1, 4, 9, { 0 }}, + { 88, 1, 4, 7, { 0 }}, + { 89, 1, 4, 7, { 0 }}, + { 90, 1, 4, 7, { 0 }}, + { 91, 3, 4, 7, { 0 }}, + { 92, 1, 4, 5, { 0 }}, + { 93, 1, 4, 7, { 0 }}, + { 94, 1, 4, 7, { 0 }}, + { 95, 0, 14, 5, { 0 }}, + { 96, 1, 4, 5, { 0 }}, + { 97, 1, 6, 7, { 0 }}, + { 98, 1, 4, 7, { 0 }}, + { 99, 1, 6, 7, { 0 }}, + { 100, 1, 4, 7, { 0 }}, + { 101, 1, 6, 7, { 0 }}, + { 102, 1, 4, 6, { 0 }}, + { 103, 1, 6, 7, { 0 }}, + { 104, 1, 4, 7, { 0 }}, + { 105, 2, 4, 5, { 0 }}, + { 106, 1, 4, 7, { 0 }}, + { 107, 1, 4, 7, { 0 }}, + { 108, 2, 4, 5, { 0 }}, + { 109, 1, 6, 9, { 0 }}, + { 110, 1, 6, 7, { 0 }}, + { 111, 1, 6, 7, { 0 }}, + { 112, 1, 6, 7, { 0 }}, + { 113, 1, 6, 7, { 0 }}, + { 114, 1, 6, 7, { 0 }}, + { 115, 1, 6, 7, { 0 }}, + { 116, 1, 5, 6, { 0 }}, + { 117, 1, 6, 7, { 0 }}, + { 118, 1, 6, 7, { 0 }}, + { 119, 1, 6, 9, { 0 }}, + { 120, 1, 6, 7, { 0 }}, + { 121, 1, 6, 7, { 0 }}, + { 122, 1, 6, 7, { 0 }}, + { 123, 2, 4, 7, { 0 }}, + { 124, 2, 4, 5, { 0 }}, + { 125, 1, 4, 7, { 0 }}, + { 126, 1, 4, 8, { 0 }}, + { 161, 2, 6, 5, { 0 }}, + { 162, 1, 4, 7, { 0 }}, + { 163, 1, 4, 8, { 0 }}, + { 8364, 1, 4, 8, { 0 }}, + { 165, 1, 4, 7, { 0 }}, + { 352, 1, 1, 7, { 0 }}, + { 167, 0, 0, 0, { 0 }}, + { 353, 1, 3, 7, { 0 }}, + { 169, 1, 4, 9, { 0 }}, + { 170, 0, 0, 0, { 0 }}, + { 171, 1, 6, 8, { 0 }}, + { 172, 1, 8, 7, { 0 }}, + { 174, 1, 4, 9, { 0 }}, + { 175, 0, 0, 0, { 0 }}, + { 176, 1, 4, 6, { 0 }}, + { 177, 1, 6, 7, { 0 }}, + { 178, 0, 0, 0, { 0 }}, + { 179, 0, 0, 0, { 0 }}, + { 381, 1, 1, 7, { 0 }}, + { 181, 1, 6, 7, { 0 }}, + { 182, 1, 4, 9, { 0 }}, + { 183, 2, 8, 5, { 0 }}, + { 382, 1, 3, 7, { 0 }}, + { 185, 0, 0, 0, { 0 }}, + { 186, 0, 0, 0, { 0 }}, + { 187, 1, 6, 8, { 0 }}, + { 338, 1, 4, 11, { 0 }}, + { 339, 1, 6, 11, { 0 }}, + { 376, 1, 2, 7, { 0 }}, + { 191, 1, 6, 7, { 0 }}, + { 192, 1, 1, 7, { 0 }}, + { 193, 1, 1, 7, { 0 }}, + { 194, 1, 1, 7, { 0 }}, + { 195, 1, 1, 7, { 0 }}, + { 196, 1, 2, 7, { 0 }}, + { 197, 1, 0, 7, { 0 }}, + { 198, 1, 4, 11, { 0 }}, + { 199, 1, 4, 7, { 0 }}, + { 200, 1, 1, 7, { 0 }}, + { 201, 1, 1, 7, { 0 }}, + { 202, 1, 1, 7, { 0 }}, + { 203, 1, 2, 7, { 0 }}, + { 204, 1, 1, 5, { 0 }}, + { 205, 2, 1, 5, { 0 }}, + { 206, 1, 1, 5, { 0 }}, + { 207, 1, 2, 5, { 0 }}, + { 208, 0, 4, 7, { 0 }}, + { 209, 1, 1, 7, { 0 }}, + { 210, 1, 1, 7, { 0 }}, + { 211, 1, 1, 7, { 0 }}, + { 212, 1, 1, 7, { 0 }}, + { 213, 1, 1, 7, { 0 }}, + { 214, 1, 2, 7, { 0 }}, + { 215, 1, 6, 7, { 0 }}, + { 216, 0, 4, 7, { 0 }}, + { 217, 1, 1, 7, { 0 }}, + { 218, 1, 1, 7, { 0 }}, + { 219, 1, 1, 7, { 0 }}, + { 220, 1, 2, 7, { 0 }}, + { 221, 1, 1, 7, { 0 }}, + { 222, 1, 4, 7, { 0 }}, + { 223, 1, 4, 7, { 0 }}, + { 224, 1, 3, 7, { 0 }}, + { 225, 1, 3, 7, { 0 }}, + { 226, 1, 3, 7, { 0 }}, + { 227, 1, 3, 7, { 0 }}, + { 228, 1, 4, 7, { 0 }}, + { 229, 1, 2, 7, { 0 }}, + { 230, 1, 6, 11, { 0 }}, + { 231, 1, 6, 7, { 0 }}, + { 232, 1, 3, 7, { 0 }}, + { 233, 1, 3, 7, { 0 }}, + { 234, 1, 3, 7, { 0 }}, + { 235, 1, 4, 7, { 0 }}, + { 236, 1, 3, 5, { 0 }}, + { 237, 2, 3, 5, { 0 }}, + { 238, 1, 3, 5, { 0 }}, + { 239, 1, 4, 5, { 0 }}, + { 240, 1, 4, 7, { 0 }}, + { 241, 1, 3, 7, { 0 }}, + { 242, 1, 3, 7, { 0 }}, + { 243, 1, 3, 7, { 0 }}, + { 244, 1, 3, 7, { 0 }}, + { 245, 1, 3, 7, { 0 }}, + { 246, 1, 4, 7, { 0 }}, + { 247, 1, 6, 7, { 0 }}, + { 248, 0, 6, 7, { 0 }}, + { 249, 1, 3, 7, { 0 }}, + { 250, 1, 3, 7, { 0 }}, + { 251, 1, 3, 7, { 0 }}, + { 252, 1, 4, 7, { 0 }}, + { 253, 1, 3, 7, { 0 }}, + { 254, 1, 4, 7, { 0 }}, + { 255, 1, 4, 7, { 0 }}, +}; + +// Style loading function: Dark +static void GuiLoadStyleDark(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < DARK_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(darkStyleProps[i].controlId, darkStyleProps[i].propertyId, darkStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int darkFontDataSize = 0; + unsigned char *data = DecompressData(darkFontData, DARK_STYLE_FONT_ATLAS_COMP_SIZE, &darkFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 16; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, darkFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, darkFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/dark/style_dark.png b/include/styles/dark/style_dark.png new file mode 100644 index 0000000..09d2439 Binary files /dev/null and b/include/styles/dark/style_dark.png differ diff --git a/include/styles/dark/style_dark.rgs b/include/styles/dark/style_dark.rgs new file mode 100644 index 0000000..1e965d9 Binary files /dev/null and b/include/styles/dark/style_dark.rgs differ diff --git a/include/styles/dark/style_dark.txt.rgs b/include/styles/dark/style_dark.txt.rgs new file mode 100644 index 0000000..586cb0f --- /dev/null +++ b/include/styles/dark/style_dark.txt.rgs @@ -0,0 +1,33 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 16 charset.txt PixelOperator.ttf +p 00 00 0x878787ff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0x2c2c2cff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0xc3c3c3ff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0xe1e1e1ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0x848484ff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0x181818ff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0x000000ff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0xefefefff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0x202020ff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0x6a6a6aff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0x818181ff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x606060ff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x00000010 TEXT_SIZE +p 00 17 0x00000000 TEXT_SPACING +p 00 18 0x9d9d9dff LINE_COLOR +p 00 19 0x3c3c3cff BACKGROUND_COLOR +p 00 20 0x00000018 TEXT_LINE_SPACING +p 01 05 0xf7f7f7ff LABEL_TEXT_COLOR_FOCUSED +p 01 08 0x898989ff LABEL_TEXT_COLOR_PRESSED +p 04 05 0xb0b0b0ff SLIDER_TEXT_COLOR_FOCUSED +p 05 05 0x848484ff PROGRESSBAR_TEXT_COLOR_FOCUSED +p 09 05 0xf5f5f5ff TEXTBOX_TEXT_COLOR_FOCUSED +p 10 05 0xf6f6f6ff VALUEBOX_TEXT_COLOR_FOCUSED diff --git a/include/styles/default/README.md b/include/styles/default/README.md new file mode 100644 index 0000000..fa5db27 --- /dev/null +++ b/include/styles/default/README.md @@ -0,0 +1,22 @@ +## style: default + +raylib style, simple and easy-to-use. Light colors, wide borders, a sophisticated touch. + +![default style table](style_default.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_default.txt.rgs` | Text style file, no font data, uses raylib default font | +| `style_default.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![default style screen](screenshot.png) + +## about font + +raylib font by Ramon Santamaria ([@raysan5](https://twitter.com/raysan5)). diff --git a/include/styles/default/charset.txt b/include/styles/default/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/default/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/default/screenshot.old.png b/include/styles/default/screenshot.old.png new file mode 100644 index 0000000..d26d948 Binary files /dev/null and b/include/styles/default/screenshot.old.png differ diff --git a/include/styles/default/screenshot.png b/include/styles/default/screenshot.png new file mode 100644 index 0000000..0c35785 Binary files /dev/null and b/include/styles/default/screenshot.png differ diff --git a/include/styles/default/style_default.png b/include/styles/default/style_default.png new file mode 100644 index 0000000..c62e4c3 Binary files /dev/null and b/include/styles/default/style_default.png differ diff --git a/include/styles/default/style_default.txt.rgs b/include/styles/default/style_default.txt.rgs new file mode 100644 index 0000000..0ee964f --- /dev/null +++ b/include/styles/default/style_default.txt.rgs @@ -0,0 +1,10 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 10 charset.txt PixelOperator.ttf diff --git a/include/styles/enefete/GenericMobileSystemNuevo.ttf b/include/styles/enefete/GenericMobileSystemNuevo.ttf new file mode 100644 index 0000000..777a528 Binary files /dev/null and b/include/styles/enefete/GenericMobileSystemNuevo.ttf differ diff --git a/include/styles/enefete/README.md b/include/styles/enefete/README.md new file mode 100644 index 0000000..897579d --- /dev/null +++ b/include/styles/enefete/README.md @@ -0,0 +1,27 @@ +## style: enefete + +Inspired by money and pain, a desperate jump into the trendings train, a train to nowhere. Don't stare at it for too long! + +![enefete style table](style_enefete.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_enefete.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_enefete.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_enefete.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_enefete.h` | Embeddable style as code file, self-contained, includes font data | +| `style_enefete.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![enefete style screen](screenshot.png) + +## about font + +"Generic Mobile System" font by de Jayvee Enaguas. + +CC0 1.0 Universal, downloaded from dafont.com: [generic-mobile-system](https://www.dafont.com/generic-mobile-system.font) diff --git a/include/styles/enefete/charset.txt b/include/styles/enefete/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/enefete/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/enefete/font_LICENSE.txt b/include/styles/enefete/font_LICENSE.txt new file mode 100644 index 0000000..0e259d4 --- /dev/null +++ b/include/styles/enefete/font_LICENSE.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/include/styles/enefete/screenshot.old.png b/include/styles/enefete/screenshot.old.png new file mode 100644 index 0000000..06f8143 Binary files /dev/null and b/include/styles/enefete/screenshot.old.png differ diff --git a/include/styles/enefete/screenshot.png b/include/styles/enefete/screenshot.png new file mode 100644 index 0000000..46feea1 Binary files /dev/null and b/include/styles/enefete/screenshot.png differ diff --git a/include/styles/enefete/style_enefete.h b/include/styles/enefete/style_enefete.h new file mode 100644 index 0000000..0d5b3d7 --- /dev/null +++ b/include/styles/enefete/style_enefete.h @@ -0,0 +1,598 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleEnefete(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define ENEFETE_STYLE_PROPS_COUNT 17 + +// Custom style name: Enefete +static const GuiStyleProp enefeteStyleProps[ENEFETE_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x1980d5ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x4df3ebff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0x103e60ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xe7e2f7ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0x23d4ddff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0xf1f1f1ff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0x6413a6ff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0xea66d9ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0x9f00bbff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x4b909eff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x73c7d0ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x448894ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x00000010 }, // DEFAULT_TEXT_SIZE + { 0, 17, (int)0x00000000 }, // DEFAULT_TEXT_SPACING + { 0, 18, (int)0x1d3f6cff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x29c9e5ff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000018 }, // DEFAULT_TEXT_LINE_SPACING +}; + +// WARNING: This style uses a custom font: "GMSN.ttf" (size: 16, spacing: 0) + +#define ENEFETE_STYLE_FONT_ATLAS_COMP_SIZE 2434 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char enefeteFontData[ENEFETE_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0x5b, 0x6e, 0x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fa, 0xb4, 0xf7, 0x29, 0xcf, 0x7a, 0xce, 0x78, 0xfe, 0xb7, 0xe7, 0x93, 0x77, 0x56, 0x43, 0x7f, 0xff, 0xf3, + 0xde, 0xa7, 0xd4, 0x83, 0xe7, 0xed, 0xfb, 0xa1, 0x36, 0x00, 0xf9, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x76, 0xbe, 0xa9, 0x7f, 0x66, 0xc5, 0xf7, 0xc8, 0xa8, 0xcf, 0xb9, 0xcf, 0x04, 0x62, 0x23, 0x75, 0xce, + 0xac, 0xf8, 0x9e, 0x1f, 0x9d, 0x6f, 0x5b, 0xc2, 0xfb, 0xc6, 0x8a, 0xcb, 0x36, 0xec, 0x49, 0x55, 0x7f, 0x48, 0x15, 0xa4, + 0x77, 0xcc, 0xcd, 0x01, 0xf2, 0xff, 0x94, 0x0a, 0x69, 0x20, 0xff, 0xf2, 0x0f, 0xf2, 0x2f, 0xff, 0x20, 0xff, 0xf2, 0x0f, + 0x6f, 0xbf, 0xff, 0x7f, 0xa7, 0x99, 0x6b, 0xf6, 0xd5, 0x29, 0x06, 0xcf, 0xfe, 0x63, 0x47, 0x87, 0xea, 0x65, 0x6d, 0x78, + 0xdc, 0xf0, 0x8c, 0x10, 0xce, 0xca, 0xff, 0x35, 0xcf, 0xf8, 0x57, 0xf3, 0xaf, 0xff, 0x0f, 0x6f, 0xba, 0x1a, 0x89, 0xbc, + 0xff, 0x27, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x70, 0x95, 0x7f, 0xff, 0xd3, 0x0e, 0x20, 0xff, 0xc0, 0xc7, 0xe5, 0xff, 0x6f }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle enefeteFontRecs[189] = { + { 4, 4, 4 , 16 }, + { 16, 4, 2 , 10 }, + { 26, 4, 5 , 3 }, + { 39, 4, 7 , 10 }, + { 54, 4, 7 , 13 }, + { 69, 4, 7 , 10 }, + { 84, 4, 7 , 10 }, + { 99, 4, 2 , 3 }, + { 109, 4, 3 , 12 }, + { 120, 4, 3 , 12 }, + { 131, 4, 5 , 6 }, + { 144, 4, 6 , 5 }, + { 158, 4, 2 , 4 }, + { 168, 4, 5 , 1 }, + { 181, 4, 2 , 2 }, + { 191, 4, 4 , 10 }, + { 203, 4, 6 , 10 }, + { 217, 4, 4 , 10 }, + { 229, 4, 6 , 10 }, + { 243, 4, 6 , 10 }, + { 257, 4, 6 , 10 }, + { 271, 4, 6 , 10 }, + { 285, 4, 6 , 10 }, + { 299, 4, 6 , 10 }, + { 313, 4, 6 , 10 }, + { 327, 4, 6 , 10 }, + { 341, 4, 2 , 6 }, + { 351, 4, 2 , 8 }, + { 361, 4, 7 , 7 }, + { 376, 4, 5 , 3 }, + { 389, 4, 7 , 7 }, + { 404, 4, 6 , 10 }, + { 418, 4, 7 , 12 }, + { 433, 4, 7 , 10 }, + { 448, 4, 7 , 10 }, + { 463, 4, 7 , 10 }, + { 478, 4, 7 , 10 }, + { 493, 4, 7 , 10 }, + { 4, 28, 7 , 10 }, + { 19, 28, 7 , 10 }, + { 34, 28, 7 , 10 }, + { 49, 28, 2 , 10 }, + { 59, 28, 5 , 10 }, + { 72, 28, 7 , 10 }, + { 87, 28, 6 , 10 }, + { 101, 28, 9 , 10 }, + { 118, 28, 7 , 10 }, + { 133, 28, 7 , 10 }, + { 148, 28, 7 , 10 }, + { 163, 28, 7 , 12 }, + { 178, 28, 7 , 10 }, + { 193, 28, 7 , 10 }, + { 208, 28, 6 , 10 }, + { 222, 28, 7 , 10 }, + { 237, 28, 7 , 10 }, + { 252, 28, 8 , 10 }, + { 268, 28, 7 , 10 }, + { 283, 28, 6 , 10 }, + { 297, 28, 7 , 10 }, + { 312, 28, 4 , 12 }, + { 324, 28, 4 , 10 }, + { 336, 28, 4 , 12 }, + { 348, 28, 6 , 3 }, + { 362, 28, 7 , 1 }, + { 377, 28, 4 , 3 }, + { 389, 28, 6 , 7 }, + { 403, 28, 6 , 10 }, + { 417, 28, 6 , 7 }, + { 431, 28, 6 , 10 }, + { 445, 28, 6 , 7 }, + { 459, 28, 4 , 10 }, + { 471, 28, 6 , 9 }, + { 485, 28, 6 , 10 }, + { 499, 28, 2 , 10 }, + { 4, 52, 5 , 12 }, + { 17, 52, 6 , 10 }, + { 31, 52, 3 , 10 }, + { 42, 52, 8 , 7 }, + { 58, 52, 6 , 7 }, + { 72, 52, 6 , 7 }, + { 86, 52, 6 , 9 }, + { 100, 52, 6 , 9 }, + { 114, 52, 5 , 7 }, + { 127, 52, 6 , 7 }, + { 141, 52, 4 , 10 }, + { 153, 52, 6 , 7 }, + { 167, 52, 6 , 7 }, + { 181, 52, 8 , 7 }, + { 197, 52, 6 , 7 }, + { 211, 52, 6 , 9 }, + { 225, 52, 6 , 7 }, + { 239, 52, 5 , 12 }, + { 252, 52, 2 , 12 }, + { 262, 52, 5 , 12 }, + { 275, 52, 7 , 3 }, + { 290, 52, 2 , 9 }, + { 300, 52, 6 , 11 }, + { 314, 52, 7 , 10 }, + { 329, 52, 7 , 9 }, + { 344, 52, 6 , 10 }, + { 358, 52, 7 , 11 }, + { 373, 52, 6 , 12 }, + { 387, 52, 6 , 10 }, + { 401, 52, 7 , 10 }, + { 416, 52, 5 , 5 }, + { 429, 52, 7 , 6 }, + { 444, 52, 6 , 3 }, + { 458, 52, 7 , 10 }, + { 473, 52, 0 , 0 }, + { 481, 52, 4 , 4 }, + { 493, 52, 6 , 7 }, + { 4, 76, 4 , 5 }, + { 16, 76, 4 , 5 }, + { 28, 76, 7 , 11 }, + { 43, 76, 6 , 9 }, + { 57, 76, 7 , 12 }, + { 72, 76, 2 , 2 }, + { 82, 76, 6 , 10 }, + { 96, 76, 3 , 5 }, + { 107, 76, 4 , 5 }, + { 119, 76, 7 , 6 }, + { 134, 76, 9 , 10 }, + { 151, 76, 8 , 7 }, + { 167, 76, 6 , 11 }, + { 181, 76, 6 , 11 }, + { 195, 76, 7 , 11 }, + { 210, 76, 7 , 11 }, + { 225, 76, 7 , 11 }, + { 240, 76, 7 , 11 }, + { 255, 76, 7 , 11 }, + { 270, 76, 7 , 11 }, + { 285, 76, 9 , 10 }, + { 302, 76, 7 , 12 }, + { 317, 76, 7 , 11 }, + { 332, 76, 7 , 11 }, + { 347, 76, 7 , 11 }, + { 362, 76, 7 , 11 }, + { 377, 76, 3 , 11 }, + { 388, 76, 3 , 11 }, + { 399, 76, 5 , 11 }, + { 412, 76, 5 , 11 }, + { 425, 76, 8 , 10 }, + { 441, 76, 7 , 11 }, + { 456, 76, 7 , 11 }, + { 471, 76, 7 , 11 }, + { 486, 76, 7 , 11 }, + { 4, 100, 7 , 11 }, + { 19, 100, 7 , 11 }, + { 34, 100, 7 , 7 }, + { 49, 100, 7 , 13 }, + { 64, 100, 7 , 11 }, + { 79, 100, 7 , 11 }, + { 94, 100, 7 , 11 }, + { 109, 100, 7 , 11 }, + { 124, 100, 6 , 11 }, + { 138, 100, 7 , 10 }, + { 153, 100, 7 , 10 }, + { 168, 100, 6 , 10 }, + { 182, 100, 6 , 10 }, + { 196, 100, 6 , 10 }, + { 210, 100, 6 , 10 }, + { 224, 100, 6 , 10 }, + { 238, 100, 6 , 11 }, + { 252, 100, 8 , 7 }, + { 268, 100, 6 , 9 }, + { 282, 100, 6 , 10 }, + { 296, 100, 6 , 10 }, + { 310, 100, 6 , 10 }, + { 324, 100, 6 , 10 }, + { 338, 100, 3 , 10 }, + { 349, 100, 3 , 10 }, + { 360, 100, 5 , 10 }, + { 373, 100, 5 , 10 }, + { 386, 100, 6 , 10 }, + { 400, 100, 6 , 10 }, + { 414, 100, 6 , 10 }, + { 428, 100, 6 , 10 }, + { 442, 100, 6 , 10 }, + { 456, 100, 6 , 10 }, + { 470, 100, 6 , 10 }, + { 484, 100, 6 , 7 }, + { 4, 124, 7 , 11 }, + { 19, 124, 6 , 10 }, + { 33, 124, 6 , 10 }, + { 47, 124, 6 , 10 }, + { 61, 124, 6 , 10 }, + { 75, 124, 6 , 12 }, + { 89, 124, 6 , 12 }, + { 103, 124, 6 , 12 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo enefeteFontGlyphs[189] = { + { 32, 0, 0, 4, { 0 }}, + { 33, 0, 2, 3, { 0 }}, + { 34, 0, 2, 6, { 0 }}, + { 35, 0, 2, 8, { 0 }}, + { 36, 0, 1, 8, { 0 }}, + { 37, 0, 2, 8, { 0 }}, + { 38, 0, 2, 8, { 0 }}, + { 39, 0, 2, 3, { 0 }}, + { 40, 0, 2, 4, { 0 }}, + { 41, 0, 2, 4, { 0 }}, + { 42, 0, 4, 6, { 0 }}, + { 43, 0, 6, 7, { 0 }}, + { 44, 0, 10, 3, { 0 }}, + { 45, 0, 8, 6, { 0 }}, + { 46, 0, 10, 3, { 0 }}, + { 47, 0, 2, 5, { 0 }}, + { 48, 0, 2, 7, { 0 }}, + { 49, 0, 2, 7, { 0 }}, + { 50, 0, 2, 7, { 0 }}, + { 51, 0, 2, 7, { 0 }}, + { 52, 0, 2, 7, { 0 }}, + { 53, 0, 2, 7, { 0 }}, + { 54, 0, 2, 7, { 0 }}, + { 55, 0, 2, 7, { 0 }}, + { 56, 0, 2, 7, { 0 }}, + { 57, 0, 2, 7, { 0 }}, + { 58, 0, 4, 3, { 0 }}, + { 59, 0, 4, 3, { 0 }}, + { 60, 0, 4, 8, { 0 }}, + { 61, 0, 6, 6, { 0 }}, + { 62, 0, 4, 8, { 0 }}, + { 63, 0, 2, 7, { 0 }}, + { 64, 0, 2, 8, { 0 }}, + { 65, 0, 2, 8, { 0 }}, + { 66, 0, 2, 8, { 0 }}, + { 67, 0, 2, 8, { 0 }}, + { 68, 0, 2, 8, { 0 }}, + { 69, 0, 2, 8, { 0 }}, + { 70, 0, 2, 8, { 0 }}, + { 71, 0, 2, 8, { 0 }}, + { 72, 0, 2, 8, { 0 }}, + { 73, 0, 2, 3, { 0 }}, + { 74, 0, 2, 6, { 0 }}, + { 75, 0, 2, 8, { 0 }}, + { 76, 0, 2, 7, { 0 }}, + { 77, 0, 2, 10, { 0 }}, + { 78, 0, 2, 8, { 0 }}, + { 79, 0, 2, 8, { 0 }}, + { 80, 0, 2, 8, { 0 }}, + { 81, 0, 2, 8, { 0 }}, + { 82, 0, 2, 8, { 0 }}, + { 83, 0, 2, 8, { 0 }}, + { 84, 0, 2, 7, { 0 }}, + { 85, 0, 2, 8, { 0 }}, + { 86, 0, 2, 8, { 0 }}, + { 87, 0, 2, 9, { 0 }}, + { 88, 0, 2, 8, { 0 }}, + { 89, 0, 2, 7, { 0 }}, + { 90, 0, 2, 8, { 0 }}, + { 91, 0, 2, 5, { 0 }}, + { 92, 0, 2, 5, { 0 }}, + { 93, 0, 2, 5, { 0 }}, + { 94, 0, 2, 7, { 0 }}, + { 95, 0, 14, 8, { 0 }}, + { 96, 0, 2, 5, { 0 }}, + { 97, 0, 5, 7, { 0 }}, + { 98, 0, 2, 7, { 0 }}, + { 99, 0, 5, 7, { 0 }}, + { 100, 0, 2, 7, { 0 }}, + { 101, 0, 5, 7, { 0 }}, + { 102, 0, 2, 5, { 0 }}, + { 103, 0, 5, 7, { 0 }}, + { 104, 0, 2, 7, { 0 }}, + { 105, 0, 2, 3, { 0 }}, + { 106, 0, 2, 6, { 0 }}, + { 107, 0, 2, 7, { 0 }}, + { 108, 0, 2, 4, { 0 }}, + { 109, 0, 5, 9, { 0 }}, + { 110, 0, 5, 7, { 0 }}, + { 111, 0, 5, 7, { 0 }}, + { 112, 0, 5, 7, { 0 }}, + { 113, 0, 5, 7, { 0 }}, + { 114, 0, 5, 6, { 0 }}, + { 115, 0, 5, 7, { 0 }}, + { 116, 0, 2, 5, { 0 }}, + { 117, 0, 5, 7, { 0 }}, + { 118, 0, 5, 7, { 0 }}, + { 119, 0, 5, 9, { 0 }}, + { 120, 0, 5, 7, { 0 }}, + { 121, 0, 5, 7, { 0 }}, + { 122, 0, 5, 7, { 0 }}, + { 123, 0, 2, 6, { 0 }}, + { 124, 0, 2, 3, { 0 }}, + { 125, 0, 2, 6, { 0 }}, + { 126, 0, 6, 8, { 0 }}, + { 161, 0, 5, 3, { 0 }}, + { 162, 0, 3, 7, { 0 }}, + { 163, 0, 2, 8, { 0 }}, + { 8364, 0, 3, 8, { 0 }}, + { 165, 0, 2, 7, { 0 }}, + { 352, 0, 1, 8, { 0 }}, + { 167, 0, 2, 7, { 0 }}, + { 353, 0, 2, 7, { 0 }}, + { 169, 0, 2, 8, { 0 }}, + { 170, 0, 2, 6, { 0 }}, + { 171, 0, 6, 8, { 0 }}, + { 172, 0, 7, 7, { 0 }}, + { 174, 0, 2, 8, { 0 }}, + { 175, 0, 0, 0, { 0 }}, + { 176, 0, 2, 5, { 0 }}, + { 177, 0, 4, 7, { 0 }}, + { 178, 0, 2, 5, { 0 }}, + { 179, 0, 2, 5, { 0 }}, + { 381, 0, 1, 8, { 0 }}, + { 181, 0, 5, 7, { 0 }}, + { 182, 0, 2, 8, { 0 }}, + { 183, 0, 6, 3, { 0 }}, + { 382, 0, 2, 7, { 0 }}, + { 185, 0, 2, 4, { 0 }}, + { 186, 0, 2, 5, { 0 }}, + { 187, 0, 6, 8, { 0 }}, + { 338, 0, 2, 10, { 0 }}, + { 339, 0, 5, 9, { 0 }}, + { 376, 0, 1, 7, { 0 }}, + { 191, 0, 3, 7, { 0 }}, + { 192, 0, 1, 8, { 0 }}, + { 193, 0, 1, 8, { 0 }}, + { 194, 0, 1, 8, { 0 }}, + { 195, 0, 1, 8, { 0 }}, + { 196, 0, 1, 8, { 0 }}, + { 197, 0, 1, 8, { 0 }}, + { 198, 0, 2, 10, { 0 }}, + { 199, 0, 2, 8, { 0 }}, + { 200, 0, 1, 8, { 0 }}, + { 201, 0, 1, 8, { 0 }}, + { 202, 0, 1, 8, { 0 }}, + { 203, 0, 1, 8, { 0 }}, + { 204, 0, 1, 4, { 0 }}, + { 205, 0, 1, 4, { 0 }}, + { 206, 0, 1, 6, { 0 }}, + { 207, 0, 1, 6, { 0 }}, + { 208, 0, 2, 9, { 0 }}, + { 209, 0, 1, 8, { 0 }}, + { 210, 0, 1, 8, { 0 }}, + { 211, 0, 1, 8, { 0 }}, + { 212, 0, 1, 8, { 0 }}, + { 213, 0, 1, 8, { 0 }}, + { 214, 0, 1, 8, { 0 }}, + { 215, 0, 5, 8, { 0 }}, + { 216, 0, 1, 8, { 0 }}, + { 217, 0, 1, 8, { 0 }}, + { 218, 0, 1, 8, { 0 }}, + { 219, 0, 1, 8, { 0 }}, + { 220, 0, 1, 8, { 0 }}, + { 221, 0, 1, 7, { 0 }}, + { 222, 0, 2, 8, { 0 }}, + { 223, 0, 2, 8, { 0 }}, + { 224, 0, 2, 7, { 0 }}, + { 225, 0, 2, 7, { 0 }}, + { 226, 0, 2, 7, { 0 }}, + { 227, 0, 2, 7, { 0 }}, + { 228, 0, 2, 7, { 0 }}, + { 229, 0, 1, 7, { 0 }}, + { 230, 0, 5, 9, { 0 }}, + { 231, 0, 5, 7, { 0 }}, + { 232, 0, 2, 7, { 0 }}, + { 233, 0, 2, 7, { 0 }}, + { 234, 0, 2, 7, { 0 }}, + { 235, 0, 2, 7, { 0 }}, + { 236, 0, 2, 4, { 0 }}, + { 237, 0, 2, 4, { 0 }}, + { 238, 0, 2, 6, { 0 }}, + { 239, 0, 2, 6, { 0 }}, + { 240, 0, 2, 7, { 0 }}, + { 241, 0, 2, 7, { 0 }}, + { 242, 0, 2, 7, { 0 }}, + { 243, 0, 2, 7, { 0 }}, + { 244, 0, 2, 7, { 0 }}, + { 245, 0, 2, 7, { 0 }}, + { 246, 0, 2, 7, { 0 }}, + { 247, 0, 4, 7, { 0 }}, + { 248, 0, 3, 8, { 0 }}, + { 249, 0, 2, 7, { 0 }}, + { 250, 0, 2, 7, { 0 }}, + { 251, 0, 2, 7, { 0 }}, + { 252, 0, 2, 7, { 0 }}, + { 253, 0, 2, 7, { 0 }}, + { 254, 0, 2, 7, { 0 }}, + { 255, 0, 2, 7, { 0 }}, +}; + +// Style loading function: Enefete +static void GuiLoadStyleEnefete(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < ENEFETE_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(enefeteStyleProps[i].controlId, enefeteStyleProps[i].propertyId, enefeteStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int enefeteFontDataSize = 0; + unsigned char *data = DecompressData(enefeteFontData, ENEFETE_STYLE_FONT_ATLAS_COMP_SIZE, &enefeteFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 16; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, enefeteFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, enefeteFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/enefete/style_enefete.png b/include/styles/enefete/style_enefete.png new file mode 100644 index 0000000..d40778c Binary files /dev/null and b/include/styles/enefete/style_enefete.png differ diff --git a/include/styles/enefete/style_enefete.rgs b/include/styles/enefete/style_enefete.rgs new file mode 100644 index 0000000..7eea922 Binary files /dev/null and b/include/styles/enefete/style_enefete.rgs differ diff --git a/include/styles/enefete/style_enefete.txt.rgs b/include/styles/enefete/style_enefete.txt.rgs new file mode 100644 index 0000000..d879663 --- /dev/null +++ b/include/styles/enefete/style_enefete.txt.rgs @@ -0,0 +1,27 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 16 charset.txt GenericMobileSystemNuevo.ttf +p 00 00 0x1980d5ff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0x4df3ebff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0x103e60ff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0xe7e2f7ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0x23d4ddff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0xf1f1f1ff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0x6413a6ff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0xea66d9ff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0x9f00bbff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0x4b909eff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0x73c7d0ff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x448894ff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x00000010 TEXT_SIZE +p 00 17 0x00000000 TEXT_SPACING +p 00 18 0x1d3f6cff LINE_COLOR +p 00 19 0x29c9e5ff BACKGROUND_COLOR +p 00 20 0x00000018 TEXT_LINE_SPACING diff --git a/include/styles/genesis/PixelOperator.ttf b/include/styles/genesis/PixelOperator.ttf new file mode 100644 index 0000000..34fe947 Binary files /dev/null and b/include/styles/genesis/PixelOperator.ttf differ diff --git a/include/styles/genesis/font_LICENSE.txt b/include/styles/genesis/font_LICENSE.txt new file mode 100644 index 0000000..0e259d4 --- /dev/null +++ b/include/styles/genesis/font_LICENSE.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/include/styles/genesis/screenshot.png b/include/styles/genesis/screenshot.png new file mode 100644 index 0000000..235d91c Binary files /dev/null and b/include/styles/genesis/screenshot.png differ diff --git a/include/styles/genesis/style_genesis.h b/include/styles/genesis/style_genesis.h new file mode 100644 index 0000000..5a9d9b5 --- /dev/null +++ b/include/styles/genesis/style_genesis.h @@ -0,0 +1,589 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleGenesis(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define GENESIS_STYLE_PROPS_COUNT 23 + +// Custom style name: Genesis +static const GuiStyleProp genesisStyleProps[GENESIS_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x667384ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x181b1eff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0xc2c8d0ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xd3dbdfff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0xa7afb0ff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0x020202ff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0x181b1eff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0xac3c3cff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0xdededeff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x3e4550ff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x2e353dff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x484f57ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x00000010 }, // DEFAULT_TEXT_SIZE + { 0, 17, (int)0x00000000 }, // DEFAULT_TEXT_SPACING + { 0, 18, (int)0x96a3b4ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x292c33ff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000018 }, // DEFAULT_TEXT_LINE_SPACING + { 1, 5, (int)0x97a9aeff }, // LABEL_TEXT_COLOR_FOCUSED + { 4, 5, (int)0xa69a9aff }, // SLIDER_TEXT_COLOR_FOCUSED + { 4, 6, (int)0xc3ccd5ff }, // SLIDER_BORDER_COLOR_PRESSED + { 6, 6, (int)0xa7aeb5ff }, // CHECKBOX_BORDER_COLOR_PRESSED + { 9, 5, (int)0xa9a5a5ff }, // TEXTBOX_TEXT_COLOR_FOCUSED + { 10, 5, (int)0xc9c7c7ff }, // VALUEBOX_TEXT_COLOR_FOCUSED +}; + +// WARNING: This style uses a custom font: "PixelOperator.ttf" (size: 16, spacing: 0) + +#define GENESIS_STYLE_FONT_ATLAS_COMP_SIZE 2138 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char genesisFontData[GENESIS_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0xdb, 0x92, 0xa5, 0xba, 0x0d, 0x00, 0x50, 0xff, 0xff, 0x4f, 0x2b, 0x0f, 0xa9, 0x54, 0x32, 0x95, 0xd3, 0x80, 0x64, + 0xd9, 0x98, 0x9e, 0x35, 0xeb, 0xad, 0x77, 0x4f, 0xc3, 0x36, 0x96, 0x6f, 0x80, 0x1c, 0x03, 0x00, 0x00, 0x00, 0xf8, 0xeb, + 0xc5, 0x3f, 0xfe, 0x24, 0x7e, 0xfc, 0xcd, 0x78, 0xfc, 0x77, 0xae, 0x7f, 0xfe, 0x9f, 0x4f, 0xe3, 0xe2, 0x58, 0xcf, 0xce, + 0x35, 0x7b, 0xdc, 0x48, 0x94, 0xc4, 0x3f, 0x9f, 0x5f, 0x3c, 0xfe, 0xbb, 0x3f, 0x7d, 0xbf, 0xfc, 0xef, 0x5f, 0xfd, 0xa5, + 0xeb, 0xb3, 0x8f, 0x54, 0xb9, 0xe7, 0xff, 0x4f, 0xee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b, 0xfb, 0x13, 0xac, 0x58, 0xcd, 0xed, + 0x9d, 0x4d, 0x88, 0xff, 0xd5, 0x75, 0xe7, 0xa4, 0x9d, 0x21, 0xc4, 0x78, 0x7d, 0xfe, 0x5f, 0xdb, 0x13, 0xb4, 0xda, 0x02, + 0xec, 0xcb, 0xd5, 0xfa, 0x46, 0x6e, 0x7d, 0xb9, 0x75, 0x67, 0xae, 0xd7, 0xf5, 0xe8, 0xef, 0x9b, 0xf7, 0x63, 0x4e, 0x1f, + 0xff, 0xf7, 0xde, 0xab, 0xf9, 0xff, 0x35, 0xa5, 0xd5, 0x2b, 0xde, 0xab, 0xc6, 0xff, 0x2b, 0xda, 0xd8, 0x37, 0x4b, 0x63, + 0xcd, 0xbd, 0xa3, 0xfe, 0x33, 0x8c, 0xa6, 0xd1, 0x1f, 0xef, 0xb4, 0x1a, 0xb0, 0x66, 0x9c, 0xf1, 0x7e, 0x4b, 0x08, 0x7c, + 0xed, 0x49, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x80, 0x93, 0xfc, 0xfb, 0x9f, 0x72, 0x00, 0xf1, 0x0f, 0xfc, 0x75, 0xf1, 0xff, 0x2f }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle genesisFontRecs[189] = { + { 4, 4, 4 , 16 }, + { 16, 4, 1 , 9 }, + { 25, 4, 3 , 3 }, + { 36, 4, 6 , 9 }, + { 50, 4, 5 , 13 }, + { 63, 4, 7 , 9 }, + { 78, 4, 5 , 9 }, + { 91, 4, 1 , 3 }, + { 100, 4, 3 , 9 }, + { 111, 4, 3 , 9 }, + { 122, 4, 5 , 5 }, + { 135, 4, 5 , 5 }, + { 148, 4, 2 , 3 }, + { 158, 4, 4 , 1 }, + { 170, 4, 1 , 1 }, + { 179, 4, 3 , 9 }, + { 190, 4, 5 , 9 }, + { 203, 4, 3 , 9 }, + { 214, 4, 5 , 9 }, + { 227, 4, 5 , 9 }, + { 240, 4, 5 , 9 }, + { 253, 4, 5 , 9 }, + { 266, 4, 5 , 9 }, + { 279, 4, 5 , 9 }, + { 292, 4, 5 , 9 }, + { 305, 4, 5 , 9 }, + { 318, 4, 1 , 7 }, + { 327, 4, 2 , 9 }, + { 337, 4, 3 , 5 }, + { 348, 4, 4 , 3 }, + { 360, 4, 3 , 5 }, + { 371, 4, 5 , 9 }, + { 384, 4, 7 , 9 }, + { 399, 4, 5 , 9 }, + { 412, 4, 5 , 9 }, + { 425, 4, 5 , 9 }, + { 438, 4, 5 , 9 }, + { 451, 4, 5 , 9 }, + { 464, 4, 5 , 9 }, + { 477, 4, 5 , 9 }, + { 490, 4, 5 , 9 }, + { 4, 28, 1 , 9 }, + { 13, 28, 5 , 9 }, + { 26, 28, 5 , 9 }, + { 39, 28, 5 , 9 }, + { 52, 28, 7 , 9 }, + { 67, 28, 5 , 9 }, + { 80, 28, 5 , 9 }, + { 93, 28, 5 , 9 }, + { 106, 28, 5 , 9 }, + { 119, 28, 5 , 9 }, + { 132, 28, 5 , 9 }, + { 145, 28, 5 , 9 }, + { 158, 28, 5 , 9 }, + { 171, 28, 5 , 9 }, + { 184, 28, 7 , 9 }, + { 199, 28, 5 , 9 }, + { 212, 28, 5 , 9 }, + { 225, 28, 5 , 9 }, + { 238, 28, 3 , 9 }, + { 249, 28, 3 , 9 }, + { 260, 28, 3 , 9 }, + { 271, 28, 5 , 3 }, + { 284, 28, 5 , 1 }, + { 297, 28, 2 , 2 }, + { 307, 28, 5 , 7 }, + { 320, 28, 5 , 9 }, + { 333, 28, 5 , 7 }, + { 346, 28, 5 , 9 }, + { 359, 28, 5 , 7 }, + { 372, 28, 4 , 9 }, + { 384, 28, 5 , 9 }, + { 397, 28, 5 , 9 }, + { 410, 28, 1 , 9 }, + { 419, 28, 5 , 11 }, + { 432, 28, 5 , 9 }, + { 445, 28, 2 , 9 }, + { 455, 28, 7 , 7 }, + { 470, 28, 5 , 7 }, + { 483, 28, 5 , 7 }, + { 496, 28, 5 , 9 }, + { 4, 52, 5 , 9 }, + { 17, 52, 5 , 7 }, + { 30, 52, 5 , 7 }, + { 43, 52, 4 , 8 }, + { 55, 52, 5 , 7 }, + { 68, 52, 5 , 7 }, + { 81, 52, 7 , 7 }, + { 96, 52, 5 , 7 }, + { 109, 52, 5 , 9 }, + { 122, 52, 5 , 7 }, + { 135, 52, 4 , 9 }, + { 147, 52, 1 , 9 }, + { 156, 52, 4 , 9 }, + { 168, 52, 6 , 2 }, + { 182, 52, 1 , 9 }, + { 191, 52, 5 , 11 }, + { 204, 52, 6 , 9 }, + { 218, 52, 6 , 9 }, + { 232, 52, 5 , 9 }, + { 245, 52, 5 , 12 }, + { 258, 52, 0 , 0 }, + { 266, 52, 5 , 10 }, + { 279, 52, 7 , 9 }, + { 294, 52, 0 , 0 }, + { 302, 52, 6 , 5 }, + { 316, 52, 5 , 3 }, + { 329, 52, 7 , 9 }, + { 344, 52, 0 , 0 }, + { 352, 52, 4 , 4 }, + { 364, 52, 5 , 7 }, + { 377, 52, 0 , 0 }, + { 385, 52, 0 , 0 }, + { 393, 52, 5 , 12 }, + { 406, 52, 5 , 9 }, + { 419, 52, 7 , 9 }, + { 434, 52, 1 , 1 }, + { 443, 52, 5 , 10 }, + { 456, 52, 0 , 0 }, + { 464, 52, 0 , 0 }, + { 472, 52, 6 , 5 }, + { 486, 52, 9 , 9 }, + { 4, 76, 9 , 7 }, + { 21, 76, 5 , 11 }, + { 34, 76, 5 , 9 }, + { 47, 76, 5 , 12 }, + { 60, 76, 5 , 12 }, + { 73, 76, 5 , 12 }, + { 86, 76, 6 , 12 }, + { 100, 76, 5 , 11 }, + { 113, 76, 5 , 13 }, + { 126, 76, 9 , 9 }, + { 143, 76, 5 , 12 }, + { 156, 76, 5 , 12 }, + { 169, 76, 5 , 12 }, + { 182, 76, 5 , 12 }, + { 195, 76, 5 , 11 }, + { 208, 76, 2 , 12 }, + { 218, 76, 2 , 12 }, + { 228, 76, 3 , 12 }, + { 239, 76, 3 , 11 }, + { 250, 76, 6 , 9 }, + { 264, 76, 6 , 12 }, + { 278, 76, 5 , 12 }, + { 291, 76, 5 , 12 }, + { 304, 76, 5 , 12 }, + { 317, 76, 6 , 12 }, + { 331, 76, 5 , 11 }, + { 344, 76, 5 , 5 }, + { 357, 76, 7 , 9 }, + { 372, 76, 5 , 12 }, + { 385, 76, 5 , 12 }, + { 398, 76, 5 , 12 }, + { 411, 76, 5 , 11 }, + { 424, 76, 5 , 12 }, + { 437, 76, 5 , 9 }, + { 450, 76, 5 , 9 }, + { 463, 76, 5 , 10 }, + { 476, 76, 5 , 10 }, + { 489, 76, 5 , 10 }, + { 4, 100, 6 , 10 }, + { 18, 100, 5 , 9 }, + { 31, 100, 5 , 11 }, + { 44, 100, 9 , 7 }, + { 61, 100, 5 , 10 }, + { 74, 100, 5 , 10 }, + { 87, 100, 5 , 10 }, + { 100, 100, 5 , 10 }, + { 113, 100, 5 , 9 }, + { 126, 100, 2 , 10 }, + { 136, 100, 2 , 10 }, + { 146, 100, 3 , 10 }, + { 157, 100, 3 , 9 }, + { 168, 100, 6 , 9 }, + { 182, 100, 6 , 10 }, + { 196, 100, 5 , 10 }, + { 209, 100, 5 , 10 }, + { 222, 100, 5 , 10 }, + { 235, 100, 6 , 10 }, + { 249, 100, 5 , 9 }, + { 262, 100, 5 , 5 }, + { 275, 100, 7 , 7 }, + { 290, 100, 5 , 10 }, + { 303, 100, 5 , 10 }, + { 316, 100, 5 , 10 }, + { 329, 100, 5 , 9 }, + { 342, 100, 5 , 12 }, + { 355, 100, 5 , 11 }, + { 368, 100, 5 , 11 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo genesisFontGlyphs[189] = { + { 32, 0, 0, 4, { 0 }}, + { 33, 2, 4, 5, { 0 }}, + { 34, 2, 4, 7, { 0 }}, + { 35, 1, 4, 8, { 0 }}, + { 36, 1, 2, 7, { 0 }}, + { 37, 1, 4, 9, { 0 }}, + { 38, 1, 4, 7, { 0 }}, + { 39, 2, 4, 5, { 0 }}, + { 40, 3, 4, 7, { 0 }}, + { 41, 1, 4, 7, { 0 }}, + { 42, 1, 4, 7, { 0 }}, + { 43, 1, 6, 7, { 0 }}, + { 44, 1, 12, 5, { 0 }}, + { 45, 1, 8, 6, { 0 }}, + { 46, 2, 12, 5, { 0 }}, + { 47, 1, 4, 5, { 0 }}, + { 48, 1, 4, 7, { 0 }}, + { 49, 2, 4, 7, { 0 }}, + { 50, 1, 4, 7, { 0 }}, + { 51, 1, 4, 7, { 0 }}, + { 52, 1, 4, 7, { 0 }}, + { 53, 1, 4, 7, { 0 }}, + { 54, 1, 4, 7, { 0 }}, + { 55, 1, 4, 7, { 0 }}, + { 56, 1, 4, 7, { 0 }}, + { 57, 1, 4, 7, { 0 }}, + { 58, 2, 6, 5, { 0 }}, + { 59, 1, 6, 5, { 0 }}, + { 60, 1, 6, 5, { 0 }}, + { 61, 1, 7, 6, { 0 }}, + { 62, 1, 6, 5, { 0 }}, + { 63, 1, 4, 7, { 0 }}, + { 64, 1, 4, 9, { 0 }}, + { 65, 1, 4, 7, { 0 }}, + { 66, 1, 4, 7, { 0 }}, + { 67, 1, 4, 7, { 0 }}, + { 68, 1, 4, 7, { 0 }}, + { 69, 1, 4, 7, { 0 }}, + { 70, 1, 4, 7, { 0 }}, + { 71, 1, 4, 7, { 0 }}, + { 72, 1, 4, 7, { 0 }}, + { 73, 2, 4, 5, { 0 }}, + { 74, 1, 4, 7, { 0 }}, + { 75, 1, 4, 7, { 0 }}, + { 76, 1, 4, 7, { 0 }}, + { 77, 1, 4, 9, { 0 }}, + { 78, 1, 4, 7, { 0 }}, + { 79, 1, 4, 7, { 0 }}, + { 80, 1, 4, 7, { 0 }}, + { 81, 1, 4, 7, { 0 }}, + { 82, 1, 4, 7, { 0 }}, + { 83, 1, 4, 7, { 0 }}, + { 84, 1, 4, 7, { 0 }}, + { 85, 1, 4, 7, { 0 }}, + { 86, 1, 4, 7, { 0 }}, + { 87, 1, 4, 9, { 0 }}, + { 88, 1, 4, 7, { 0 }}, + { 89, 1, 4, 7, { 0 }}, + { 90, 1, 4, 7, { 0 }}, + { 91, 3, 4, 7, { 0 }}, + { 92, 1, 4, 5, { 0 }}, + { 93, 1, 4, 7, { 0 }}, + { 94, 1, 4, 7, { 0 }}, + { 95, 0, 14, 5, { 0 }}, + { 96, 1, 4, 5, { 0 }}, + { 97, 1, 6, 7, { 0 }}, + { 98, 1, 4, 7, { 0 }}, + { 99, 1, 6, 7, { 0 }}, + { 100, 1, 4, 7, { 0 }}, + { 101, 1, 6, 7, { 0 }}, + { 102, 1, 4, 6, { 0 }}, + { 103, 1, 6, 7, { 0 }}, + { 104, 1, 4, 7, { 0 }}, + { 105, 2, 4, 5, { 0 }}, + { 106, 1, 4, 7, { 0 }}, + { 107, 1, 4, 7, { 0 }}, + { 108, 2, 4, 5, { 0 }}, + { 109, 1, 6, 9, { 0 }}, + { 110, 1, 6, 7, { 0 }}, + { 111, 1, 6, 7, { 0 }}, + { 112, 1, 6, 7, { 0 }}, + { 113, 1, 6, 7, { 0 }}, + { 114, 1, 6, 7, { 0 }}, + { 115, 1, 6, 7, { 0 }}, + { 116, 1, 5, 6, { 0 }}, + { 117, 1, 6, 7, { 0 }}, + { 118, 1, 6, 7, { 0 }}, + { 119, 1, 6, 9, { 0 }}, + { 120, 1, 6, 7, { 0 }}, + { 121, 1, 6, 7, { 0 }}, + { 122, 1, 6, 7, { 0 }}, + { 123, 2, 4, 7, { 0 }}, + { 124, 2, 4, 5, { 0 }}, + { 125, 1, 4, 7, { 0 }}, + { 126, 1, 4, 8, { 0 }}, + { 161, 2, 6, 5, { 0 }}, + { 162, 1, 4, 7, { 0 }}, + { 163, 1, 4, 8, { 0 }}, + { 8364, 1, 4, 8, { 0 }}, + { 165, 1, 4, 7, { 0 }}, + { 352, 1, 1, 7, { 0 }}, + { 167, 0, 0, 0, { 0 }}, + { 353, 1, 3, 7, { 0 }}, + { 169, 1, 4, 9, { 0 }}, + { 170, 0, 0, 0, { 0 }}, + { 171, 1, 6, 8, { 0 }}, + { 172, 1, 8, 7, { 0 }}, + { 174, 1, 4, 9, { 0 }}, + { 175, 0, 0, 0, { 0 }}, + { 176, 1, 4, 6, { 0 }}, + { 177, 1, 6, 7, { 0 }}, + { 178, 0, 0, 0, { 0 }}, + { 179, 0, 0, 0, { 0 }}, + { 381, 1, 1, 7, { 0 }}, + { 181, 1, 6, 7, { 0 }}, + { 182, 1, 4, 9, { 0 }}, + { 183, 2, 8, 5, { 0 }}, + { 382, 1, 3, 7, { 0 }}, + { 185, 0, 0, 0, { 0 }}, + { 186, 0, 0, 0, { 0 }}, + { 187, 1, 6, 8, { 0 }}, + { 338, 1, 4, 11, { 0 }}, + { 339, 1, 6, 11, { 0 }}, + { 376, 1, 2, 7, { 0 }}, + { 191, 1, 6, 7, { 0 }}, + { 192, 1, 1, 7, { 0 }}, + { 193, 1, 1, 7, { 0 }}, + { 194, 1, 1, 7, { 0 }}, + { 195, 1, 1, 7, { 0 }}, + { 196, 1, 2, 7, { 0 }}, + { 197, 1, 0, 7, { 0 }}, + { 198, 1, 4, 11, { 0 }}, + { 199, 1, 4, 7, { 0 }}, + { 200, 1, 1, 7, { 0 }}, + { 201, 1, 1, 7, { 0 }}, + { 202, 1, 1, 7, { 0 }}, + { 203, 1, 2, 7, { 0 }}, + { 204, 1, 1, 5, { 0 }}, + { 205, 2, 1, 5, { 0 }}, + { 206, 1, 1, 5, { 0 }}, + { 207, 1, 2, 5, { 0 }}, + { 208, 0, 4, 7, { 0 }}, + { 209, 1, 1, 7, { 0 }}, + { 210, 1, 1, 7, { 0 }}, + { 211, 1, 1, 7, { 0 }}, + { 212, 1, 1, 7, { 0 }}, + { 213, 1, 1, 7, { 0 }}, + { 214, 1, 2, 7, { 0 }}, + { 215, 1, 6, 7, { 0 }}, + { 216, 0, 4, 7, { 0 }}, + { 217, 1, 1, 7, { 0 }}, + { 218, 1, 1, 7, { 0 }}, + { 219, 1, 1, 7, { 0 }}, + { 220, 1, 2, 7, { 0 }}, + { 221, 1, 1, 7, { 0 }}, + { 222, 1, 4, 7, { 0 }}, + { 223, 1, 4, 7, { 0 }}, + { 224, 1, 3, 7, { 0 }}, + { 225, 1, 3, 7, { 0 }}, + { 226, 1, 3, 7, { 0 }}, + { 227, 1, 3, 7, { 0 }}, + { 228, 1, 4, 7, { 0 }}, + { 229, 1, 2, 7, { 0 }}, + { 230, 1, 6, 11, { 0 }}, + { 231, 1, 6, 7, { 0 }}, + { 232, 1, 3, 7, { 0 }}, + { 233, 1, 3, 7, { 0 }}, + { 234, 1, 3, 7, { 0 }}, + { 235, 1, 4, 7, { 0 }}, + { 236, 1, 3, 5, { 0 }}, + { 237, 2, 3, 5, { 0 }}, + { 238, 1, 3, 5, { 0 }}, + { 239, 1, 4, 5, { 0 }}, + { 240, 1, 4, 7, { 0 }}, + { 241, 1, 3, 7, { 0 }}, + { 242, 1, 3, 7, { 0 }}, + { 243, 1, 3, 7, { 0 }}, + { 244, 1, 3, 7, { 0 }}, + { 245, 1, 3, 7, { 0 }}, + { 246, 1, 4, 7, { 0 }}, + { 247, 1, 6, 7, { 0 }}, + { 248, 0, 6, 7, { 0 }}, + { 249, 1, 3, 7, { 0 }}, + { 250, 1, 3, 7, { 0 }}, + { 251, 1, 3, 7, { 0 }}, + { 252, 1, 4, 7, { 0 }}, + { 253, 1, 3, 7, { 0 }}, + { 254, 1, 4, 7, { 0 }}, + { 255, 1, 4, 7, { 0 }}, +}; + +// Style loading function: Genesis +static void GuiLoadStyleGenesis(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < GENESIS_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(genesisStyleProps[i].controlId, genesisStyleProps[i].propertyId, genesisStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int genesisFontDataSize = 0; + unsigned char *data = DecompressData(genesisFontData, GENESIS_STYLE_FONT_ATLAS_COMP_SIZE, &genesisFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 16; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, genesisFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, genesisFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/genesis/style_genesis.png b/include/styles/genesis/style_genesis.png new file mode 100644 index 0000000..37dfa85 Binary files /dev/null and b/include/styles/genesis/style_genesis.png differ diff --git a/include/styles/genesis/style_genesis.rgs b/include/styles/genesis/style_genesis.rgs new file mode 100644 index 0000000..1d12f67 Binary files /dev/null and b/include/styles/genesis/style_genesis.rgs differ diff --git a/include/styles/jungle/PixelIntv.otf b/include/styles/jungle/PixelIntv.otf new file mode 100644 index 0000000..e8c54a7 Binary files /dev/null and b/include/styles/jungle/PixelIntv.otf differ diff --git a/include/styles/jungle/README.md b/include/styles/jungle/README.md new file mode 100644 index 0000000..da97773 --- /dev/null +++ b/include/styles/jungle/README.md @@ -0,0 +1,27 @@ +## style: jungle + +Sunset in the jungle, trees do not let to see the last rays of sun on the horizon, small creek in the path, mug on the shoes, a touch of danger and the adventure feeling, get into your jeep and drive with this style. + +![jungle style table](style_jungle.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_jungle.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_jungle.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_jungle.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_jungle.h` | Embeddable style as code file, self-contained, includes font data | +| `style_jungle.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![jungle style screen](screenshot.png) + +## about font + +"Pixel Intv" font by [Pixel Sagas](http://www.pixelsagas.com) (Neale and Shayna Davidson). + +100% free font, downloaded from dafont.com: [pixel-intv](https://www.dafont.com/pixel-intv.font) diff --git a/include/styles/jungle/charset.txt b/include/styles/jungle/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/jungle/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/jungle/font_readme.txt b/include/styles/jungle/font_readme.txt new file mode 100644 index 0000000..b4e6c6e --- /dev/null +++ b/include/styles/jungle/font_readme.txt @@ -0,0 +1,47 @@ +Shareware/ Font License + +Pixel Sagas Freeware Fonts EULA (End User License Agreement) and Software Inclusion Agreement + +"Purchaser" and "User" may be used interchangeably in this agreement. + +"Pixel Sagas" and "Neale Davidson" may be used interchangeably in this agreement. These all refer to the intellectual and legal property of Neale Davidson. + +Usage + +Pixel Saga's Shareware Fonts are free to use for personal, non-commercial purposes. No payment is necessary to use Pixel Saga's Freeware Fonts for personal use, and there is no limit to the amount of prints, pages, or other medium to be produced using them. However, you cannot offer the font for commercial sale, or offer for direct download. The inclusion othe font name and/or site URL in the credits or documentation when it is used is appreciated, but this is not mandatory. + +Payment + +Payment is not required for the use of Pixel Saga's Shareware Fonts. Commercial use requires a modest fee which can be paid through the pixelsagas.com web site through Paypal.com's services. The transaction receipt for any shareware "commercial license" purchase will suffice as proof of license. + +Support + +Font installation help is available at http://www.pixelsagas.com. If you experience problems with any Pixel Saga's Freeware font (such as spacing issues or missing characters), please verify that you have the correct and current version of the fonts. In the case of Freeware fonts, downloading the font directly from the Pixel Sagas site will ensure that the font files have not been altered. + +Software Inclusion Agreement + +Pixel Saga's software products are protected by copyright laws and International copyright treaties, as well as other intellectual property laws and treaties. All Pixel Saga's software products are licensed, not sold. + +1) GRANT OF LICENSE + +This document grants the user the following rights: + +Installation and Use. The user may install and use an unlimited number of copies of the software product. The user may not offer Pixel Sagas freeware fonts for direct download unless the user has received explicit, written permission from Neale Davidson. Otherwise please direct users to the http://www.pixelsagas.com website. Pixel Sagas freeware fonts may, however, be embedded for web, publication, or general software use. + +2) WARRANTIES + +None + +Pixel Sagas expressly disclaims any warranty for the software product. The software product and any related documentation is provided "as is" without warranty of any kind, either express or implied, including, without limitation, the implied warranties or merchantability, fitness for a particular purpose, or non-infringement. The entire risk arising out of use or performance of the software product remains with the user. + +No Liability For Consequential Damages. + +In no event shall Neale Davidson or Pixel Sagas be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this product, even if Pixel Sagas has been advised of the possibility of such damages. + +3) MISCELLANEOUS + +Should the user have any questions concerning this document or you desire to contact Neale Davidson for any reason, please email jaynz@pixelsagas.com . + +Governing Law + +This agreement is governed by and subject to the laws of the United States of America. diff --git a/include/styles/jungle/screenshot.old.png b/include/styles/jungle/screenshot.old.png new file mode 100644 index 0000000..a8a7dbb Binary files /dev/null and b/include/styles/jungle/screenshot.old.png differ diff --git a/include/styles/jungle/screenshot.png b/include/styles/jungle/screenshot.png new file mode 100644 index 0000000..2b378f3 Binary files /dev/null and b/include/styles/jungle/screenshot.png differ diff --git a/include/styles/jungle/style_jungle.h b/include/styles/jungle/style_jungle.h new file mode 100644 index 0000000..fff6d99 --- /dev/null +++ b/include/styles/jungle/style_jungle.h @@ -0,0 +1,579 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleJungle(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define JUNGLE_STYLE_PROPS_COUNT 17 + +// Custom style name: Jungle +static const GuiStyleProp jungleStyleProps[JUNGLE_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x60827dff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x2c3334ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0x82a29fff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0x5f9aa8ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0x334e57ff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0x6aa9b8ff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0xa9cb8dff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0x3b6357ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0x97af81ff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x5b6462ff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x2c3334ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x666b69ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x0000000c }, // DEFAULT_TEXT_SIZE + { 0, 17, (int)0x00000000 }, // DEFAULT_TEXT_SPACING + { 0, 18, (int)0x638465ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x2b3a3aff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000012 }, // DEFAULT_TEXT_LINE_SPACING +}; + +// WARNING: This style uses a custom font: "PixelIntv.otf" (size: 12, spacing: 0) + +#define JUNGLE_STYLE_FONT_ATLAS_COMP_SIZE 2059 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char jungleFontData[JUNGLE_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0x9d, 0xbd, 0x8e, 0x1d, 0x35, 0x18, 0x86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0xe8, 0x7f, 0xdc, 0xdf, 0x53, 0xf9, 0xdd, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x90, 0xb9, 0x10, 0xfd, 0xd1, 0xff, 0xe4, 0xfa, 0xbf, 0x05 }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle jungleFontRecs[189] = { + { 4, 4, 5 , 12 }, + { 17, 4, 2 , 7 }, + { 27, 4, 5 , 3 }, + { 40, 4, 5 , 5 }, + { 53, 4, 6 , 7 }, + { 67, 4, 7 , 7 }, + { 82, 4, 5 , 7 }, + { 95, 4, 3 , 3 }, + { 106, 4, 4 , 8 }, + { 118, 4, 4 , 8 }, + { 130, 4, 5 , 5 }, + { 143, 4, 5 , 5 }, + { 156, 4, 2 , 3 }, + { 166, 4, 5 , 1 }, + { 179, 4, 2 , 2 }, + { 189, 4, 7 , 7 }, + { 204, 4, 7 , 6 }, + { 219, 4, 6 , 6 }, + { 233, 4, 6 , 6 }, + { 4, 24, 6 , 6 }, + { 18, 24, 6 , 6 }, + { 32, 24, 6 , 6 }, + { 46, 24, 6 , 6 }, + { 60, 24, 6 , 6 }, + { 74, 24, 6 , 6 }, + { 88, 24, 6 , 6 }, + { 102, 24, 2 , 5 }, + { 112, 24, 2 , 6 }, + { 122, 24, 3 , 5 }, + { 133, 24, 5 , 3 }, + { 146, 24, 3 , 5 }, + { 157, 24, 6 , 7 }, + { 171, 24, 7 , 7 }, + { 186, 24, 6 , 7 }, + { 200, 24, 6 , 7 }, + { 214, 24, 6 , 7 }, + { 228, 24, 6 , 7 }, + { 4, 44, 6 , 7 }, + { 18, 44, 6 , 7 }, + { 32, 44, 6 , 7 }, + { 46, 44, 6 , 7 }, + { 60, 44, 6 , 7 }, + { 74, 44, 6 , 7 }, + { 88, 44, 6 , 7 }, + { 102, 44, 6 , 7 }, + { 116, 44, 7 , 7 }, + { 131, 44, 6 , 7 }, + { 145, 44, 6 , 7 }, + { 159, 44, 6 , 7 }, + { 173, 44, 7 , 8 }, + { 188, 44, 6 , 7 }, + { 202, 44, 6 , 7 }, + { 216, 44, 6 , 7 }, + { 230, 44, 6 , 7 }, + { 4, 64, 6 , 7 }, + { 18, 64, 7 , 7 }, + { 33, 64, 6 , 7 }, + { 47, 64, 6 , 7 }, + { 61, 64, 6 , 7 }, + { 75, 64, 4 , 8 }, + { 87, 64, 7 , 7 }, + { 102, 64, 4 , 8 }, + { 114, 64, 4 , 2 }, + { 126, 64, 6 , 1 }, + { 140, 64, 2 , 2 }, + { 150, 64, 6 , 5 }, + { 164, 64, 6 , 7 }, + { 178, 64, 6 , 5 }, + { 192, 64, 6 , 7 }, + { 206, 64, 6 , 5 }, + { 220, 64, 6 , 7 }, + { 234, 64, 6 , 7 }, + { 4, 84, 6 , 7 }, + { 18, 84, 6 , 7 }, + { 32, 84, 5 , 8 }, + { 45, 84, 6 , 7 }, + { 59, 84, 6 , 7 }, + { 73, 84, 7 , 5 }, + { 88, 84, 6 , 5 }, + { 102, 84, 6 , 5 }, + { 116, 84, 6 , 7 }, + { 130, 84, 6 , 7 }, + { 144, 84, 6 , 5 }, + { 158, 84, 6 , 5 }, + { 172, 84, 6 , 6 }, + { 186, 84, 6 , 5 }, + { 200, 84, 6 , 5 }, + { 214, 84, 7 , 5 }, + { 229, 84, 6 , 5 }, + { 4, 104, 6 , 7 }, + { 18, 104, 6 , 5 }, + { 32, 104, 4 , 8 }, + { 44, 104, 2 , 8 }, + { 54, 104, 4 , 8 }, + { 66, 104, 5 , 2 }, + { 79, 104, 2 , 7 }, + { 89, 104, 6 , 6 }, + { 103, 104, 6 , 7 }, + { 117, 104, 6 , 7 }, + { 131, 104, 6 , 7 }, + { 145, 104, 0 , 0 }, + { 153, 104, 6 , 9 }, + { 167, 104, 0 , 0 }, + { 175, 104, 7 , 7 }, + { 190, 104, 8 , 8 }, + { 206, 104, 6 , 5 }, + { 220, 104, 8 , 8 }, + { 236, 104, 7 , 7 }, + { 4, 124, 8 , 8 }, + { 20, 124, 4 , 4 }, + { 32, 124, 8 , 8 }, + { 48, 124, 8 , 8 }, + { 64, 124, 8 , 8 }, + { 80, 124, 0 , 0 }, + { 88, 124, 6 , 7 }, + { 102, 124, 5 , 8 }, + { 115, 124, 3 , 3 }, + { 126, 124, 0 , 0 }, + { 134, 124, 8 , 8 }, + { 150, 124, 8 , 8 }, + { 166, 124, 6 , 5 }, + { 180, 124, 10 , 7 }, + { 198, 124, 10 , 5 }, + { 216, 124, 0 , 0 }, + { 224, 124, 6 , 7 }, + { 238, 124, 6 , 10 }, + { 4, 144, 6 , 10 }, + { 18, 144, 6 , 10 }, + { 32, 144, 6 , 10 }, + { 46, 144, 6 , 10 }, + { 60, 144, 6 , 10 }, + { 74, 144, 10 , 7 }, + { 92, 144, 6 , 9 }, + { 106, 144, 6 , 10 }, + { 120, 144, 6 , 10 }, + { 134, 144, 6 , 10 }, + { 148, 144, 6 , 10 }, + { 162, 144, 6 , 10 }, + { 176, 144, 6 , 10 }, + { 190, 144, 6 , 10 }, + { 204, 144, 6 , 10 }, + { 218, 144, 6 , 7 }, + { 232, 144, 6 , 10 }, + { 4, 164, 6 , 10 }, + { 18, 164, 6 , 10 }, + { 32, 164, 6 , 10 }, + { 46, 164, 6 , 10 }, + { 60, 164, 6 , 10 }, + { 74, 164, 6 , 5 }, + { 88, 164, 6 , 7 }, + { 102, 164, 6 , 10 }, + { 116, 164, 6 , 10 }, + { 130, 164, 6 , 10 }, + { 144, 164, 6 , 10 }, + { 158, 164, 6 , 10 }, + { 172, 164, 6 , 7 }, + { 186, 164, 6 , 7 }, + { 200, 164, 6 , 8 }, + { 214, 164, 6 , 8 }, + { 228, 164, 6 , 8 }, + { 4, 184, 6 , 8 }, + { 18, 184, 6 , 8 }, + { 32, 184, 6 , 8 }, + { 46, 184, 9 , 5 }, + { 63, 184, 6 , 7 }, + { 77, 184, 6 , 8 }, + { 91, 184, 6 , 8 }, + { 105, 184, 6 , 8 }, + { 119, 184, 6 , 8 }, + { 133, 184, 6 , 8 }, + { 147, 184, 6 , 8 }, + { 161, 184, 6 , 8 }, + { 175, 184, 6 , 8 }, + { 189, 184, 6 , 7 }, + { 203, 184, 6 , 8 }, + { 217, 184, 6 , 8 }, + { 231, 184, 6 , 8 }, + { 4, 204, 6 , 8 }, + { 18, 204, 6 , 8 }, + { 32, 204, 6 , 8 }, + { 46, 204, 5 , 5 }, + { 59, 204, 6 , 5 }, + { 73, 204, 6 , 8 }, + { 87, 204, 6 , 8 }, + { 101, 204, 6 , 8 }, + { 115, 204, 6 , 8 }, + { 129, 204, 6 , 10 }, + { 143, 204, 6 , 9 }, + { 157, 204, 6 , 10 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo jungleFontGlyphs[189] = { + { 32, 0, 0, 5, { 0 }}, + { 33, 0, 2, 3, { 0 }}, + { 34, 0, 2, 6, { 0 }}, + { 35, 0, 3, 6, { 0 }}, + { 36, 0, 2, 7, { 0 }}, + { 37, 0, 2, 8, { 0 }}, + { 38, 0, 2, 6, { 0 }}, + { 39, 0, 2, 4, { 0 }}, + { 40, 0, 2, 5, { 0 }}, + { 41, 0, 2, 5, { 0 }}, + { 42, 0, 2, 6, { 0 }}, + { 43, 0, 3, 6, { 0 }}, + { 44, 0, 7, 3, { 0 }}, + { 45, 0, 5, 6, { 0 }}, + { 46, 0, 7, 3, { 0 }}, + { 47, 0, 2, 8, { 0 }}, + { 48, 0, 3, 8, { 0 }}, + { 49, 0, 3, 7, { 0 }}, + { 50, 0, 3, 7, { 0 }}, + { 51, 0, 3, 7, { 0 }}, + { 52, 0, 3, 7, { 0 }}, + { 53, 0, 3, 7, { 0 }}, + { 54, 0, 3, 7, { 0 }}, + { 55, 0, 3, 7, { 0 }}, + { 56, 0, 3, 7, { 0 }}, + { 57, 0, 3, 7, { 0 }}, + { 58, 0, 4, 3, { 0 }}, + { 59, 0, 4, 3, { 0 }}, + { 60, 0, 3, 4, { 0 }}, + { 61, 0, 4, 6, { 0 }}, + { 62, 0, 3, 4, { 0 }}, + { 63, 0, 2, 7, { 0 }}, + { 64, 0, 2, 8, { 0 }}, + { 65, 0, 2, 7, { 0 }}, + { 66, 0, 2, 7, { 0 }}, + { 67, 0, 2, 7, { 0 }}, + { 68, 0, 2, 7, { 0 }}, + { 69, 0, 2, 7, { 0 }}, + { 70, 0, 2, 7, { 0 }}, + { 71, 0, 2, 7, { 0 }}, + { 72, 0, 2, 7, { 0 }}, + { 73, 0, 2, 7, { 0 }}, + { 74, 0, 2, 7, { 0 }}, + { 75, 0, 2, 7, { 0 }}, + { 76, 0, 2, 7, { 0 }}, + { 77, 0, 2, 8, { 0 }}, + { 78, 0, 2, 7, { 0 }}, + { 79, 0, 2, 7, { 0 }}, + { 80, 0, 2, 7, { 0 }}, + { 81, 0, 2, 7, { 0 }}, + { 82, 0, 2, 7, { 0 }}, + { 83, 0, 2, 7, { 0 }}, + { 84, 0, 2, 7, { 0 }}, + { 85, 0, 2, 7, { 0 }}, + { 86, 0, 2, 7, { 0 }}, + { 87, 0, 2, 8, { 0 }}, + { 88, 0, 2, 7, { 0 }}, + { 89, 0, 2, 7, { 0 }}, + { 90, 0, 2, 7, { 0 }}, + { 91, 0, 2, 5, { 0 }}, + { 92, 0, 2, 8, { 0 }}, + { 93, 0, 2, 5, { 0 }}, + { 94, 0, -1, 5, { 0 }}, + { 95, 0, 10, 7, { 0 }}, + { 96, 0, -1, 3, { 0 }}, + { 97, 0, 4, 7, { 0 }}, + { 98, 0, 2, 7, { 0 }}, + { 99, 0, 4, 7, { 0 }}, + { 100, 0, 2, 7, { 0 }}, + { 101, 0, 4, 7, { 0 }}, + { 102, 0, 2, 7, { 0 }}, + { 103, 0, 4, 7, { 0 }}, + { 104, 0, 2, 7, { 0 }}, + { 105, 0, 2, 7, { 0 }}, + { 106, 0, 2, 6, { 0 }}, + { 107, 0, 2, 7, { 0 }}, + { 108, 0, 2, 7, { 0 }}, + { 109, 0, 4, 8, { 0 }}, + { 110, 0, 4, 7, { 0 }}, + { 111, 0, 4, 7, { 0 }}, + { 112, 0, 4, 7, { 0 }}, + { 113, 0, 4, 7, { 0 }}, + { 114, 0, 4, 7, { 0 }}, + { 115, 0, 4, 7, { 0 }}, + { 116, 0, 3, 7, { 0 }}, + { 117, 0, 4, 7, { 0 }}, + { 118, 0, 4, 7, { 0 }}, + { 119, 0, 4, 8, { 0 }}, + { 120, 0, 4, 7, { 0 }}, + { 121, 0, 4, 7, { 0 }}, + { 122, 0, 4, 7, { 0 }}, + { 123, 0, 2, 5, { 0 }}, + { 124, 0, 2, 3, { 0 }}, + { 125, 0, 2, 5, { 0 }}, + { 126, 0, -1, 6, { 0 }}, + { 161, 0, 2, 3, { 0 }}, + { 162, 0, 3, 7, { 0 }}, + { 163, 0, 2, 7, { 0 }}, + { 8364, 0, 2, 7, { 0 }}, + { 165, 0, 2, 7, { 0 }}, + { 352, 0, 0, 0, { 0 }}, + { 167, 0, 1, 7, { 0 }}, + { 353, 0, 0, 0, { 0 }}, + { 169, 0, 2, 8, { 0 }}, + { 170, 0, 1, 8, { 0 }}, + { 171, 0, 3, 7, { 0 }}, + { 172, 0, 1, 8, { 0 }}, + { 174, 0, 2, 8, { 0 }}, + { 175, 0, 1, 8, { 0 }}, + { 176, 0, 1, 2, { 0 }}, + { 177, 0, 1, 8, { 0 }}, + { 178, 0, 1, 8, { 0 }}, + { 179, 0, 1, 8, { 0 }}, + { 381, 0, 0, 0, { 0 }}, + { 181, 0, 4, 7, { 0 }}, + { 182, 0, 1, 4, { 0 }}, + { 183, 0, 4, 4, { 0 }}, + { 382, 0, 0, 0, { 0 }}, + { 185, 0, 1, 8, { 0 }}, + { 186, 0, 1, 8, { 0 }}, + { 187, 0, 3, 7, { 0 }}, + { 338, 0, 2, 11, { 0 }}, + { 339, 0, 4, 11, { 0 }}, + { 376, 0, 0, 0, { 0 }}, + { 191, 0, 2, 7, { 0 }}, + { 192, 0, -1, 7, { 0 }}, + { 193, 0, -1, 7, { 0 }}, + { 194, 0, -1, 7, { 0 }}, + { 195, 0, -1, 7, { 0 }}, + { 196, 0, -1, 7, { 0 }}, + { 197, 0, -1, 7, { 0 }}, + { 198, 0, 2, 11, { 0 }}, + { 199, 0, 2, 7, { 0 }}, + { 200, 0, -1, 7, { 0 }}, + { 201, 0, -1, 7, { 0 }}, + { 202, 0, -1, 7, { 0 }}, + { 203, 0, -1, 7, { 0 }}, + { 204, 0, -1, 7, { 0 }}, + { 205, 0, -1, 7, { 0 }}, + { 206, 0, -1, 7, { 0 }}, + { 207, 0, -1, 7, { 0 }}, + { 208, 0, 2, 7, { 0 }}, + { 209, 0, -1, 7, { 0 }}, + { 210, 0, -1, 7, { 0 }}, + { 211, 0, -1, 7, { 0 }}, + { 212, 0, -1, 7, { 0 }}, + { 213, 0, -1, 7, { 0 }}, + { 214, 0, -1, 7, { 0 }}, + { 215, 0, 3, 7, { 0 }}, + { 216, 0, 2, 7, { 0 }}, + { 217, 0, -1, 7, { 0 }}, + { 218, 0, -1, 7, { 0 }}, + { 219, 0, -1, 7, { 0 }}, + { 220, 0, -1, 7, { 0 }}, + { 221, 0, -1, 7, { 0 }}, + { 222, 0, 2, 7, { 0 }}, + { 223, 0, 2, 7, { 0 }}, + { 224, 0, 1, 7, { 0 }}, + { 225, 0, 1, 7, { 0 }}, + { 226, 0, 1, 7, { 0 }}, + { 227, 0, 1, 7, { 0 }}, + { 228, 0, 1, 7, { 0 }}, + { 229, 0, 1, 7, { 0 }}, + { 230, 0, 4, 10, { 0 }}, + { 231, 0, 4, 7, { 0 }}, + { 232, 0, 1, 7, { 0 }}, + { 233, 0, 1, 7, { 0 }}, + { 234, 0, 1, 7, { 0 }}, + { 235, 0, 1, 7, { 0 }}, + { 236, 0, 1, 7, { 0 }}, + { 237, 0, 1, 7, { 0 }}, + { 238, 0, 1, 7, { 0 }}, + { 239, 0, 1, 7, { 0 }}, + { 240, 0, 2, 7, { 0 }}, + { 241, 0, 1, 7, { 0 }}, + { 242, 0, 1, 7, { 0 }}, + { 243, 0, 1, 7, { 0 }}, + { 244, 0, 1, 7, { 0 }}, + { 245, 0, 1, 7, { 0 }}, + { 246, 0, 1, 7, { 0 }}, + { 247, 0, 3, 6, { 0 }}, + { 248, 0, 4, 7, { 0 }}, + { 249, 0, 1, 7, { 0 }}, + { 250, 0, 1, 7, { 0 }}, + { 251, 0, 1, 7, { 0 }}, + { 252, 0, 1, 7, { 0 }}, + { 253, 0, 1, 7, { 0 }}, + { 254, 0, 2, 7, { 0 }}, + { 255, 0, 1, 7, { 0 }}, +}; + +// Style loading function: Jungle +static void GuiLoadStyleJungle(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < JUNGLE_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(jungleStyleProps[i].controlId, jungleStyleProps[i].propertyId, jungleStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int jungleFontDataSize = 0; + unsigned char *data = DecompressData(jungleFontData, JUNGLE_STYLE_FONT_ATLAS_COMP_SIZE, &jungleFontDataSize); + Image imFont = { data, 256, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 12; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, jungleFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, jungleFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 254, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/jungle/style_jungle.png b/include/styles/jungle/style_jungle.png new file mode 100644 index 0000000..61d93f9 Binary files /dev/null and b/include/styles/jungle/style_jungle.png differ diff --git a/include/styles/jungle/style_jungle.rgs b/include/styles/jungle/style_jungle.rgs new file mode 100644 index 0000000..843867c Binary files /dev/null and b/include/styles/jungle/style_jungle.rgs differ diff --git a/include/styles/jungle/style_jungle.txt.rgs b/include/styles/jungle/style_jungle.txt.rgs new file mode 100644 index 0000000..6901b7d --- /dev/null +++ b/include/styles/jungle/style_jungle.txt.rgs @@ -0,0 +1,27 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 12 charset.txt Pixel Intv.otf +p 00 00 0x60827dff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0x2c3334ff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0x82a29fff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0x5f9aa8ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0x334e57ff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0x6aa9b8ff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0xa9cb8dff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0x3b6357ff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0x97af81ff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0x5b6462ff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0x2c3334ff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x666b69ff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x0000000c TEXT_SIZE +p 00 17 0x00000000 TEXT_SPACING +p 00 18 0x638465ff LINE_COLOR +p 00 19 0x2b3a3aff BACKGROUND_COLOR +p 00 20 0x00000012 TEXT_LINE_SPACING diff --git a/include/styles/lavanda/Cartridge.ttf b/include/styles/lavanda/Cartridge.ttf new file mode 100644 index 0000000..19d7280 Binary files /dev/null and b/include/styles/lavanda/Cartridge.ttf differ diff --git a/include/styles/lavanda/README.md b/include/styles/lavanda/README.md new file mode 100644 index 0000000..8d45c03 --- /dev/null +++ b/include/styles/lavanda/README.md @@ -0,0 +1,27 @@ +## style: lavanda + +Walk thought the fields full of lavanda, feels like a dream, a touch of fantasy, just relax and close your eyes, could you feel it? + +![lavanda style table](style_lavanda.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_lavanda.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_lavanda.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_lavanda.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_lavanda.h` | Embeddable style as code file, self-contained, includes font data | +| `style_lavanda.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![lavanda style screen](screenshot.png) + +## about font + +"Cartridge" font by [jeti](https://fontenddev.com/) + +Licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), downloaded from dafont.com: [cartridge](https://www.dafont.com/cartridge.font) diff --git a/include/styles/lavanda/charset.txt b/include/styles/lavanda/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/lavanda/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/lavanda/font_readme.txt b/include/styles/lavanda/font_readme.txt new file mode 100644 index 0000000..c9ff454 --- /dev/null +++ b/include/styles/lavanda/font_readme.txt @@ -0,0 +1,6 @@ +Cartridge by jeti: A decorative, Art Nouveau-inspired font with a dainty, fantastical hand-lettered feel. + +You are free to use this font for personal or commercial projects, all I ask is that you include credit. + +Licensed under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/ +More info: https://fontenddev.com/fonts/cartridge/ diff --git a/include/styles/lavanda/screenshot.old.png b/include/styles/lavanda/screenshot.old.png new file mode 100644 index 0000000..f787e0f Binary files /dev/null and b/include/styles/lavanda/screenshot.old.png differ diff --git a/include/styles/lavanda/screenshot.png b/include/styles/lavanda/screenshot.png new file mode 100644 index 0000000..544b3d1 Binary files /dev/null and b/include/styles/lavanda/screenshot.png differ diff --git a/include/styles/lavanda/style_lavanda.h b/include/styles/lavanda/style_lavanda.h new file mode 100644 index 0000000..0f79f1d --- /dev/null +++ b/include/styles/lavanda/style_lavanda.h @@ -0,0 +1,607 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleLavanda(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define LAVANDA_STYLE_PROPS_COUNT 16 + +// Custom style name: Lavanda +static const GuiStyleProp lavandaStyleProps[LAVANDA_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0xab9bd3ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x3e4350ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0xdadaf4ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xee84a0ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0xf4b7c7ff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0xb7657bff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0xd5c8dbff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0x966ec0ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0xd7ccf7ff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x8fa2bdff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x6b798dff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x8292a9ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x00000010 }, // DEFAULT_TEXT_SIZE + { 0, 18, (int)0x84adb7ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x5b5b81ff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000018 }, // DEFAULT_TEXT_LINE_SPACING +}; + +// WARNING: This style uses a custom font: "Cartridge.ttf" (size: 16, spacing: 1) + +#define LAVANDA_STYLE_FONT_ATLAS_COMP_SIZE 2636 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char lavandaFontData[LAVANDA_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0xdb, 0xd2, 0xa4, 0xba, 0x0d, 0x06, 0x50, 0xde, 0xff, 0xa5, 0xbf, 0x5c, 0xa4, 0x52, 0x49, 0xaa, 0x66, 0x63, 0x24, + 0x0b, 0x9a, 0xee, 0x59, 0xb3, 0xee, 0x7e, 0xa6, 0x4f, 0x06, 0xf9, 0x04, 0x96, 0x73, 0x00, 0x00, 0x00, 0x00, 0x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3a, 0xfe, 0x7f, 0x57, 0xfc, 0xcf, 0xde, 0x01, 0xc9, 0xf2, 0x1e, 0x67, + 0x2d, 0xca, 0xd3, 0xb8, 0xd3, 0x98, 0xe2, 0x6e, 0x6a, 0xef, 0x79, 0xfe, 0x27, 0xcd, 0xd1, 0x49, 0x35, 0x1e, 0xef, 0x39, + 0x76, 0xcf, 0xac, 0x6b, 0xca, 0x73, 0x8a, 0x19, 0xb9, 0xce, 0x9f, 0xcc, 0xba, 0xbb, 0x1a, 0xc5, 0x3d, 0xff, 0xeb, 0x77, + 0xef, 0xa7, 0x66, 0xe8, 0xc8, 0xe4, 0xb3, 0x44, 0x6f, 0x79, 0x3a, 0x60, 0xfa, 0x1e, 0xda, 0x37, 0xe4, 0x21, 0xce, 0xcf, + 0x67, 0x4c, 0xbf, 0xef, 0xa9, 0x01, 0xee, 0xed, 0xe9, 0x7d, 0xcf, 0xb3, 0xc1, 0x88, 0x7e, 0xd6, 0xcf, 0xa8, 0xfc, 0xe6, + 0xef, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0xa6, 0xfd, 0xfb, 0x9f, 0x72, 0x00, 0xf1, 0x0f, 0xfc, 0x75, 0xf1, 0xff, 0x2f }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle lavandaFontRecs[189] = { + { 4, 4, 5 , 16 }, + { 17, 4, 1 , 9 }, + { 26, 4, 3 , 3 }, + { 37, 4, 7 , 8 }, + { 52, 4, 5 , 11 }, + { 65, 4, 10 , 8 }, + { 83, 4, 7 , 9 }, + { 98, 4, 1 , 3 }, + { 107, 4, 3 , 12 }, + { 118, 4, 3 , 12 }, + { 129, 4, 5 , 4 }, + { 142, 4, 5 , 5 }, + { 155, 4, 2 , 3 }, + { 165, 4, 3 , 1 }, + { 176, 4, 1 , 1 }, + { 185, 4, 4 , 12 }, + { 197, 4, 5 , 9 }, + { 210, 4, 3 , 9 }, + { 221, 4, 5 , 9 }, + { 234, 4, 5 , 9 }, + { 247, 4, 5 , 9 }, + { 260, 4, 5 , 9 }, + { 273, 4, 5 , 9 }, + { 286, 4, 5 , 9 }, + { 299, 4, 5 , 9 }, + { 312, 4, 5 , 9 }, + { 325, 4, 1 , 4 }, + { 334, 4, 2 , 6 }, + { 344, 4, 4 , 5 }, + { 356, 4, 4 , 3 }, + { 368, 4, 4 , 5 }, + { 380, 4, 5 , 9 }, + { 393, 4, 7 , 10 }, + { 408, 4, 7 , 9 }, + { 423, 4, 6 , 9 }, + { 437, 4, 5 , 9 }, + { 450, 4, 6 , 9 }, + { 464, 4, 5 , 9 }, + { 477, 4, 5 , 9 }, + { 490, 4, 6 , 9 }, + { 4, 28, 5 , 10 }, + { 17, 28, 1 , 9 }, + { 26, 28, 6 , 9 }, + { 40, 28, 6 , 9 }, + { 54, 28, 5 , 9 }, + { 67, 28, 8 , 11 }, + { 83, 28, 6 , 10 }, + { 97, 28, 7 , 9 }, + { 112, 28, 5 , 9 }, + { 125, 28, 7 , 11 }, + { 140, 28, 5 , 9 }, + { 153, 28, 6 , 9 }, + { 167, 28, 7 , 9 }, + { 182, 28, 6 , 9 }, + { 196, 28, 6 , 10 }, + { 210, 28, 9 , 10 }, + { 227, 28, 6 , 11 }, + { 241, 28, 5 , 10 }, + { 254, 28, 5 , 9 }, + { 267, 28, 3 , 12 }, + { 278, 28, 4 , 12 }, + { 290, 28, 3 , 12 }, + { 301, 28, 5 , 4 }, + { 314, 28, 6 , 1 }, + { 328, 28, 3 , 3 }, + { 339, 28, 6 , 7 }, + { 353, 28, 5 , 9 }, + { 366, 28, 4 , 7 }, + { 378, 28, 5 , 10 }, + { 391, 28, 4 , 7 }, + { 403, 28, 3 , 10 }, + { 414, 28, 4 , 11 }, + { 426, 28, 5 , 11 }, + { 439, 28, 1 , 9 }, + { 448, 28, 5 , 12 }, + { 461, 28, 5 , 9 }, + { 474, 28, 1 , 9 }, + { 483, 28, 8 , 9 }, + { 4, 52, 5 , 9 }, + { 17, 52, 4 , 7 }, + { 29, 52, 5 , 10 }, + { 42, 52, 5 , 10 }, + { 55, 52, 5 , 7 }, + { 68, 52, 5 , 7 }, + { 81, 52, 3 , 9 }, + { 92, 52, 5 , 7 }, + { 105, 52, 5 , 8 }, + { 118, 52, 9 , 8 }, + { 135, 52, 5 , 9 }, + { 148, 52, 6 , 9 }, + { 162, 52, 4 , 7 }, + { 174, 52, 5 , 12 }, + { 187, 52, 1 , 12 }, + { 196, 52, 5 , 12 }, + { 209, 52, 6 , 2 }, + { 223, 52, 1 , 9 }, + { 232, 52, 5 , 10 }, + { 245, 52, 6 , 9 }, + { 259, 52, 7 , 9 }, + { 274, 52, 5 , 9 }, + { 287, 52, 6 , 12 }, + { 301, 52, 5 , 10 }, + { 314, 52, 5 , 10 }, + { 327, 52, 8 , 8 }, + { 343, 52, 4 , 7 }, + { 355, 52, 6 , 5 }, + { 369, 52, 6 , 3 }, + { 383, 52, 8 , 8 }, + { 399, 52, 5 , 1 }, + { 412, 52, 4 , 4 }, + { 424, 52, 5 , 7 }, + { 437, 52, 3 , 4 }, + { 448, 52, 3 , 4 }, + { 459, 52, 5 , 12 }, + { 472, 52, 5 , 10 }, + { 485, 52, 7 , 11 }, + { 500, 52, 1 , 1 }, + { 4, 76, 4 , 10 }, + { 16, 76, 2 , 4 }, + { 26, 76, 4 , 7 }, + { 38, 76, 6 , 5 }, + { 52, 76, 11 , 9 }, + { 71, 76, 7 , 7 }, + { 86, 76, 5 , 12 }, + { 99, 76, 5 , 9 }, + { 112, 76, 7 , 12 }, + { 127, 76, 7 , 12 }, + { 142, 76, 7 , 12 }, + { 157, 76, 7 , 12 }, + { 172, 76, 7 , 11 }, + { 187, 76, 7 , 12 }, + { 202, 76, 10 , 9 }, + { 220, 76, 5 , 12 }, + { 233, 76, 5 , 12 }, + { 246, 76, 5 , 12 }, + { 259, 76, 5 , 12 }, + { 272, 76, 5 , 11 }, + { 285, 76, 2 , 12 }, + { 295, 76, 2 , 12 }, + { 305, 76, 3 , 12 }, + { 316, 76, 3 , 11 }, + { 327, 76, 7 , 9 }, + { 342, 76, 6 , 12 }, + { 356, 76, 7 , 12 }, + { 371, 76, 7 , 12 }, + { 386, 76, 7 , 12 }, + { 401, 76, 7 , 12 }, + { 416, 76, 7 , 11 }, + { 431, 76, 5 , 5 }, + { 444, 76, 7 , 9 }, + { 459, 76, 6 , 12 }, + { 473, 76, 6 , 12 }, + { 487, 76, 6 , 12 }, + { 4, 100, 6 , 11 }, + { 18, 100, 5 , 13 }, + { 31, 100, 5 , 9 }, + { 44, 100, 5 , 11 }, + { 57, 100, 6 , 10 }, + { 71, 100, 6 , 10 }, + { 85, 100, 6 , 10 }, + { 99, 100, 6 , 10 }, + { 113, 100, 6 , 9 }, + { 127, 100, 6 , 11 }, + { 141, 100, 7 , 7 }, + { 156, 100, 4 , 10 }, + { 168, 100, 4 , 10 }, + { 180, 100, 4 , 10 }, + { 192, 100, 4 , 10 }, + { 204, 100, 4 , 9 }, + { 216, 100, 2 , 10 }, + { 226, 100, 2 , 10 }, + { 236, 100, 3 , 10 }, + { 247, 100, 3 , 9 }, + { 258, 100, 5 , 9 }, + { 271, 100, 5 , 12 }, + { 284, 100, 4 , 10 }, + { 296, 100, 4 , 10 }, + { 308, 100, 4 , 10 }, + { 320, 100, 5 , 10 }, + { 333, 100, 4 , 9 }, + { 345, 100, 5 , 5 }, + { 358, 100, 6 , 7 }, + { 372, 100, 5 , 10 }, + { 385, 100, 5 , 10 }, + { 398, 100, 5 , 10 }, + { 411, 100, 5 , 9 }, + { 424, 100, 6 , 12 }, + { 438, 100, 5 , 12 }, + { 451, 100, 6 , 11 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo lavandaFontGlyphs[189] = { + { 32, 0, 0, 5, { 0 }}, + { 33, 0, 3, 2, { 0 }}, + { 34, 0, 3, 4, { 0 }}, + { 35, 0, 3, 8, { 0 }}, + { 36, 0, 2, 6, { 0 }}, + { 37, 0, 4, 11, { 0 }}, + { 38, 0, 3, 8, { 0 }}, + { 39, 0, 3, 2, { 0 }}, + { 40, 0, 2, 4, { 0 }}, + { 41, 0, 2, 4, { 0 }}, + { 42, 0, 3, 6, { 0 }}, + { 43, 0, 5, 6, { 0 }}, + { 44, 0, 10, 3, { 0 }}, + { 45, 0, 7, 4, { 0 }}, + { 46, 0, 11, 2, { 0 }}, + { 47, 0, 2, 5, { 0 }}, + { 48, 0, 3, 6, { 0 }}, + { 49, 0, 3, 4, { 0 }}, + { 50, 0, 3, 6, { 0 }}, + { 51, 0, 3, 6, { 0 }}, + { 52, 0, 3, 6, { 0 }}, + { 53, 0, 3, 6, { 0 }}, + { 54, 0, 3, 6, { 0 }}, + { 55, 0, 3, 6, { 0 }}, + { 56, 0, 3, 6, { 0 }}, + { 57, 0, 3, 6, { 0 }}, + { 58, 0, 7, 2, { 0 }}, + { 59, 0, 7, 3, { 0 }}, + { 60, 0, 5, 5, { 0 }}, + { 61, 0, 6, 5, { 0 }}, + { 62, 0, 5, 5, { 0 }}, + { 63, 0, 3, 6, { 0 }}, + { 64, 0, 4, 8, { 0 }}, + { 65, 0, 3, 8, { 0 }}, + { 66, 0, 3, 7, { 0 }}, + { 67, 0, 3, 6, { 0 }}, + { 68, 0, 3, 7, { 0 }}, + { 69, 0, 3, 6, { 0 }}, + { 70, 0, 3, 6, { 0 }}, + { 71, 0, 3, 7, { 0 }}, + { 72, 0, 2, 6, { 0 }}, + { 73, 0, 3, 2, { 0 }}, + { 74, 0, 3, 7, { 0 }}, + { 75, 0, 3, 7, { 0 }}, + { 76, 0, 3, 6, { 0 }}, + { 77, 0, 3, 9, { 0 }}, + { 78, 0, 2, 7, { 0 }}, + { 79, 0, 3, 8, { 0 }}, + { 80, 0, 3, 6, { 0 }}, + { 81, 0, 3, 8, { 0 }}, + { 82, 0, 3, 6, { 0 }}, + { 83, 0, 3, 7, { 0 }}, + { 84, 0, 3, 8, { 0 }}, + { 85, 0, 3, 7, { 0 }}, + { 86, 0, 2, 7, { 0 }}, + { 87, 0, 2, 10, { 0 }}, + { 88, 0, 3, 7, { 0 }}, + { 89, 0, 3, 6, { 0 }}, + { 90, 0, 3, 6, { 0 }}, + { 91, 0, 2, 4, { 0 }}, + { 92, 0, 2, 5, { 0 }}, + { 93, 0, 2, 4, { 0 }}, + { 94, 0, 3, 6, { 0 }}, + { 95, 0, 13, 7, { 0 }}, + { 96, 0, 3, 4, { 0 }}, + { 97, 0, 5, 7, { 0 }}, + { 98, 0, 3, 6, { 0 }}, + { 99, 0, 5, 5, { 0 }}, + { 100, 0, 2, 6, { 0 }}, + { 101, 0, 5, 5, { 0 }}, + { 102, 0, 2, 4, { 0 }}, + { 103, 0, 4, 5, { 0 }}, + { 104, 0, 3, 6, { 0 }}, + { 105, 0, 3, 2, { 0 }}, + { 106, -1, 3, 5, { 0 }}, + { 107, 0, 3, 6, { 0 }}, + { 108, 0, 3, 2, { 0 }}, + { 109, 0, 5, 9, { 0 }}, + { 110, 0, 5, 6, { 0 }}, + { 111, 0, 5, 5, { 0 }}, + { 112, 0, 5, 6, { 0 }}, + { 113, 0, 5, 6, { 0 }}, + { 114, 0, 5, 6, { 0 }}, + { 115, 0, 5, 6, { 0 }}, + { 116, 0, 3, 4, { 0 }}, + { 117, 0, 5, 6, { 0 }}, + { 118, 0, 4, 6, { 0 }}, + { 119, 0, 4, 10, { 0 }}, + { 120, 0, 5, 6, { 0 }}, + { 121, -1, 5, 6, { 0 }}, + { 122, 0, 5, 5, { 0 }}, + { 123, 0, 2, 6, { 0 }}, + { 124, 0, 2, 2, { 0 }}, + { 125, 0, 2, 6, { 0 }}, + { 126, 0, 7, 7, { 0 }}, + { 161, 0, 5, 2, { 0 }}, + { 162, 0, 4, 6, { 0 }}, + { 163, 0, 3, 7, { 0 }}, + { 8364, 0, 3, 8, { 0 }}, + { 165, 0, 3, 6, { 0 }}, + { 352, 0, 0, 7, { 0 }}, + { 167, 0, 3, 6, { 0 }}, + { 353, 0, 2, 6, { 0 }}, + { 169, 0, 4, 9, { 0 }}, + { 170, 0, 3, 5, { 0 }}, + { 171, 0, 6, 7, { 0 }}, + { 172, 0, 6, 7, { 0 }}, + { 174, 0, 4, 9, { 0 }}, + { 175, 0, 2, 6, { 0 }}, + { 176, 0, 3, 5, { 0 }}, + { 177, 0, 5, 6, { 0 }}, + { 178, 0, 3, 4, { 0 }}, + { 179, 0, 3, 4, { 0 }}, + { 381, 0, 0, 6, { 0 }}, + { 181, 0, 5, 6, { 0 }}, + { 182, 0, 3, 8, { 0 }}, + { 183, 0, 7, 2, { 0 }}, + { 382, 0, 2, 5, { 0 }}, + { 185, 0, 3, 3, { 0 }}, + { 186, 0, 3, 5, { 0 }}, + { 187, 0, 6, 7, { 0 }}, + { 338, 0, 3, 12, { 0 }}, + { 339, 0, 5, 8, { 0 }}, + { 376, 0, 1, 6, { 0 }}, + { 191, 0, 5, 6, { 0 }}, + { 192, 0, 0, 8, { 0 }}, + { 193, 0, 0, 8, { 0 }}, + { 194, 0, 0, 8, { 0 }}, + { 195, 0, 0, 8, { 0 }}, + { 196, 0, 1, 8, { 0 }}, + { 197, 0, 0, 8, { 0 }}, + { 198, 0, 3, 11, { 0 }}, + { 199, 0, 3, 6, { 0 }}, + { 200, 0, 0, 6, { 0 }}, + { 201, 0, 0, 6, { 0 }}, + { 202, 0, 0, 6, { 0 }}, + { 203, 0, 1, 6, { 0 }}, + { 204, -1, 0, 2, { 0 }}, + { 205, 0, 0, 3, { 0 }}, + { 206, -1, 0, 3, { 0 }}, + { 207, -1, 1, 3, { 0 }}, + { 208, -1, 3, 7, { 0 }}, + { 209, 0, 0, 7, { 0 }}, + { 210, 0, 0, 8, { 0 }}, + { 211, 0, 0, 8, { 0 }}, + { 212, 0, 0, 8, { 0 }}, + { 213, 0, 0, 8, { 0 }}, + { 214, 0, 1, 8, { 0 }}, + { 215, 0, 5, 6, { 0 }}, + { 216, 0, 3, 8, { 0 }}, + { 217, 0, 0, 7, { 0 }}, + { 218, 0, 0, 7, { 0 }}, + { 219, 0, 0, 7, { 0 }}, + { 220, 0, 1, 7, { 0 }}, + { 221, 0, 0, 6, { 0 }}, + { 222, 0, 3, 6, { 0 }}, + { 223, 0, 3, 6, { 0 }}, + { 224, 0, 2, 7, { 0 }}, + { 225, 0, 2, 7, { 0 }}, + { 226, 0, 2, 7, { 0 }}, + { 227, 0, 2, 7, { 0 }}, + { 228, 0, 3, 7, { 0 }}, + { 229, 0, 1, 7, { 0 }}, + { 230, 0, 5, 8, { 0 }}, + { 231, 0, 5, 5, { 0 }}, + { 232, 0, 2, 5, { 0 }}, + { 233, 0, 2, 5, { 0 }}, + { 234, 0, 2, 5, { 0 }}, + { 235, 0, 3, 5, { 0 }}, + { 236, -1, 2, 2, { 0 }}, + { 237, 0, 2, 3, { 0 }}, + { 238, -1, 2, 3, { 0 }}, + { 239, -1, 3, 3, { 0 }}, + { 240, 0, 3, 6, { 0 }}, + { 241, 0, 2, 6, { 0 }}, + { 242, 0, 2, 5, { 0 }}, + { 243, 0, 2, 5, { 0 }}, + { 244, 0, 2, 5, { 0 }}, + { 245, 0, 2, 6, { 0 }}, + { 246, 0, 3, 5, { 0 }}, + { 247, 0, 5, 6, { 0 }}, + { 248, -1, 5, 6, { 0 }}, + { 249, 0, 2, 6, { 0 }}, + { 250, 0, 2, 6, { 0 }}, + { 251, 0, 2, 6, { 0 }}, + { 252, 0, 3, 6, { 0 }}, + { 253, -1, 2, 6, { 0 }}, + { 254, 0, 3, 6, { 0 }}, + { 255, -1, 3, 6, { 0 }}, +}; + +// Style loading function: Lavanda +static void GuiLoadStyleLavanda(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < LAVANDA_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(lavandaStyleProps[i].controlId, lavandaStyleProps[i].propertyId, lavandaStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int lavandaFontDataSize = 0; + unsigned char *data = DecompressData(lavandaFontData, LAVANDA_STYLE_FONT_ATLAS_COMP_SIZE, &lavandaFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 16; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, lavandaFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, lavandaFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/lavanda/style_lavanda.png b/include/styles/lavanda/style_lavanda.png new file mode 100644 index 0000000..e554e71 Binary files /dev/null and b/include/styles/lavanda/style_lavanda.png differ diff --git a/include/styles/lavanda/style_lavanda.rgs b/include/styles/lavanda/style_lavanda.rgs new file mode 100644 index 0000000..1a28c1c Binary files /dev/null and b/include/styles/lavanda/style_lavanda.rgs differ diff --git a/include/styles/lavanda/style_lavanda.txt.rgs b/include/styles/lavanda/style_lavanda.txt.rgs new file mode 100644 index 0000000..33ee9bd --- /dev/null +++ b/include/styles/lavanda/style_lavanda.txt.rgs @@ -0,0 +1,26 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 16 charset.txt Cartridge.ttf +p 00 00 0xab9bd3ff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0x3e4350ff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0xdadaf4ff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0xee84a0ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0xf4b7c7ff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0xb7657bff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0xd5c8dbff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0x966ec0ff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0xd7ccf7ff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0x8fa2bdff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0x6b798dff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x8292a9ff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x00000010 TEXT_SIZE +p 00 18 0x84adb7ff LINE_COLOR +p 00 19 0x5b5b81ff BACKGROUND_COLOR +p 00 20 0x00000018 TEXT_LINE_SPACING diff --git a/include/styles/rltech/2a03_memesbruh03.ttf b/include/styles/rltech/2a03_memesbruh03.ttf new file mode 100644 index 0000000..71f6e9d Binary files /dev/null and b/include/styles/rltech/2a03_memesbruh03.ttf differ diff --git a/include/styles/rltech/font_readme.txt b/include/styles/rltech/font_readme.txt new file mode 100644 index 0000000..7689af6 --- /dev/null +++ b/include/styles/rltech/font_readme.txt @@ -0,0 +1,10 @@ + +Every font made by MB03 is 100% free for personal & commercial use. +Including the font(s) in this archive. + + + +~ memesbruh03~ + +For more cool things, go to...: +https://memesbruh03.neocities.org/ \ No newline at end of file diff --git a/include/styles/rltech/screenshot.old.png b/include/styles/rltech/screenshot.old.png new file mode 100644 index 0000000..1b6d207 Binary files /dev/null and b/include/styles/rltech/screenshot.old.png differ diff --git a/include/styles/rltech/screenshot.png b/include/styles/rltech/screenshot.png new file mode 100644 index 0000000..5167ba7 Binary files /dev/null and b/include/styles/rltech/screenshot.png differ diff --git a/include/styles/rltech/style_rltech.h b/include/styles/rltech/style_rltech.h new file mode 100644 index 0000000..4bdf0e6 --- /dev/null +++ b/include/styles/rltech/style_rltech.h @@ -0,0 +1,572 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleRLTech(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define RLTECH_STYLE_PROPS_COUNT 15 + +// Custom style name: RLTech +static const GuiStyleProp rltechStyleProps[RLTECH_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x000000ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0xf5f5f5ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0x000000ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xe10000ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0xffffffff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0xed0000ff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0xed0000ff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0x0f0f0fff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0xff2323ff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0xcacacaff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0xe3e3e3ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0xb3b3b3ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x00000010 }, // DEFAULT_TEXT_SIZE + { 0, 18, (int)0x352c2cff }, // DEFAULT_LINE_COLOR + { 0, 20, (int)0x00000018 }, // DEFAULT_TEXT_LINE_SPACING +}; + +// WARNING: This style uses a custom font: "2a03.ttf" (size: 16, spacing: 1) + +#define RLTECH_STYLE_FONT_ATLAS_COMP_SIZE 1950 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char rltechFontData[RLTECH_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0xcb, 0x76, 0xc3, 0x2a, 0x12, 0x05, 0x50, 0xfe, 0xff, 0xa7, 0xab, 0x07, 0x77, 0xd0, 0x8f, 0xd5, 0xb1, 0xa0, 0x28, + 0x10, 0xd8, 0x3b, 0x7b, 0x16, 0xc7, 0xb6, 0x1e, 0x1c, 0x03, 0x8a, 0x29, 0x45, 0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x02, + 0x62, 0xe5, 0x7d, 0x26, 0xce, 0xae, 0xa8, 0x7d, 0xc2, 0x1d, 0x35, 0xbe, 0xeb, 0x1a, 0x40, 0x2b, 0xcb, 0xff, 0xfc, 0xab, + 0xad, 0xaf, 0x15, 0xb2, 0xae, 0xa6, 0xfe, 0x7d, 0x15, 0xf5, 0x3e, 0xdd, 0x05, 0xf0, 0xfb, 0x2a, 0x6a, 0xcb, 0xff, 0xea, + 0x9e, 0xeb, 0x9c, 0xfc, 0xef, 0xac, 0xa9, 0xa5, 0xa2, 0xae, 0xfc, 0x7f, 0xdb, 0xf8, 0xbf, 0xe2, 0x9e, 0x3a, 0xef, 0x8f, + 0x7a, 0x9b, 0xfc, 0xa7, 0xf2, 0x7f, 0x77, 0x45, 0x67, 0x89, 0x3f, 0xf9, 0x38, 0x7f, 0x5f, 0x4d, 0xdd, 0xdf, 0x49, 0x85, + 0xfc, 0xff, 0x4e, 0xfe, 0xd7, 0x54, 0x6f, 0xfc, 0xc6, 0x9a, 0xba, 0x67, 0xf7, 0x97, 0x37, 0x56, 0xd4, 0x7d, 0x7f, 0x4f, + 0x5d, 0xff, 0xbf, 0x61, 0x8e, 0x72, 0x7a, 0x4d, 0x5d, 0x15, 0x75, 0x73, 0xdb, 0xb6, 0xe6, 0x3f, 0x56, 0xc0, 0xdd, 0x57, + 0xac, 0x63, 0xe2, 0x2a, 0x37, 0xf0, 0xad, 0xf9, 0x37, 0xfe, 0x87, 0xef, 0x9f, 0xb1, 0x3a, 0x3a, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x37, 0xf8, 0xe7, 0xc7, + 0x71, 0x00, 0xf9, 0x07, 0x7e, 0x2e, 0xff, 0xff, 0x02 }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle rltechFontRecs[189] = { + { 4, 4, 5 , 16 }, + { 17, 4, 1 , 9 }, + { 26, 4, 3 , 3 }, + { 37, 4, 5 , 7 }, + { 50, 4, 5 , 9 }, + { 63, 4, 7 , 9 }, + { 78, 4, 6 , 9 }, + { 92, 4, 1 , 3 }, + { 101, 4, 2 , 13 }, + { 111, 4, 2 , 13 }, + { 121, 4, 5 , 5 }, + { 134, 4, 5 , 5 }, + { 147, 4, 1 , 2 }, + { 156, 4, 5 , 1 }, + { 169, 4, 1 , 1 }, + { 178, 4, 3 , 9 }, + { 189, 4, 5 , 9 }, + { 202, 4, 2 , 9 }, + { 212, 4, 5 , 9 }, + { 225, 4, 5 , 9 }, + { 238, 4, 5 , 9 }, + { 251, 4, 5 , 9 }, + { 264, 4, 5 , 9 }, + { 277, 4, 5 , 9 }, + { 290, 4, 5 , 9 }, + { 303, 4, 5 , 9 }, + { 316, 4, 1 , 6 }, + { 325, 4, 1 , 7 }, + { 334, 4, 3 , 5 }, + { 345, 4, 5 , 3 }, + { 358, 4, 3 , 5 }, + { 369, 4, 5 , 9 }, + { 382, 4, 8 , 9 }, + { 398, 4, 5 , 9 }, + { 411, 4, 5 , 9 }, + { 424, 4, 5 , 9 }, + { 437, 4, 5 , 9 }, + { 450, 4, 5 , 9 }, + { 463, 4, 5 , 9 }, + { 476, 4, 5 , 9 }, + { 489, 4, 5 , 9 }, + { 502, 4, 1 , 9 }, + { 4, 28, 5 , 9 }, + { 17, 28, 5 , 9 }, + { 30, 28, 5 , 9 }, + { 43, 28, 9 , 9 }, + { 60, 28, 5 , 9 }, + { 73, 28, 5 , 9 }, + { 86, 28, 5 , 9 }, + { 99, 28, 5 , 9 }, + { 112, 28, 5 , 9 }, + { 125, 28, 5 , 9 }, + { 138, 28, 5 , 9 }, + { 151, 28, 5 , 9 }, + { 164, 28, 5 , 9 }, + { 177, 28, 9 , 9 }, + { 194, 28, 5 , 9 }, + { 207, 28, 5 , 9 }, + { 220, 28, 5 , 9 }, + { 233, 28, 3 , 13 }, + { 244, 28, 3 , 9 }, + { 255, 28, 3 , 13 }, + { 266, 28, 3 , 2 }, + { 277, 28, 6 , 1 }, + { 291, 28, 2 , 2 }, + { 301, 28, 5 , 7 }, + { 314, 28, 5 , 9 }, + { 327, 28, 5 , 7 }, + { 340, 28, 5 , 9 }, + { 353, 28, 5 , 7 }, + { 366, 28, 4 , 9 }, + { 378, 28, 5 , 10 }, + { 391, 28, 5 , 9 }, + { 404, 28, 1 , 9 }, + { 413, 28, 1 , 12 }, + { 422, 28, 5 , 9 }, + { 435, 28, 1 , 9 }, + { 444, 28, 9 , 7 }, + { 461, 28, 5 , 7 }, + { 474, 28, 5 , 7 }, + { 487, 28, 5 , 10 }, + { 4, 52, 5 , 10 }, + { 17, 52, 5 , 7 }, + { 30, 52, 5 , 7 }, + { 43, 52, 4 , 9 }, + { 55, 52, 5 , 7 }, + { 68, 52, 5 , 7 }, + { 81, 52, 9 , 7 }, + { 98, 52, 5 , 7 }, + { 111, 52, 5 , 10 }, + { 124, 52, 5 , 7 }, + { 137, 52, 3 , 13 }, + { 148, 52, 1 , 13 }, + { 157, 52, 3 , 13 }, + { 168, 52, 4 , 2 }, + { 180, 52, 1 , 9 }, + { 189, 52, 5 , 7 }, + { 202, 52, 5 , 9 }, + { 215, 52, 5 , 9 }, + { 228, 52, 5 , 9 }, + { 241, 52, 5 , 12 }, + { 254, 52, 5 , 9 }, + { 267, 52, 5 , 10 }, + { 280, 52, 8 , 9 }, + { 296, 52, 4 , 7 }, + { 308, 52, 6 , 5 }, + { 322, 52, 5 , 3 }, + { 335, 52, 8 , 9 }, + { 351, 52, 6 , 1 }, + { 365, 52, 3 , 3 }, + { 376, 52, 5 , 7 }, + { 389, 52, 4 , 5 }, + { 401, 52, 4 , 5 }, + { 413, 52, 5 , 12 }, + { 426, 52, 5 , 10 }, + { 439, 52, 6 , 9 }, + { 453, 52, 1 , 1 }, + { 462, 52, 5 , 10 }, + { 475, 52, 2 , 5 }, + { 485, 52, 4 , 7 }, + { 497, 52, 6 , 5 }, + { 4, 76, 9 , 9 }, + { 21, 76, 9 , 7 }, + { 38, 76, 5 , 11 }, + { 51, 76, 5 , 9 }, + { 64, 76, 5 , 12 }, + { 77, 76, 5 , 12 }, + { 90, 76, 5 , 12 }, + { 103, 76, 5 , 12 }, + { 116, 76, 5 , 11 }, + { 129, 76, 5 , 11 }, + { 142, 76, 9 , 9 }, + { 159, 76, 5 , 11 }, + { 172, 76, 5 , 12 }, + { 185, 76, 5 , 12 }, + { 198, 76, 5 , 12 }, + { 211, 76, 5 , 11 }, + { 224, 76, 2 , 12 }, + { 234, 76, 2 , 12 }, + { 244, 76, 3 , 12 }, + { 255, 76, 3 , 11 }, + { 266, 76, 6 , 9 }, + { 280, 76, 5 , 12 }, + { 293, 76, 5 , 12 }, + { 306, 76, 5 , 12 }, + { 319, 76, 5 , 12 }, + { 332, 76, 5 , 12 }, + { 345, 76, 5 , 11 }, + { 358, 76, 5 , 5 }, + { 371, 76, 5 , 9 }, + { 384, 76, 5 , 12 }, + { 397, 76, 5 , 12 }, + { 410, 76, 5 , 12 }, + { 423, 76, 5 , 11 }, + { 436, 76, 5 , 12 }, + { 449, 76, 5 , 9 }, + { 462, 76, 5 , 11 }, + { 475, 76, 5 , 10 }, + { 488, 76, 5 , 10 }, + { 4, 100, 5 , 10 }, + { 17, 100, 5 , 10 }, + { 30, 100, 5 , 9 }, + { 43, 100, 5 , 9 }, + { 56, 100, 9 , 7 }, + { 73, 100, 5 , 9 }, + { 86, 100, 5 , 10 }, + { 99, 100, 5 , 10 }, + { 112, 100, 5 , 10 }, + { 125, 100, 5 , 9 }, + { 138, 100, 2 , 10 }, + { 148, 100, 2 , 10 }, + { 158, 100, 3 , 10 }, + { 169, 100, 3 , 9 }, + { 180, 100, 5 , 9 }, + { 193, 100, 5 , 10 }, + { 206, 100, 5 , 10 }, + { 219, 100, 5 , 10 }, + { 232, 100, 5 , 10 }, + { 245, 100, 5 , 10 }, + { 258, 100, 5 , 9 }, + { 271, 100, 5 , 5 }, + { 284, 100, 5 , 7 }, + { 297, 100, 5 , 10 }, + { 310, 100, 5 , 10 }, + { 323, 100, 5 , 10 }, + { 336, 100, 5 , 9 }, + { 349, 100, 5 , 13 }, + { 362, 100, 5 , 13 }, + { 375, 100, 5 , 12 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo rltechFontGlyphs[189] = { + { 32, 0, 0, 5, { 0 }}, + { 33, 0, 3, 2, { 0 }}, + { 34, 0, 3, 4, { 0 }}, + { 35, 0, 3, 6, { 0 }}, + { 36, 0, 3, 6, { 0 }}, + { 37, 0, 3, 8, { 0 }}, + { 38, 0, 3, 7, { 0 }}, + { 39, 0, 3, 2, { 0 }}, + { 40, 0, 1, 2, { 0 }}, + { 41, -1, 1, 2, { 0 }}, + { 42, 0, 3, 6, { 0 }}, + { 43, 0, 5, 6, { 0 }}, + { 44, 0, 10, 2, { 0 }}, + { 45, 0, 8, 6, { 0 }}, + { 46, 0, 11, 2, { 0 }}, + { 47, 0, 3, 4, { 0 }}, + { 48, 0, 3, 6, { 0 }}, + { 49, 0, 3, 3, { 0 }}, + { 50, 0, 3, 6, { 0 }}, + { 51, 0, 3, 6, { 0 }}, + { 52, 0, 3, 6, { 0 }}, + { 53, 0, 3, 6, { 0 }}, + { 54, 0, 3, 6, { 0 }}, + { 55, 0, 3, 6, { 0 }}, + { 56, 0, 3, 6, { 0 }}, + { 57, 0, 3, 6, { 0 }}, + { 58, 0, 4, 2, { 0 }}, + { 59, 0, 4, 2, { 0 }}, + { 60, 0, 5, 4, { 0 }}, + { 61, 0, 6, 6, { 0 }}, + { 62, 0, 5, 4, { 0 }}, + { 63, 0, 3, 6, { 0 }}, + { 64, 0, 3, 9, { 0 }}, + { 65, 0, 3, 6, { 0 }}, + { 66, 0, 3, 6, { 0 }}, + { 67, 0, 3, 6, { 0 }}, + { 68, 0, 3, 6, { 0 }}, + { 69, 0, 3, 6, { 0 }}, + { 70, 0, 3, 6, { 0 }}, + { 71, 0, 3, 6, { 0 }}, + { 72, 0, 3, 6, { 0 }}, + { 73, 0, 3, 2, { 0 }}, + { 74, 0, 3, 6, { 0 }}, + { 75, 0, 3, 6, { 0 }}, + { 76, 0, 3, 6, { 0 }}, + { 77, 0, 3, 10, { 0 }}, + { 78, 0, 3, 6, { 0 }}, + { 79, 0, 3, 6, { 0 }}, + { 80, 0, 3, 6, { 0 }}, + { 81, 0, 3, 6, { 0 }}, + { 82, 0, 3, 6, { 0 }}, + { 83, 0, 3, 6, { 0 }}, + { 84, 0, 3, 6, { 0 }}, + { 85, 0, 3, 6, { 0 }}, + { 86, 0, 3, 6, { 0 }}, + { 87, 0, 3, 10, { 0 }}, + { 88, 0, 3, 6, { 0 }}, + { 89, 0, 3, 6, { 0 }}, + { 90, 0, 3, 6, { 0 }}, + { 91, 0, 1, 2, { 0 }}, + { 92, 0, 3, 4, { 0 }}, + { 93, -2, 1, 2, { 0 }}, + { 94, 0, 3, 4, { 0 }}, + { 95, 0, 12, 7, { 0 }}, + { 96, 0, 3, 3, { 0 }}, + { 97, 0, 5, 6, { 0 }}, + { 98, 0, 3, 6, { 0 }}, + { 99, 0, 5, 6, { 0 }}, + { 100, 0, 3, 6, { 0 }}, + { 101, 0, 5, 6, { 0 }}, + { 102, 0, 3, 5, { 0 }}, + { 103, 0, 5, 6, { 0 }}, + { 104, 0, 3, 6, { 0 }}, + { 105, 0, 3, 2, { 0 }}, + { 106, 0, 3, 2, { 0 }}, + { 107, 0, 3, 6, { 0 }}, + { 108, 0, 3, 2, { 0 }}, + { 109, 0, 5, 10, { 0 }}, + { 110, 0, 5, 6, { 0 }}, + { 111, 0, 5, 6, { 0 }}, + { 112, 0, 5, 6, { 0 }}, + { 113, 0, 5, 6, { 0 }}, + { 114, 0, 5, 6, { 0 }}, + { 115, 0, 5, 6, { 0 }}, + { 116, 0, 3, 5, { 0 }}, + { 117, 0, 5, 6, { 0 }}, + { 118, 0, 5, 6, { 0 }}, + { 119, 0, 5, 10, { 0 }}, + { 120, 0, 5, 6, { 0 }}, + { 121, 0, 5, 6, { 0 }}, + { 122, 0, 5, 6, { 0 }}, + { 123, 0, 1, 3, { 0 }}, + { 124, 0, 1, 2, { 0 }}, + { 125, -1, 1, 3, { 0 }}, + { 126, 0, 3, 5, { 0 }}, + { 161, 0, 6, 2, { 0 }}, + { 162, 0, 4, 6, { 0 }}, + { 163, 0, 3, 6, { 0 }}, + { 8364, 0, 3, 6, { 0 }}, + { 165, 0, 3, 6, { 0 }}, + { 352, 0, 0, 6, { 0 }}, + { 167, 0, 3, 6, { 0 }}, + { 353, 0, 2, 6, { 0 }}, + { 169, 0, 3, 9, { 0 }}, + { 170, 0, 3, 5, { 0 }}, + { 171, 0, 5, 7, { 0 }}, + { 172, 0, 6, 6, { 0 }}, + { 174, 0, 3, 9, { 0 }}, + { 175, 0, 2, 7, { 0 }}, + { 176, 0, 3, 4, { 0 }}, + { 177, 0, 4, 6, { 0 }}, + { 178, 0, 3, 5, { 0 }}, + { 179, 0, 3, 5, { 0 }}, + { 381, 0, 0, 6, { 0 }}, + { 181, 0, 5, 6, { 0 }}, + { 182, 0, 3, 7, { 0 }}, + { 183, 0, 7, 2, { 0 }}, + { 382, 0, 2, 6, { 0 }}, + { 185, 0, 3, 3, { 0 }}, + { 186, 0, 3, 5, { 0 }}, + { 187, 0, 5, 7, { 0 }}, + { 338, 0, 3, 10, { 0 }}, + { 339, 0, 5, 10, { 0 }}, + { 376, 0, 1, 6, { 0 }}, + { 191, 0, 6, 6, { 0 }}, + { 192, 0, 0, 6, { 0 }}, + { 193, 0, 0, 6, { 0 }}, + { 194, 0, 0, 6, { 0 }}, + { 195, 0, 0, 6, { 0 }}, + { 196, 0, 1, 6, { 0 }}, + { 197, 0, 1, 6, { 0 }}, + { 198, 0, 3, 10, { 0 }}, + { 199, 0, 3, 6, { 0 }}, + { 200, 0, 0, 6, { 0 }}, + { 201, 0, 0, 6, { 0 }}, + { 202, 0, 0, 6, { 0 }}, + { 203, 0, 1, 6, { 0 }}, + { 204, -1, 0, 2, { 0 }}, + { 205, 0, 0, 2, { 0 }}, + { 206, -1, 0, 2, { 0 }}, + { 207, -1, 1, 2, { 0 }}, + { 208, -1, 3, 6, { 0 }}, + { 209, 0, 0, 6, { 0 }}, + { 210, 0, 0, 6, { 0 }}, + { 211, 0, 0, 6, { 0 }}, + { 212, 0, 0, 6, { 0 }}, + { 213, 0, 0, 6, { 0 }}, + { 214, 0, 1, 6, { 0 }}, + { 215, 0, 5, 6, { 0 }}, + { 216, 0, 3, 6, { 0 }}, + { 217, 0, 0, 6, { 0 }}, + { 218, 0, 0, 6, { 0 }}, + { 219, 0, 0, 6, { 0 }}, + { 220, 0, 1, 6, { 0 }}, + { 221, 0, 0, 6, { 0 }}, + { 222, 0, 3, 6, { 0 }}, + { 223, 0, 3, 6, { 0 }}, + { 224, 0, 2, 6, { 0 }}, + { 225, 0, 2, 6, { 0 }}, + { 226, 0, 2, 6, { 0 }}, + { 227, 0, 2, 6, { 0 }}, + { 228, 0, 3, 6, { 0 }}, + { 229, 0, 3, 6, { 0 }}, + { 230, 0, 5, 10, { 0 }}, + { 231, 0, 5, 6, { 0 }}, + { 232, 0, 2, 6, { 0 }}, + { 233, 0, 2, 6, { 0 }}, + { 234, 0, 2, 6, { 0 }}, + { 235, 0, 3, 6, { 0 }}, + { 236, -1, 2, 2, { 0 }}, + { 237, 0, 2, 2, { 0 }}, + { 238, -1, 2, 2, { 0 }}, + { 239, -1, 3, 2, { 0 }}, + { 240, 0, 3, 6, { 0 }}, + { 241, 0, 2, 6, { 0 }}, + { 242, 0, 2, 6, { 0 }}, + { 243, 0, 2, 6, { 0 }}, + { 244, 0, 2, 6, { 0 }}, + { 245, 0, 2, 6, { 0 }}, + { 246, 0, 3, 6, { 0 }}, + { 247, 0, 5, 6, { 0 }}, + { 248, 0, 5, 6, { 0 }}, + { 249, 0, 2, 6, { 0 }}, + { 250, 0, 2, 6, { 0 }}, + { 251, 0, 2, 6, { 0 }}, + { 252, 0, 3, 6, { 0 }}, + { 253, 0, 2, 6, { 0 }}, + { 254, 0, 2, 6, { 0 }}, + { 255, 0, 3, 6, { 0 }}, +}; + +// Style loading function: RLTech +static void GuiLoadStyleRLTech(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < RLTECH_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(rltechStyleProps[i].controlId, rltechStyleProps[i].propertyId, rltechStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int rltechFontDataSize = 0; + unsigned char *data = DecompressData(rltechFontData, RLTECH_STYLE_FONT_ATLAS_COMP_SIZE, &rltechFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 16; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, rltechFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, rltechFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/rltech/style_rltech.png b/include/styles/rltech/style_rltech.png new file mode 100644 index 0000000..b4a532f Binary files /dev/null and b/include/styles/rltech/style_rltech.png differ diff --git a/include/styles/rltech/style_rltech.rgs b/include/styles/rltech/style_rltech.rgs new file mode 100644 index 0000000..576d1ac Binary files /dev/null and b/include/styles/rltech/style_rltech.rgs differ diff --git a/include/styles/sunny/GenericMobileSystemNuevo.ttf b/include/styles/sunny/GenericMobileSystemNuevo.ttf new file mode 100644 index 0000000..777a528 Binary files /dev/null and b/include/styles/sunny/GenericMobileSystemNuevo.ttf differ diff --git a/include/styles/sunny/README.md b/include/styles/sunny/README.md new file mode 100644 index 0000000..082c1a2 --- /dev/null +++ b/include/styles/sunny/README.md @@ -0,0 +1,27 @@ +## style: sunny + +Sweet, colorful, sunny! Inspired by the [Playdate](https://play.date/) console and its [pulp](https://play.date/pulp/) editor! + +![sunny style table](style_sunny.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_sunny.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_sunny.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_sunny.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_sunny.h` | Embeddable style as code file, self-contained, includes font data | +| `style_sunny.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![sunny style screen](screenshot.png) + +## about font + +"Generic Mobile System" font by Jayvee Enaguas (HarvettFox96). + +CC0 free font, downloaded from dafont.com: [generic-mobile-system](https://www.dafont.com/es/generic-mobile-system.font) diff --git a/include/styles/sunny/charset.txt b/include/styles/sunny/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/sunny/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/sunny/font_LICENSE.txt b/include/styles/sunny/font_LICENSE.txt new file mode 100644 index 0000000..60f42f6 --- /dev/null +++ b/include/styles/sunny/font_LICENSE.txt @@ -0,0 +1,160 @@ +===| Description |=== + +Generic Mobile System is a raster proportional sans serif typeface, extracted from various generic/knockoff mobile devices, created with libre/free font editor software FontForge. + +Source files: https://notabug.org/HarvettFox96/ttf-genericmobile/ + +===| Update log |=== + +Version 20190323.02: + +- OS/2 and TeX metric fixes. +- Updated Panose. + +Version 20190323.01: + +- Added outline variant. +- Minor fixes. + +Version 20190103.03: + +- Minor bearing tweaks. (Clásico only) +- Minor fixes. + +Version 20190103.02: + +- Bearing tweaks from the different generic mobile phone as Cherry Mobile S5. (Clásico only) +- Minor fixes. + +Version 20190103.01: + +- Initial public release. + +===| Copyright/attribution notice |=== + +© 2009-2019 Jayvee Enaguas (HarvettFox96). Released under a libre/free public domain licence as Creative Commons Zero (CC0) 1.0. Applies worldwide countries including the Philippines, Spain, etc. + + +------------------------------------------------------------------------------- + +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/include/styles/sunny/screenshot.old.png b/include/styles/sunny/screenshot.old.png new file mode 100644 index 0000000..20151f8 Binary files /dev/null and b/include/styles/sunny/screenshot.old.png differ diff --git a/include/styles/sunny/screenshot.png b/include/styles/sunny/screenshot.png new file mode 100644 index 0000000..301c27c Binary files /dev/null and b/include/styles/sunny/screenshot.png differ diff --git a/include/styles/sunny/style_sunny.h b/include/styles/sunny/style_sunny.h new file mode 100644 index 0000000..334a19a --- /dev/null +++ b/include/styles/sunny/style_sunny.h @@ -0,0 +1,614 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleSunny(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define SUNNY_STYLE_PROPS_COUNT 33 + +// Custom style name: Sunny +static const GuiStyleProp sunnyStyleProps[SUNNY_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x9c760aff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x594006ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0xf6d519ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xf6ee89ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0xf5f3d1ff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0xf4cd19ff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0xf7e580ff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0xf7f2c1ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0x52470aff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0xc0be92ff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0xd3d3a1ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0xbcbc89ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x00000010 }, // DEFAULT_TEXT_SIZE + { 0, 17, (int)0x00000000 }, // DEFAULT_TEXT_SPACING + { 0, 18, (int)0x725706ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0xf0be4bff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000018 }, // DEFAULT_TEXT_LINE_SPACING + { 1, 2, (int)0x504506ff }, // LABEL_TEXT_COLOR_NORMAL + { 1, 5, (int)0xfdeb9bff }, // LABEL_TEXT_COLOR_FOCUSED + { 1, 8, (int)0xf5e8a4ff }, // LABEL_TEXT_COLOR_PRESSED + { 2, 2, (int)0xebc21fff }, // BUTTON_TEXT_COLOR_NORMAL + { 3, 2, (int)0xebc21fff }, // TOGGLE_TEXT_COLOR_NORMAL + { 4, 2, (int)0x81700fff }, // SLIDER_TEXT_COLOR_NORMAL + { 4, 5, (int)0xf4e49aff }, // SLIDER_TEXT_COLOR_FOCUSED + { 7, 2, (int)0xebc21fff }, // COMBOBOX_TEXT_COLOR_NORMAL + { 8, 2, (int)0xefd87bff }, // DROPDOWNBOX_TEXT_COLOR_NORMAL + { 8, 5, (int)0xd4b219ff }, // DROPDOWNBOX_TEXT_COLOR_FOCUSED + { 9, 2, (int)0x7a680bff }, // TEXTBOX_TEXT_COLOR_NORMAL + { 9, 5, (int)0xad931fff }, // TEXTBOX_TEXT_COLOR_FOCUSED + { 10, 2, (int)0x62570eff }, // VALUEBOX_TEXT_COLOR_NORMAL + { 10, 5, (int)0xf2df88ff }, // VALUEBOX_TEXT_COLOR_FOCUSED + { 12, 2, (int)0xf4e798ff }, // LISTVIEW_TEXT_COLOR_NORMAL + { 15, 2, (int)0xebc21fff }, // STATUSBAR_TEXT_COLOR_NORMAL +}; + +// WARNING: This style uses a custom font: "GMSN.ttf" (size: 16, spacing: 0) + +#define SUNNY_STYLE_FONT_ATLAS_COMP_SIZE 2434 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char sunnyFontData[SUNNY_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0x5b, 0x6e, 0xe4, 0x36, 0x10, 0x05, 0x50, 0xee, 0x7f, 0xa1, 0xd9, 0x06, 0x83, 0x20, 0x18, 0x24, 0xe3, 0xb1, 0x45, + 0xb2, 0xaa, 0xa8, 0x57, 0x9f, 0x1c, 0xe4, 0xc7, 0x1a, 0xb7, 0xd5, 0x94, 0xae, 0x44, 0x3d, 0x58, 0xec, 0x0d, 0x00, 0x00, + 0x00, 0xf8, 0x78, 0xff, 0xfc, 0xf7, 0xfd, 0xcf, 0xbe, 0x5b, 0x72, 0xbc, 0xec, 0xd7, 0xbf, 0x18, 0x2d, 0xe9, 0x3f, 0xae, + 0x49, 0x3f, 0x58, 0x36, 0xf7, 0xb7, 0x62, 0xeb, 0xd5, 0x97, 0xda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 0x8a, 0xcb, 0x36, 0xec, 0x49, 0x55, 0x7f, 0x48, 0x15, 0xa4, + 0x77, 0xcc, 0xcd, 0x01, 0xf2, 0xff, 0x94, 0x0a, 0x69, 0x20, 0xff, 0xf2, 0x0f, 0xf2, 0x2f, 0xff, 0x20, 0xff, 0xf2, 0x0f, + 0x6f, 0xbf, 0xff, 0x7f, 0xa7, 0x99, 0x6b, 0xf6, 0xd5, 0x29, 0x06, 0xcf, 0xfe, 0x63, 0x47, 0x87, 0xea, 0x65, 0x6d, 0x78, + 0xdc, 0xf0, 0x8c, 0x10, 0xce, 0xca, 0xff, 0x35, 0xcf, 0xf8, 0x57, 0xf3, 0xaf, 0xff, 0x0f, 0x6f, 0xba, 0x1a, 0x89, 0xbc, + 0xff, 0x27, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x70, 0x95, 0x7f, 0xff, 0xd3, 0x0e, 0x20, 0xff, 0xc0, 0xc7, 0xe5, 0xff, 0x6f }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle sunnyFontRecs[189] = { + { 4, 4, 4 , 16 }, + { 16, 4, 2 , 10 }, + { 26, 4, 5 , 3 }, + { 39, 4, 7 , 10 }, + { 54, 4, 7 , 13 }, + { 69, 4, 7 , 10 }, + { 84, 4, 7 , 10 }, + { 99, 4, 2 , 3 }, + { 109, 4, 3 , 12 }, + { 120, 4, 3 , 12 }, + { 131, 4, 5 , 6 }, + { 144, 4, 6 , 5 }, + { 158, 4, 2 , 4 }, + { 168, 4, 5 , 1 }, + { 181, 4, 2 , 2 }, + { 191, 4, 4 , 10 }, + { 203, 4, 6 , 10 }, + { 217, 4, 4 , 10 }, + { 229, 4, 6 , 10 }, + { 243, 4, 6 , 10 }, + { 257, 4, 6 , 10 }, + { 271, 4, 6 , 10 }, + { 285, 4, 6 , 10 }, + { 299, 4, 6 , 10 }, + { 313, 4, 6 , 10 }, + { 327, 4, 6 , 10 }, + { 341, 4, 2 , 6 }, + { 351, 4, 2 , 8 }, + { 361, 4, 7 , 7 }, + { 376, 4, 5 , 3 }, + { 389, 4, 7 , 7 }, + { 404, 4, 6 , 10 }, + { 418, 4, 7 , 12 }, + { 433, 4, 7 , 10 }, + { 448, 4, 7 , 10 }, + { 463, 4, 7 , 10 }, + { 478, 4, 7 , 10 }, + { 493, 4, 7 , 10 }, + { 4, 28, 7 , 10 }, + { 19, 28, 7 , 10 }, + { 34, 28, 7 , 10 }, + { 49, 28, 2 , 10 }, + { 59, 28, 5 , 10 }, + { 72, 28, 7 , 10 }, + { 87, 28, 6 , 10 }, + { 101, 28, 9 , 10 }, + { 118, 28, 7 , 10 }, + { 133, 28, 7 , 10 }, + { 148, 28, 7 , 10 }, + { 163, 28, 7 , 12 }, + { 178, 28, 7 , 10 }, + { 193, 28, 7 , 10 }, + { 208, 28, 6 , 10 }, + { 222, 28, 7 , 10 }, + { 237, 28, 7 , 10 }, + { 252, 28, 8 , 10 }, + { 268, 28, 7 , 10 }, + { 283, 28, 6 , 10 }, + { 297, 28, 7 , 10 }, + { 312, 28, 4 , 12 }, + { 324, 28, 4 , 10 }, + { 336, 28, 4 , 12 }, + { 348, 28, 6 , 3 }, + { 362, 28, 7 , 1 }, + { 377, 28, 4 , 3 }, + { 389, 28, 6 , 7 }, + { 403, 28, 6 , 10 }, + { 417, 28, 6 , 7 }, + { 431, 28, 6 , 10 }, + { 445, 28, 6 , 7 }, + { 459, 28, 4 , 10 }, + { 471, 28, 6 , 9 }, + { 485, 28, 6 , 10 }, + { 499, 28, 2 , 10 }, + { 4, 52, 5 , 12 }, + { 17, 52, 6 , 10 }, + { 31, 52, 3 , 10 }, + { 42, 52, 8 , 7 }, + { 58, 52, 6 , 7 }, + { 72, 52, 6 , 7 }, + { 86, 52, 6 , 9 }, + { 100, 52, 6 , 9 }, + { 114, 52, 5 , 7 }, + { 127, 52, 6 , 7 }, + { 141, 52, 4 , 10 }, + { 153, 52, 6 , 7 }, + { 167, 52, 6 , 7 }, + { 181, 52, 8 , 7 }, + { 197, 52, 6 , 7 }, + { 211, 52, 6 , 9 }, + { 225, 52, 6 , 7 }, + { 239, 52, 5 , 12 }, + { 252, 52, 2 , 12 }, + { 262, 52, 5 , 12 }, + { 275, 52, 7 , 3 }, + { 290, 52, 2 , 9 }, + { 300, 52, 6 , 11 }, + { 314, 52, 7 , 10 }, + { 329, 52, 7 , 9 }, + { 344, 52, 6 , 10 }, + { 358, 52, 7 , 11 }, + { 373, 52, 6 , 12 }, + { 387, 52, 6 , 10 }, + { 401, 52, 7 , 10 }, + { 416, 52, 5 , 5 }, + { 429, 52, 7 , 6 }, + { 444, 52, 6 , 3 }, + { 458, 52, 7 , 10 }, + { 473, 52, 0 , 0 }, + { 481, 52, 4 , 4 }, + { 493, 52, 6 , 7 }, + { 4, 76, 4 , 5 }, + { 16, 76, 4 , 5 }, + { 28, 76, 7 , 11 }, + { 43, 76, 6 , 9 }, + { 57, 76, 7 , 12 }, + { 72, 76, 2 , 2 }, + { 82, 76, 6 , 10 }, + { 96, 76, 3 , 5 }, + { 107, 76, 4 , 5 }, + { 119, 76, 7 , 6 }, + { 134, 76, 9 , 10 }, + { 151, 76, 8 , 7 }, + { 167, 76, 6 , 11 }, + { 181, 76, 6 , 11 }, + { 195, 76, 7 , 11 }, + { 210, 76, 7 , 11 }, + { 225, 76, 7 , 11 }, + { 240, 76, 7 , 11 }, + { 255, 76, 7 , 11 }, + { 270, 76, 7 , 11 }, + { 285, 76, 9 , 10 }, + { 302, 76, 7 , 12 }, + { 317, 76, 7 , 11 }, + { 332, 76, 7 , 11 }, + { 347, 76, 7 , 11 }, + { 362, 76, 7 , 11 }, + { 377, 76, 3 , 11 }, + { 388, 76, 3 , 11 }, + { 399, 76, 5 , 11 }, + { 412, 76, 5 , 11 }, + { 425, 76, 8 , 10 }, + { 441, 76, 7 , 11 }, + { 456, 76, 7 , 11 }, + { 471, 76, 7 , 11 }, + { 486, 76, 7 , 11 }, + { 4, 100, 7 , 11 }, + { 19, 100, 7 , 11 }, + { 34, 100, 7 , 7 }, + { 49, 100, 7 , 13 }, + { 64, 100, 7 , 11 }, + { 79, 100, 7 , 11 }, + { 94, 100, 7 , 11 }, + { 109, 100, 7 , 11 }, + { 124, 100, 6 , 11 }, + { 138, 100, 7 , 10 }, + { 153, 100, 7 , 10 }, + { 168, 100, 6 , 10 }, + { 182, 100, 6 , 10 }, + { 196, 100, 6 , 10 }, + { 210, 100, 6 , 10 }, + { 224, 100, 6 , 10 }, + { 238, 100, 6 , 11 }, + { 252, 100, 8 , 7 }, + { 268, 100, 6 , 9 }, + { 282, 100, 6 , 10 }, + { 296, 100, 6 , 10 }, + { 310, 100, 6 , 10 }, + { 324, 100, 6 , 10 }, + { 338, 100, 3 , 10 }, + { 349, 100, 3 , 10 }, + { 360, 100, 5 , 10 }, + { 373, 100, 5 , 10 }, + { 386, 100, 6 , 10 }, + { 400, 100, 6 , 10 }, + { 414, 100, 6 , 10 }, + { 428, 100, 6 , 10 }, + { 442, 100, 6 , 10 }, + { 456, 100, 6 , 10 }, + { 470, 100, 6 , 10 }, + { 484, 100, 6 , 7 }, + { 4, 124, 7 , 11 }, + { 19, 124, 6 , 10 }, + { 33, 124, 6 , 10 }, + { 47, 124, 6 , 10 }, + { 61, 124, 6 , 10 }, + { 75, 124, 6 , 12 }, + { 89, 124, 6 , 12 }, + { 103, 124, 6 , 12 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo sunnyFontGlyphs[189] = { + { 32, 0, 0, 4, { 0 }}, + { 33, 0, 2, 3, { 0 }}, + { 34, 0, 2, 6, { 0 }}, + { 35, 0, 2, 8, { 0 }}, + { 36, 0, 1, 8, { 0 }}, + { 37, 0, 2, 8, { 0 }}, + { 38, 0, 2, 8, { 0 }}, + { 39, 0, 2, 3, { 0 }}, + { 40, 0, 2, 4, { 0 }}, + { 41, 0, 2, 4, { 0 }}, + { 42, 0, 4, 6, { 0 }}, + { 43, 0, 6, 7, { 0 }}, + { 44, 0, 10, 3, { 0 }}, + { 45, 0, 8, 6, { 0 }}, + { 46, 0, 10, 3, { 0 }}, + { 47, 0, 2, 5, { 0 }}, + { 48, 0, 2, 7, { 0 }}, + { 49, 0, 2, 7, { 0 }}, + { 50, 0, 2, 7, { 0 }}, + { 51, 0, 2, 7, { 0 }}, + { 52, 0, 2, 7, { 0 }}, + { 53, 0, 2, 7, { 0 }}, + { 54, 0, 2, 7, { 0 }}, + { 55, 0, 2, 7, { 0 }}, + { 56, 0, 2, 7, { 0 }}, + { 57, 0, 2, 7, { 0 }}, + { 58, 0, 4, 3, { 0 }}, + { 59, 0, 4, 3, { 0 }}, + { 60, 0, 4, 8, { 0 }}, + { 61, 0, 6, 6, { 0 }}, + { 62, 0, 4, 8, { 0 }}, + { 63, 0, 2, 7, { 0 }}, + { 64, 0, 2, 8, { 0 }}, + { 65, 0, 2, 8, { 0 }}, + { 66, 0, 2, 8, { 0 }}, + { 67, 0, 2, 8, { 0 }}, + { 68, 0, 2, 8, { 0 }}, + { 69, 0, 2, 8, { 0 }}, + { 70, 0, 2, 8, { 0 }}, + { 71, 0, 2, 8, { 0 }}, + { 72, 0, 2, 8, { 0 }}, + { 73, 0, 2, 3, { 0 }}, + { 74, 0, 2, 6, { 0 }}, + { 75, 0, 2, 8, { 0 }}, + { 76, 0, 2, 7, { 0 }}, + { 77, 0, 2, 10, { 0 }}, + { 78, 0, 2, 8, { 0 }}, + { 79, 0, 2, 8, { 0 }}, + { 80, 0, 2, 8, { 0 }}, + { 81, 0, 2, 8, { 0 }}, + { 82, 0, 2, 8, { 0 }}, + { 83, 0, 2, 8, { 0 }}, + { 84, 0, 2, 7, { 0 }}, + { 85, 0, 2, 8, { 0 }}, + { 86, 0, 2, 8, { 0 }}, + { 87, 0, 2, 9, { 0 }}, + { 88, 0, 2, 8, { 0 }}, + { 89, 0, 2, 7, { 0 }}, + { 90, 0, 2, 8, { 0 }}, + { 91, 0, 2, 5, { 0 }}, + { 92, 0, 2, 5, { 0 }}, + { 93, 0, 2, 5, { 0 }}, + { 94, 0, 2, 7, { 0 }}, + { 95, 0, 14, 8, { 0 }}, + { 96, 0, 2, 5, { 0 }}, + { 97, 0, 5, 7, { 0 }}, + { 98, 0, 2, 7, { 0 }}, + { 99, 0, 5, 7, { 0 }}, + { 100, 0, 2, 7, { 0 }}, + { 101, 0, 5, 7, { 0 }}, + { 102, 0, 2, 5, { 0 }}, + { 103, 0, 5, 7, { 0 }}, + { 104, 0, 2, 7, { 0 }}, + { 105, 0, 2, 3, { 0 }}, + { 106, 0, 2, 6, { 0 }}, + { 107, 0, 2, 7, { 0 }}, + { 108, 0, 2, 4, { 0 }}, + { 109, 0, 5, 9, { 0 }}, + { 110, 0, 5, 7, { 0 }}, + { 111, 0, 5, 7, { 0 }}, + { 112, 0, 5, 7, { 0 }}, + { 113, 0, 5, 7, { 0 }}, + { 114, 0, 5, 6, { 0 }}, + { 115, 0, 5, 7, { 0 }}, + { 116, 0, 2, 5, { 0 }}, + { 117, 0, 5, 7, { 0 }}, + { 118, 0, 5, 7, { 0 }}, + { 119, 0, 5, 9, { 0 }}, + { 120, 0, 5, 7, { 0 }}, + { 121, 0, 5, 7, { 0 }}, + { 122, 0, 5, 7, { 0 }}, + { 123, 0, 2, 6, { 0 }}, + { 124, 0, 2, 3, { 0 }}, + { 125, 0, 2, 6, { 0 }}, + { 126, 0, 6, 8, { 0 }}, + { 161, 0, 5, 3, { 0 }}, + { 162, 0, 3, 7, { 0 }}, + { 163, 0, 2, 8, { 0 }}, + { 8364, 0, 3, 8, { 0 }}, + { 165, 0, 2, 7, { 0 }}, + { 352, 0, 1, 8, { 0 }}, + { 167, 0, 2, 7, { 0 }}, + { 353, 0, 2, 7, { 0 }}, + { 169, 0, 2, 8, { 0 }}, + { 170, 0, 2, 6, { 0 }}, + { 171, 0, 6, 8, { 0 }}, + { 172, 0, 7, 7, { 0 }}, + { 174, 0, 2, 8, { 0 }}, + { 175, 0, 0, 0, { 0 }}, + { 176, 0, 2, 5, { 0 }}, + { 177, 0, 4, 7, { 0 }}, + { 178, 0, 2, 5, { 0 }}, + { 179, 0, 2, 5, { 0 }}, + { 381, 0, 1, 8, { 0 }}, + { 181, 0, 5, 7, { 0 }}, + { 182, 0, 2, 8, { 0 }}, + { 183, 0, 6, 3, { 0 }}, + { 382, 0, 2, 7, { 0 }}, + { 185, 0, 2, 4, { 0 }}, + { 186, 0, 2, 5, { 0 }}, + { 187, 0, 6, 8, { 0 }}, + { 338, 0, 2, 10, { 0 }}, + { 339, 0, 5, 9, { 0 }}, + { 376, 0, 1, 7, { 0 }}, + { 191, 0, 3, 7, { 0 }}, + { 192, 0, 1, 8, { 0 }}, + { 193, 0, 1, 8, { 0 }}, + { 194, 0, 1, 8, { 0 }}, + { 195, 0, 1, 8, { 0 }}, + { 196, 0, 1, 8, { 0 }}, + { 197, 0, 1, 8, { 0 }}, + { 198, 0, 2, 10, { 0 }}, + { 199, 0, 2, 8, { 0 }}, + { 200, 0, 1, 8, { 0 }}, + { 201, 0, 1, 8, { 0 }}, + { 202, 0, 1, 8, { 0 }}, + { 203, 0, 1, 8, { 0 }}, + { 204, 0, 1, 4, { 0 }}, + { 205, 0, 1, 4, { 0 }}, + { 206, 0, 1, 6, { 0 }}, + { 207, 0, 1, 6, { 0 }}, + { 208, 0, 2, 9, { 0 }}, + { 209, 0, 1, 8, { 0 }}, + { 210, 0, 1, 8, { 0 }}, + { 211, 0, 1, 8, { 0 }}, + { 212, 0, 1, 8, { 0 }}, + { 213, 0, 1, 8, { 0 }}, + { 214, 0, 1, 8, { 0 }}, + { 215, 0, 5, 8, { 0 }}, + { 216, 0, 1, 8, { 0 }}, + { 217, 0, 1, 8, { 0 }}, + { 218, 0, 1, 8, { 0 }}, + { 219, 0, 1, 8, { 0 }}, + { 220, 0, 1, 8, { 0 }}, + { 221, 0, 1, 7, { 0 }}, + { 222, 0, 2, 8, { 0 }}, + { 223, 0, 2, 8, { 0 }}, + { 224, 0, 2, 7, { 0 }}, + { 225, 0, 2, 7, { 0 }}, + { 226, 0, 2, 7, { 0 }}, + { 227, 0, 2, 7, { 0 }}, + { 228, 0, 2, 7, { 0 }}, + { 229, 0, 1, 7, { 0 }}, + { 230, 0, 5, 9, { 0 }}, + { 231, 0, 5, 7, { 0 }}, + { 232, 0, 2, 7, { 0 }}, + { 233, 0, 2, 7, { 0 }}, + { 234, 0, 2, 7, { 0 }}, + { 235, 0, 2, 7, { 0 }}, + { 236, 0, 2, 4, { 0 }}, + { 237, 0, 2, 4, { 0 }}, + { 238, 0, 2, 6, { 0 }}, + { 239, 0, 2, 6, { 0 }}, + { 240, 0, 2, 7, { 0 }}, + { 241, 0, 2, 7, { 0 }}, + { 242, 0, 2, 7, { 0 }}, + { 243, 0, 2, 7, { 0 }}, + { 244, 0, 2, 7, { 0 }}, + { 245, 0, 2, 7, { 0 }}, + { 246, 0, 2, 7, { 0 }}, + { 247, 0, 4, 7, { 0 }}, + { 248, 0, 3, 8, { 0 }}, + { 249, 0, 2, 7, { 0 }}, + { 250, 0, 2, 7, { 0 }}, + { 251, 0, 2, 7, { 0 }}, + { 252, 0, 2, 7, { 0 }}, + { 253, 0, 2, 7, { 0 }}, + { 254, 0, 2, 7, { 0 }}, + { 255, 0, 2, 7, { 0 }}, +}; + +// Style loading function: Sunny +static void GuiLoadStyleSunny(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < SUNNY_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(sunnyStyleProps[i].controlId, sunnyStyleProps[i].propertyId, sunnyStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int sunnyFontDataSize = 0; + unsigned char *data = DecompressData(sunnyFontData, SUNNY_STYLE_FONT_ATLAS_COMP_SIZE, &sunnyFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 16; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, sunnyFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, sunnyFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/sunny/style_sunny.png b/include/styles/sunny/style_sunny.png new file mode 100644 index 0000000..f826847 Binary files /dev/null and b/include/styles/sunny/style_sunny.png differ diff --git a/include/styles/sunny/style_sunny.rgs b/include/styles/sunny/style_sunny.rgs new file mode 100644 index 0000000..5a53c50 Binary files /dev/null and b/include/styles/sunny/style_sunny.rgs differ diff --git a/include/styles/sunny/style_sunny.txt.rgs b/include/styles/sunny/style_sunny.txt.rgs new file mode 100644 index 0000000..4743798 --- /dev/null +++ b/include/styles/sunny/style_sunny.txt.rgs @@ -0,0 +1,43 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 16 charset.txt GenericMobileSystemNuevo.ttf +p 00 00 0x9c760aff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0x594006ff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0xf6d519ff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0xf6ee89ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0xf5f3d1ff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0xf4cd19ff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0xf7e580ff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0xf7f2c1ff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0x52470aff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0xc0be92ff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0xd3d3a1ff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0xbcbc89ff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x00000010 TEXT_SIZE +p 00 17 0x00000000 TEXT_SPACING +p 00 18 0x725706ff LINE_COLOR +p 00 19 0xf0be4bff BACKGROUND_COLOR +p 00 20 0x00000018 TEXT_LINE_SPACING +p 01 02 0x504506ff LABEL_TEXT_COLOR_NORMAL +p 01 05 0xfdeb9bff LABEL_TEXT_COLOR_FOCUSED +p 01 08 0xf5e8a4ff LABEL_TEXT_COLOR_PRESSED +p 02 02 0xebc21fff BUTTON_TEXT_COLOR_NORMAL +p 03 02 0xebc21fff TOGGLE_TEXT_COLOR_NORMAL +p 04 02 0x81700fff SLIDER_TEXT_COLOR_NORMAL +p 04 05 0xf4e49aff SLIDER_TEXT_COLOR_FOCUSED +p 07 02 0xebc21fff COMBOBOX_TEXT_COLOR_NORMAL +p 08 02 0xefd87bff DROPDOWNBOX_TEXT_COLOR_NORMAL +p 08 05 0xd4b219ff DROPDOWNBOX_TEXT_COLOR_FOCUSED +p 09 02 0x7a680bff TEXTBOX_TEXT_COLOR_NORMAL +p 09 05 0xad931fff TEXTBOX_TEXT_COLOR_FOCUSED +p 10 02 0x62570eff VALUEBOX_TEXT_COLOR_NORMAL +p 10 05 0xf2df88ff VALUEBOX_TEXT_COLOR_FOCUSED +p 12 02 0xf4e798ff LISTVIEW_TEXT_COLOR_NORMAL +p 15 02 0xebc21fff STATUSBAR_TEXT_COLOR_NORMAL diff --git a/include/styles/terminal/Mecha.ttf b/include/styles/terminal/Mecha.ttf new file mode 100644 index 0000000..928f63a Binary files /dev/null and b/include/styles/terminal/Mecha.ttf differ diff --git a/include/styles/terminal/README.md b/include/styles/terminal/README.md new file mode 100644 index 0000000..a30bc1e --- /dev/null +++ b/include/styles/terminal/README.md @@ -0,0 +1,27 @@ +## style: terminal + +Start your terminal and type your commands! Feel the connection the data flow, that's your style! + +![terminal style table](style_terminal.png) + +## style: provided files + +Several options are provided to add the style to a `raygui` application, choose the one that better fits the project. + +| file name | description | +| :-------- | :---------- | +| `style_terminal.rgs` | Binary style file (raygui 4.0), font data compressed (recs, glyphs) | +| `style_terminal.txt.rgs` | Text style file, no font data, requires external font provided | +| `style_terminal.old.rgs` | Binary style file (raygui 3.x), font data uncompressed (recs, glyphs) | +| `style_terminal.h` | Embeddable style as code file, self-contained, includes font data | +| `style_terminal.png` | Style table image, contains `rGSf` chunk with binary `rgs` file data | + +## screenshot + +![terminal style screen](screenshot.png) + +## about font + +"Mecha" font by Captain Falcon. + +100% free font, downloaded from dafont.com: [mecha-cf](https://www.dafont.com/mecha-cf.font) diff --git a/include/styles/terminal/charset.txt b/include/styles/terminal/charset.txt new file mode 100644 index 0000000..611a673 --- /dev/null +++ b/include/styles/terminal/charset.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file diff --git a/include/styles/terminal/screenshot.old.png b/include/styles/terminal/screenshot.old.png new file mode 100644 index 0000000..55142e2 Binary files /dev/null and b/include/styles/terminal/screenshot.old.png differ diff --git a/include/styles/terminal/screenshot.png b/include/styles/terminal/screenshot.png new file mode 100644 index 0000000..36d17a5 Binary files /dev/null and b/include/styles/terminal/screenshot.png differ diff --git a/include/styles/terminal/style_terminal.h b/include/styles/terminal/style_terminal.h new file mode 100644 index 0000000..ef74462 --- /dev/null +++ b/include/styles/terminal/style_terminal.h @@ -0,0 +1,569 @@ +////////////////////////////////////////////////////////////////////////////////// +// // +// StyleAsCode exporter v2.0 - Style data exported as a values array // +// // +// USAGE: On init call: GuiLoadStyleTerminal(); // +// // +// more info and bugs-report: github.com/raysan5/raygui // +// feedback and support: ray[at]raylibtech.com // +// // +// Copyright (c) 2020-2025 raylib technologies (@raylibtech) // +// // +////////////////////////////////////////////////////////////////////////////////// + +#define TERMINAL_STYLE_PROPS_COUNT 17 + +// Custom style name: Terminal +static const GuiStyleProp terminalStyleProps[TERMINAL_STYLE_PROPS_COUNT] = { + { 0, 0, (int)0x1c8d00ff }, // DEFAULT_BORDER_COLOR_NORMAL + { 0, 1, (int)0x161313ff }, // DEFAULT_BASE_COLOR_NORMAL + { 0, 2, (int)0x38f620ff }, // DEFAULT_TEXT_COLOR_NORMAL + { 0, 3, (int)0xc3fbc6ff }, // DEFAULT_BORDER_COLOR_FOCUSED + { 0, 4, (int)0x43bf2eff }, // DEFAULT_BASE_COLOR_FOCUSED + { 0, 5, (int)0xdcfadcff }, // DEFAULT_TEXT_COLOR_FOCUSED + { 0, 6, (int)0x1f5b19ff }, // DEFAULT_BORDER_COLOR_PRESSED + { 0, 7, (int)0x43ff28ff }, // DEFAULT_BASE_COLOR_PRESSED + { 0, 8, (int)0x1e6f15ff }, // DEFAULT_TEXT_COLOR_PRESSED + { 0, 9, (int)0x223b22ff }, // DEFAULT_BORDER_COLOR_DISABLED + { 0, 10, (int)0x182c18ff }, // DEFAULT_BASE_COLOR_DISABLED + { 0, 11, (int)0x244125ff }, // DEFAULT_TEXT_COLOR_DISABLED + { 0, 16, (int)0x00000010 }, // DEFAULT_TEXT_SIZE + { 0, 17, (int)0x00000000 }, // DEFAULT_TEXT_SPACING + { 0, 18, (int)0xe6fce3ff }, // DEFAULT_LINE_COLOR + { 0, 19, (int)0x0c1505ff }, // DEFAULT_BACKGROUND_COLOR + { 0, 20, (int)0x00000018 }, // DEFAULT_TEXT_LINE_SPACING +}; + +// WARNING: This style uses a custom font: "Mecha.ttf" (size: 16, spacing: 0) + +#define TERMINAL_STYLE_FONT_ATLAS_COMP_SIZE 1860 + +// Font atlas image pixels data: DEFLATE compressed +static unsigned char terminalFontData[TERMINAL_STYLE_FONT_ATLAS_COMP_SIZE] = { 0xed, + 0xdd, 0x41, 0x92, 0xa4, 0x36, 0x10, 0x05, 0x50, 0xee, 0x7f, 0xe9, 0xf4, 0x62, 0x62, 0x16, 0x76, 0xb8, 0x1b, 0x94, 0x4a, + 0x89, 0x04, 0x9e, 0x5f, 0x78, 0xd3, 0xd5, 0x53, 0x4d, 0x01, 0xbf, 0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f, 0xfd, 0xde, 0x9f, 0x0a, + 0xda, 0x2b, 0xf3, 0x1f, 0x4d, 0xc7, 0xff, 0xf6, 0xdf, 0xf1, 0xe1, 0x89, 0xf9, 0xd7, 0xff, 0xcf, 0xe7, 0xe2, 0xfe, 0x0a, + 0x9a, 0xf9, 0x34, 0xcb, 0xbf, 0xfe, 0x7f, 0xc5, 0xfc, 0x9f, 0x9a, 0xb6, 0x47, 0x05, 0xcd, 0xb9, 0x6d, 0x93, 0x7f, 0xd0, + 0x2b, 0xd4, 0xff, 0x07, 0xbd, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf6, 0xf9, 0xf3, 0x9f, 0xfd, 0x00, 0xf2, 0x0f, 0x7c, 0x2e, 0xff, 0xff, 0x00 }; + +// Font glyphs rectangles data (on atlas) +static const Rectangle terminalFontRecs[189] = { + { 4, 4, 4 , 16 }, + { 16, 4, 1 , 11 }, + { 25, 4, 3 , 3 }, + { 36, 4, 6 , 11 }, + { 50, 4, 5 , 11 }, + { 63, 4, 5 , 11 }, + { 76, 4, 5 , 11 }, + { 89, 4, 1 , 2 }, + { 98, 4, 2 , 13 }, + { 108, 4, 2 , 13 }, + { 118, 4, 3 , 3 }, + { 129, 4, 5 , 5 }, + { 142, 4, 1 , 3 }, + { 151, 4, 5 , 1 }, + { 164, 4, 1 , 1 }, + { 173, 4, 6 , 12 }, + { 187, 4, 5 , 11 }, + { 200, 4, 2 , 11 }, + { 210, 4, 5 , 11 }, + { 223, 4, 5 , 11 }, + { 236, 4, 5 , 11 }, + { 249, 4, 5 , 11 }, + { 262, 4, 5 , 11 }, + { 275, 4, 5 , 11 }, + { 288, 4, 5 , 11 }, + { 301, 4, 5 , 11 }, + { 314, 4, 1 , 8 }, + { 323, 4, 1 , 10 }, + { 332, 4, 4 , 5 }, + { 344, 4, 5 , 3 }, + { 357, 4, 4 , 5 }, + { 369, 4, 5 , 11 }, + { 382, 4, 11 , 11 }, + { 401, 4, 5 , 11 }, + { 414, 4, 5 , 11 }, + { 427, 4, 5 , 11 }, + { 440, 4, 5 , 11 }, + { 453, 4, 5 , 11 }, + { 466, 4, 5 , 11 }, + { 479, 4, 5 , 11 }, + { 492, 4, 5 , 11 }, + { 4, 28, 1 , 11 }, + { 13, 28, 5 , 11 }, + { 26, 28, 5 , 11 }, + { 39, 28, 5 , 11 }, + { 52, 28, 7 , 11 }, + { 67, 28, 5 , 11 }, + { 80, 28, 5 , 11 }, + { 93, 28, 5 , 11 }, + { 106, 28, 5 , 13 }, + { 119, 28, 5 , 11 }, + { 132, 28, 5 , 11 }, + { 145, 28, 5 , 11 }, + { 158, 28, 5 , 11 }, + { 171, 28, 5 , 11 }, + { 184, 28, 7 , 11 }, + { 199, 28, 5 , 11 }, + { 212, 28, 5 , 11 }, + { 225, 28, 5 , 11 }, + { 238, 28, 2 , 13 }, + { 248, 28, 6 , 12 }, + { 262, 28, 2 , 13 }, + { 272, 28, 5 , 4 }, + { 285, 28, 5 , 1 }, + { 298, 28, 2 , 2 }, + { 308, 28, 5 , 8 }, + { 321, 28, 5 , 11 }, + { 334, 28, 5 , 8 }, + { 347, 28, 5 , 11 }, + { 360, 28, 5 , 8 }, + { 373, 28, 4 , 11 }, + { 385, 28, 5 , 10 }, + { 398, 28, 5 , 11 }, + { 411, 28, 1 , 11 }, + { 420, 28, 1 , 13 }, + { 429, 28, 5 , 11 }, + { 442, 28, 1 , 11 }, + { 451, 28, 7 , 8 }, + { 466, 28, 5 , 8 }, + { 479, 28, 5 , 8 }, + { 492, 28, 5 , 10 }, + { 4, 52, 5 , 10 }, + { 17, 52, 4 , 8 }, + { 29, 52, 5 , 8 }, + { 42, 52, 3 , 11 }, + { 53, 52, 5 , 8 }, + { 66, 52, 5 , 8 }, + { 79, 52, 7 , 8 }, + { 94, 52, 5 , 8 }, + { 107, 52, 5 , 10 }, + { 120, 52, 5 , 8 }, + { 133, 52, 3 , 13 }, + { 144, 52, 1 , 15 }, + { 153, 52, 3 , 13 }, + { 164, 52, 5 , 3 }, + { 177, 52, 1 , 11 }, + { 186, 52, 5 , 11 }, + { 199, 52, 5 , 10 }, + { 212, 52, 5 , 10 }, + { 225, 52, 5 , 10 }, + { 238, 52, 0 , 0 }, + { 246, 52, 0 , 0 }, + { 254, 52, 0 , 0 }, + { 262, 52, 7 , 8 }, + { 277, 52, 0 , 0 }, + { 285, 52, 0 , 0 }, + { 293, 52, 5 , 3 }, + { 306, 52, 7 , 8 }, + { 321, 52, 5 , 1 }, + { 334, 52, 3 , 3 }, + { 345, 52, 5 , 7 }, + { 358, 52, 0 , 0 }, + { 366, 52, 0 , 0 }, + { 374, 52, 0 , 0 }, + { 382, 52, 5 , 10 }, + { 395, 52, 7 , 11 }, + { 410, 52, 1 , 1 }, + { 419, 52, 0 , 0 }, + { 427, 52, 0 , 0 }, + { 435, 52, 0 , 0 }, + { 443, 52, 0 , 0 }, + { 451, 52, 0 , 0 }, + { 459, 52, 0 , 0 }, + { 467, 52, 5 , 13 }, + { 480, 52, 5 , 11 }, + { 493, 52, 5 , 14 }, + { 4, 76, 5 , 14 }, + { 17, 76, 5 , 14 }, + { 30, 76, 5 , 14 }, + { 43, 76, 5 , 13 }, + { 56, 76, 5 , 13 }, + { 69, 76, 9 , 11 }, + { 86, 76, 5 , 13 }, + { 99, 76, 5 , 14 }, + { 112, 76, 5 , 14 }, + { 125, 76, 5 , 14 }, + { 138, 76, 5 , 13 }, + { 151, 76, 2 , 14 }, + { 161, 76, 2 , 14 }, + { 171, 76, 3 , 14 }, + { 182, 76, 3 , 13 }, + { 193, 76, 5 , 11 }, + { 206, 76, 5 , 14 }, + { 219, 76, 5 , 14 }, + { 232, 76, 5 , 14 }, + { 245, 76, 5 , 14 }, + { 258, 76, 5 , 14 }, + { 271, 76, 5 , 13 }, + { 284, 76, 5 , 5 }, + { 297, 76, 5 , 13 }, + { 310, 76, 5 , 14 }, + { 323, 76, 5 , 14 }, + { 336, 76, 5 , 14 }, + { 349, 76, 5 , 13 }, + { 362, 76, 5 , 14 }, + { 375, 76, 5 , 11 }, + { 388, 76, 5 , 11 }, + { 401, 76, 5 , 11 }, + { 414, 76, 5 , 11 }, + { 427, 76, 5 , 11 }, + { 440, 76, 5 , 11 }, + { 453, 76, 5 , 10 }, + { 466, 76, 5 , 10 }, + { 479, 76, 9 , 8 }, + { 496, 76, 5 , 10 }, + { 4, 100, 5 , 11 }, + { 17, 100, 5 , 11 }, + { 30, 100, 5 , 11 }, + { 43, 100, 5 , 10 }, + { 56, 100, 2 , 11 }, + { 66, 100, 2 , 11 }, + { 76, 100, 3 , 11 }, + { 87, 100, 3 , 10 }, + { 98, 100, 5 , 11 }, + { 111, 100, 5 , 11 }, + { 124, 100, 5 , 11 }, + { 137, 100, 5 , 11 }, + { 150, 100, 5 , 11 }, + { 163, 100, 5 , 11 }, + { 176, 100, 5 , 10 }, + { 189, 100, 5 , 5 }, + { 202, 100, 5 , 10 }, + { 215, 100, 5 , 11 }, + { 228, 100, 5 , 11 }, + { 241, 100, 5 , 11 }, + { 254, 100, 5 , 10 }, + { 267, 100, 5 , 13 }, + { 280, 100, 4 , 8 }, + { 292, 100, 5 , 12 }, +}; + +// Font glyphs info data +// NOTE: No glyphs.image data provided +static const GlyphInfo terminalFontGlyphs[189] = { + { 32, 0, 0, 4, { 0 }}, + { 33, 1, 3, 3, { 0 }}, + { 34, 1, 3, 5, { 0 }}, + { 35, 1, 3, 8, { 0 }}, + { 36, 1, 3, 7, { 0 }}, + { 37, 1, 3, 7, { 0 }}, + { 38, 1, 3, 7, { 0 }}, + { 39, 1, 3, 3, { 0 }}, + { 40, 1, 2, 4, { 0 }}, + { 41, 1, 2, 4, { 0 }}, + { 42, 1, 3, 5, { 0 }}, + { 43, 1, 7, 7, { 0 }}, + { 44, 1, 13, 3, { 0 }}, + { 45, 1, 9, 7, { 0 }}, + { 46, 1, 13, 3, { 0 }}, + { 47, 1, 2, 8, { 0 }}, + { 48, 1, 3, 7, { 0 }}, + { 49, 1, 3, 4, { 0 }}, + { 50, 1, 3, 7, { 0 }}, + { 51, 1, 3, 7, { 0 }}, + { 52, 1, 3, 7, { 0 }}, + { 53, 1, 3, 7, { 0 }}, + { 54, 1, 3, 7, { 0 }}, + { 55, 1, 3, 7, { 0 }}, + { 56, 1, 3, 7, { 0 }}, + { 57, 1, 3, 7, { 0 }}, + { 58, 1, 6, 3, { 0 }}, + { 59, 1, 6, 3, { 0 }}, + { 60, 1, 7, 6, { 0 }}, + { 61, 1, 8, 7, { 0 }}, + { 62, 1, 7, 6, { 0 }}, + { 63, 1, 3, 7, { 0 }}, + { 64, 2, 3, 15, { 0 }}, + { 65, 1, 3, 7, { 0 }}, + { 66, 1, 3, 7, { 0 }}, + { 67, 1, 3, 7, { 0 }}, + { 68, 1, 3, 7, { 0 }}, + { 69, 1, 3, 7, { 0 }}, + { 70, 1, 3, 7, { 0 }}, + { 71, 1, 3, 7, { 0 }}, + { 72, 1, 3, 7, { 0 }}, + { 73, 1, 3, 3, { 0 }}, + { 74, 1, 3, 7, { 0 }}, + { 75, 1, 3, 7, { 0 }}, + { 76, 1, 3, 7, { 0 }}, + { 77, 1, 3, 9, { 0 }}, + { 78, 1, 3, 7, { 0 }}, + { 79, 1, 3, 7, { 0 }}, + { 80, 1, 3, 7, { 0 }}, + { 81, 1, 3, 7, { 0 }}, + { 82, 1, 3, 7, { 0 }}, + { 83, 1, 3, 7, { 0 }}, + { 84, 1, 3, 7, { 0 }}, + { 85, 1, 3, 7, { 0 }}, + { 86, 1, 3, 7, { 0 }}, + { 87, 1, 3, 9, { 0 }}, + { 88, 1, 3, 7, { 0 }}, + { 89, 1, 3, 7, { 0 }}, + { 90, 1, 3, 7, { 0 }}, + { 91, 1, 2, 4, { 0 }}, + { 92, 1, 2, 8, { 0 }}, + { 93, 1, 2, 4, { 0 }}, + { 94, 1, 3, 7, { 0 }}, + { 95, 1, 15, 7, { 0 }}, + { 96, 1, 0, 4, { 0 }}, + { 97, 1, 6, 7, { 0 }}, + { 98, 1, 3, 7, { 0 }}, + { 99, 1, 6, 7, { 0 }}, + { 100, 1, 3, 7, { 0 }}, + { 101, 1, 6, 7, { 0 }}, + { 102, 1, 3, 6, { 0 }}, + { 103, 1, 6, 7, { 0 }}, + { 104, 1, 3, 7, { 0 }}, + { 105, 1, 3, 3, { 0 }}, + { 106, 1, 3, 3, { 0 }}, + { 107, 1, 3, 7, { 0 }}, + { 108, 1, 3, 3, { 0 }}, + { 109, 1, 6, 9, { 0 }}, + { 110, 1, 6, 7, { 0 }}, + { 111, 1, 6, 7, { 0 }}, + { 112, 1, 6, 7, { 0 }}, + { 113, 1, 6, 7, { 0 }}, + { 114, 1, 6, 6, { 0 }}, + { 115, 1, 6, 7, { 0 }}, + { 116, 1, 3, 5, { 0 }}, + { 117, 1, 6, 7, { 0 }}, + { 118, 1, 6, 7, { 0 }}, + { 119, 1, 6, 9, { 0 }}, + { 120, 1, 6, 7, { 0 }}, + { 121, 1, 6, 7, { 0 }}, + { 122, 1, 6, 7, { 0 }}, + { 123, 1, 2, 5, { 0 }}, + { 124, 1, 1, 3, { 0 }}, + { 125, 1, 2, 5, { 0 }}, + { 126, 1, 8, 7, { 0 }}, + { 161, 1, 3, 3, { 0 }}, + { 162, 1, 3, 7, { 0 }}, + { 163, 1, 3, 7, { 0 }}, + { 8364, 1, 3, 7, { 0 }}, + { 165, 1, 3, 7, { 0 }}, + { 352, 0, 0, 0, { 0 }}, + { 167, 0, 0, 0, { 0 }}, + { 353, 0, 0, 0, { 0 }}, + { 169, 1, 3, 9, { 0 }}, + { 170, 0, 0, 0, { 0 }}, + { 171, 0, 0, 0, { 0 }}, + { 172, 1, 8, 7, { 0 }}, + { 174, 1, 3, 9, { 0 }}, + { 175, 1, 1, 7, { 0 }}, + { 176, 1, 0, 5, { 0 }}, + { 177, 1, 7, 7, { 0 }}, + { 178, 0, 0, 0, { 0 }}, + { 179, 0, 0, 0, { 0 }}, + { 381, 0, 0, 0, { 0 }}, + { 181, 1, 6, 7, { 0 }}, + { 182, 1, 3, 9, { 0 }}, + { 183, 1, 8, 3, { 0 }}, + { 382, 0, 0, 0, { 0 }}, + { 185, 0, 0, 0, { 0 }}, + { 186, 0, 0, 0, { 0 }}, + { 187, 0, 0, 0, { 0 }}, + { 338, 0, 0, 0, { 0 }}, + { 339, 0, 0, 0, { 0 }}, + { 376, 1, 1, 7, { 0 }}, + { 191, 1, 3, 7, { 0 }}, + { 192, 1, 0, 7, { 0 }}, + { 193, 1, 0, 7, { 0 }}, + { 194, 1, 0, 7, { 0 }}, + { 195, 1, 0, 7, { 0 }}, + { 196, 1, 1, 7, { 0 }}, + { 197, 1, 1, 7, { 0 }}, + { 198, 1, 3, 11, { 0 }}, + { 199, 1, 3, 7, { 0 }}, + { 200, 1, 0, 7, { 0 }}, + { 201, 1, 0, 7, { 0 }}, + { 202, 1, 0, 7, { 0 }}, + { 203, 1, 1, 7, { 0 }}, + { 204, 0, 0, 3, { 0 }}, + { 205, 1, 0, 3, { 0 }}, + { 206, 0, 0, 3, { 0 }}, + { 207, 0, 1, 3, { 0 }}, + { 208, 1, 3, 7, { 0 }}, + { 209, 1, 0, 7, { 0 }}, + { 210, 1, 0, 7, { 0 }}, + { 211, 1, 0, 7, { 0 }}, + { 212, 1, 0, 7, { 0 }}, + { 213, 1, 0, 7, { 0 }}, + { 214, 1, 1, 7, { 0 }}, + { 215, 1, 7, 7, { 0 }}, + { 216, 1, 2, 7, { 0 }}, + { 217, 1, 0, 7, { 0 }}, + { 218, 1, 0, 7, { 0 }}, + { 219, 1, 0, 7, { 0 }}, + { 220, 1, 1, 7, { 0 }}, + { 221, 1, 0, 7, { 0 }}, + { 222, 1, 3, 7, { 0 }}, + { 223, 1, 3, 7, { 0 }}, + { 224, 1, 3, 7, { 0 }}, + { 225, 1, 3, 7, { 0 }}, + { 226, 1, 3, 7, { 0 }}, + { 227, 1, 3, 7, { 0 }}, + { 228, 1, 4, 7, { 0 }}, + { 229, 1, 4, 7, { 0 }}, + { 230, 1, 6, 11, { 0 }}, + { 231, 1, 6, 7, { 0 }}, + { 232, 1, 3, 7, { 0 }}, + { 233, 1, 3, 7, { 0 }}, + { 234, 1, 3, 7, { 0 }}, + { 235, 1, 4, 7, { 0 }}, + { 236, 0, 3, 3, { 0 }}, + { 237, 1, 3, 3, { 0 }}, + { 238, 0, 3, 3, { 0 }}, + { 239, 0, 4, 3, { 0 }}, + { 240, 1, 3, 7, { 0 }}, + { 241, 1, 3, 7, { 0 }}, + { 242, 1, 3, 7, { 0 }}, + { 243, 1, 3, 7, { 0 }}, + { 244, 1, 3, 7, { 0 }}, + { 245, 1, 3, 7, { 0 }}, + { 246, 1, 4, 7, { 0 }}, + { 247, 1, 7, 7, { 0 }}, + { 248, 1, 5, 7, { 0 }}, + { 249, 1, 3, 7, { 0 }}, + { 250, 1, 3, 7, { 0 }}, + { 251, 1, 3, 7, { 0 }}, + { 252, 1, 4, 7, { 0 }}, + { 253, 1, 3, 7, { 0 }}, + { 254, 1, 6, 6, { 0 }}, + { 255, 1, 4, 7, { 0 }}, +}; + +// Style loading function: Terminal +static void GuiLoadStyleTerminal(void) +{ + // Load style properties provided + // NOTE: Default properties are propagated + for (int i = 0; i < TERMINAL_STYLE_PROPS_COUNT; i++) + { + GuiSetStyle(terminalStyleProps[i].controlId, terminalStyleProps[i].propertyId, terminalStyleProps[i].propertyValue); + } + + // Custom font loading + // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function + int terminalFontDataSize = 0; + unsigned char *data = DecompressData(terminalFontData, TERMINAL_STYLE_FONT_ATLAS_COMP_SIZE, &terminalFontDataSize); + Image imFont = { data, 512, 256, 1, 2 }; + + Font font = { 0 }; + font.baseSize = 16; + font.glyphCount = 189; + + // Load texture from image + font.texture = LoadTextureFromImage(imFont); + UnloadImage(imFont); // Uncompressed image data can be unloaded from memory + + // Copy char recs data from global fontRecs + // NOTE: Required to avoid issues if trying to free font + font.recs = (Rectangle *)RAYGUI_MALLOC(font.glyphCount*sizeof(Rectangle)); + memcpy(font.recs, terminalFontRecs, font.glyphCount*sizeof(Rectangle)); + + // Copy font char info data from global fontChars + // NOTE: Required to avoid issues if trying to free font + font.glyphs = (GlyphInfo *)RAYGUI_MALLOC(font.glyphCount*sizeof(GlyphInfo)); + memcpy(font.glyphs, terminalFontGlyphs, font.glyphCount*sizeof(GlyphInfo)); + + GuiSetFont(font); + + // Setup a white rectangle on the font to be used on shapes drawing, + // it makes possible to draw shapes and text (full UI) in a single draw call + Rectangle fontWhiteRec = { 510, 254, 1, 1 }; + SetShapesTexture(font.texture, fontWhiteRec); + + //----------------------------------------------------------------- + + // TODO: Custom user style setup: Set specific properties here (if required) + // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT +} diff --git a/include/styles/terminal/style_terminal.png b/include/styles/terminal/style_terminal.png new file mode 100644 index 0000000..0b88867 Binary files /dev/null and b/include/styles/terminal/style_terminal.png differ diff --git a/include/styles/terminal/style_terminal.rgs b/include/styles/terminal/style_terminal.rgs new file mode 100644 index 0000000..6cea868 Binary files /dev/null and b/include/styles/terminal/style_terminal.rgs differ diff --git a/include/styles/terminal/style_terminal.txt.rgs b/include/styles/terminal/style_terminal.txt.rgs new file mode 100644 index 0000000..fc996de --- /dev/null +++ b/include/styles/terminal/style_terminal.txt.rgs @@ -0,0 +1,27 @@ +# +# rgs style text file (v4.0) - raygui style file generated using rGuiStyler +# +# Provided info: +# f fontGenSize charsetFileName fontFileName +# p Property description +# +# WARNING: This style uses a custom font, must be provided with style file +# +f 16 charset.txt Mecha.ttf +p 00 00 0x1c8d00ff DEFAULT_BORDER_COLOR_NORMAL +p 00 01 0x161313ff DEFAULT_BASE_COLOR_NORMAL +p 00 02 0x38f620ff DEFAULT_TEXT_COLOR_NORMAL +p 00 03 0xc3fbc6ff DEFAULT_BORDER_COLOR_FOCUSED +p 00 04 0x43bf2eff DEFAULT_BASE_COLOR_FOCUSED +p 00 05 0xdcfadcff DEFAULT_TEXT_COLOR_FOCUSED +p 00 06 0x1f5b19ff DEFAULT_BORDER_COLOR_PRESSED +p 00 07 0x43ff28ff DEFAULT_BASE_COLOR_PRESSED +p 00 08 0x1e6f15ff DEFAULT_TEXT_COLOR_PRESSED +p 00 09 0x223b22ff DEFAULT_BORDER_COLOR_DISABLED +p 00 10 0x182c18ff DEFAULT_BASE_COLOR_DISABLED +p 00 11 0x244125ff DEFAULT_TEXT_COLOR_DISABLED +p 00 16 0x00000010 TEXT_SIZE +p 00 17 0x00000000 TEXT_SPACING +p 00 18 0xe6fce3ff LINE_COLOR +p 00 19 0x0c1505ff BACKGROUND_COLOR +p 00 20 0x00000018 TEXT_LINE_SPACING diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..a6a84e7 --- /dev/null +++ b/run.sh @@ -0,0 +1,2 @@ +cmake --build build -j +./build/{program name} \ No newline at end of file diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..9ed5661 --- /dev/null +++ b/src/main.c @@ -0,0 +1,96 @@ +#include "raylib.h" +#include "raygui.h" + +#define SCALEFACTOR 4 +//------------------------------------------------------------------------------------ +// Program main entry point +//------------------------------------------------------------------------------------ +struct Master { + float renderWidth; + float renderHeight; + float virtualWidth; + float virtualHeight; + float scalefactor; +}; + +//Function Declarations +//---------------------------------------------------------------------------------- +void Virtual_Screen_To_Renderer(RenderTexture2D target, struct Master* g); +//---------------------------------------------------------------------------------- + +int main(void) +{ + //---------------------------------------------------------------------------------- + // Initialization + //---------------------------------------------------------------------------------- + SetConfigFlags(FLAG_FULLSCREEN_MODE); + InitWindow(0, 0, "StockBot"); + SetTargetFPS(60); // Set our game to run at 60 frames-per-second + GuiLoadStyle("include/styles/terminal/style_terminal.rgs"); + + struct Master g = (struct Master) + { + .renderHeight = GetRenderHeight(), + .renderWidth = GetRenderWidth(), + .virtualHeight = g.renderHeight / SCALEFACTOR, + .virtualWidth = g.renderWidth / SCALEFACTOR, + .scalefactor = SCALEFACTOR, + }; + + // Create offscreen target and make scaling crisp + RenderTexture2D target = LoadRenderTexture(g.virtualWidth, g.virtualHeight); + SetTextureFilter(target.texture, TEXTURE_FILTER_POINT); + + // Tell raygui/mouse to use virtual coords + SetMouseOffset(0, 0); + SetMouseScale((float)g.virtualWidth/g.renderWidth, (float)g.virtualHeight/g.renderHeight); + + //---------------------------------------------------------------------------------- + + // Main game loop + while (!WindowShouldClose()) // Detect window close button or ESC key + { + //---------------------------------------------------------------------------------- + // Update + //---------------------------------------------------------------------------------- + + // keep mouse scaled to virtual space (good to set each frame) + SetMouseScale((float)g.virtualWidth/g.renderWidth, (float)g.virtualHeight/g.renderHeight); + + + //---------------------------------------------------------------------------------- + // Draw + //---------------------------------------------------------------------------------- + // Here we draw to our virtual screen "target" + BeginTextureMode(target); + ClearBackground(GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR))); + + + EndTextureMode(); + + //this is where we take what we drew to the virutal screen and actually render it on the real screen. + BeginDrawing(); + Virtual_Screen_To_Renderer(target, &g); + EndDrawing(); + //---------------------------------------------------------------------------------- + } + + //---------------------------------------------------------------------------------- + // De-Initialization + //-------------------------------------------------------------------------------------- + UnloadRenderTexture(target); + CloseWindow(); // Close window and OpenGL context + //-------------------------------------------------------------------------------------- + + return 0; +} + +void Virtual_Screen_To_Renderer(RenderTexture2D target, struct Master* g) +{ + ClearBackground(BLACK); + // Source is the texture size + // note: Y is inverted for render textures (when drawing we go from the top left corner, but in textures they are drawing from the bottom left.) + Rectangle src = { 0, 0, (float)target.texture.width, -(float)target.texture.height}; + Rectangle dst = { 0, 0, (float)g->renderWidth, (float)g->renderHeight }; // scale to full screen (2×) + DrawTexturePro(target.texture, src, dst, (Vector2){0,0}, 0.0f, WHITE); +} diff --git a/src/raygui_impl.c b/src/raygui_impl.c new file mode 100644 index 0000000..f18878d --- /dev/null +++ b/src/raygui_impl.c @@ -0,0 +1,3 @@ +#define RAYGUI_IMPLEMENTATION + +#include "raygui.h"