Commit Graph

709 Commits

Author SHA1 Message Date
Ray
0f5f0f7d00 Update raygui.h 2026-01-20 21:02:08 +01:00
Ray
51e6bcb393 Update raygui.h 2026-01-09 20:07:07 +01:00
Ray
04282d1763 Update year to 2026 2026-01-02 13:40:53 +01:00
Ray
0b94b80c92 Update raygui.h 2025-12-20 22:09:03 +01:00
Ray
867ca4bf8d Update raygui.h 2025-12-11 21:41:33 +01:00
367e169ad3 initializ some variables to prevent warnings (#515) 2025-12-02 23:31:24 +01:00
Ray
1a74db2ab3 Update raygui.h 2025-11-25 12:15:44 +01:00
Ray
3aea427fc8 REVIEWED: Out of bounds warning 2025-11-18 20:59:05 +01:00
Ray
773d1ec52b Update raygui.h 2025-11-18 16:49:44 +01:00
Ray
ff4dbd0712 Update raygui.h 2025-11-13 22:49:22 +01:00
Ray
aed63cedd1 Update raygui.h 2025-11-12 11:09:02 +01:00
Ray
4436a897f9 ADDED: New icons 2025-11-12 09:41:36 +01:00
Ray
d4ebcdc2be Update raygui.h 2025-11-11 19:38:38 +01:00
Ray
860e46d3f8 Reviewed text cursor 2025-11-09 14:06:53 +01:00
Ray
b9971133b2 Comment unused variable 2025-10-21 12:28:05 +02:00
Ray
9cdfec460b Update raygui.h 2025-09-18 15:26:53 +02:00
Ray
546b4bacf4 Using calloc() instead of malloc() 2025-09-10 21:03:27 +02:00
Ray
cf3aab1e9f REVIEWED: Code sections description for consistency 2025-09-02 12:35:58 +02:00
Ray
6530ee136b Fix #501 2025-08-15 12:21:17 +02:00
Ray
1b2612cf75 Minor format tweaks to align with new raylib conventions 2025-08-08 21:49:33 +02:00
Ray
54ee53e7d7 Update raygui.h 2025-08-04 23:36:27 +02:00
Ray
b4eb06657b Reviewed GuiGetTextWidth() exposed to public API 2025-07-30 16:46:49 +02:00
c4c87f2971 Making GetTextWidth part of the public API (#480)
GetTextWidth is useuful to be called publicly. E.g: when you want to get the final horizontal size of a Slider that has textBefore and textAfter.
2025-07-30 16:40:46 +02:00
1736d71bd7 Improve customizeability of allocator macros (#475)
Co-authored-by: Ray <raysan5@gmail.com>
2025-07-28 23:31:55 +02:00
be051532d3 Removed unpaired multi-line comment end (#497)
An unpaired multi-line comment end found it's way infront of a comment. I simply removed it.
2025-07-28 23:28:10 +02:00
Ray
ff866904d0 Review formating 2025-07-26 21:50:00 +02:00
Ray
99b37e4d4f Update raygui.h 2025-06-07 15:28:52 +02:00
Ray
40b8c25ec1 Update raygui.h 2025-05-29 12:31:55 +02:00
Ray
f663b31cd6 Formatting tweaks 2025-05-10 22:45:25 +02:00
cb78993237 Add minus toggle for GuiValueBox & GuiValueBoxFloat (#485)
It was impossible to enter negative number.
Now pressing KEY_MINUS toggles sign for the value when value is not 0.
Due to original implementation it's not possible to start entry with minus symbol or have added minus while the value is 0.

fix max index
2025-05-06 22:09:07 +02:00
Ray
0895c8b8c4 Update raygui.h 2025-04-14 12:37:12 +02:00
Ray
c623a92f83 Update raygui.h 2025-04-13 20:38:01 +02:00
Ray
566c73f4e4 ADDED: Some required icons 2025-04-01 01:01:16 +02:00
Ray
58ba11d923 REMOVED: GuiSliderPro(), functionality was redundant 2025-04-01 01:00:56 +02:00
Ray
cb1c54d143 Avoid size_t 2025-03-25 22:50:45 +01:00
37f355ea6f Fix integer overflow potential (#477) 2025-03-25 22:46:28 +01:00
107214fa23 Replace RL_FREE with RAYGUI_FREE (#479) 2025-03-25 22:44:10 +01:00
1536ae35c7 removed left-right padding from GuiProgressBar (#473) 2025-03-14 13:16:02 +01:00
460411efef Fix enum compare warning in GuiPanel (#456) 2025-03-13 16:54:06 +01:00
63319f2ee7 Export GuiSliderPro and add static to GetTextLines (for shared libs) (#470)
I was having issues using it in conjunction with raylib (in Windows), so added these annotations here.

Let me know if it's okay, thanks for the project, Ray!!
2025-03-13 16:51:51 +01:00
Ray
d5459559e5 Update raygui.h 2025-03-13 16:42:25 +01:00
Ray
fc9d852d4a Update raygui.h 2025-03-10 17:10:07 +01:00
9a95871701 GuiTextBox() rework (#466)
* GuiTextBox: Fix possible overflow when handling backspace and delete

Simplify code a bit by removing unnecessary checks

* GuiTextBox: Fix CTRL+Backspace behavior

Remove undefined behavior (previously called isspace with oob values)
Fix unable to delete first character
Fix handling of symbols like any other "standard" input field or text editor on Windows does it

* GuiTextBox: Add CTRL+DELETE, CTRL+LEFT and CTRL+RIGHT handling

Copy behavior from programs like notepad, Notepad++, OneNote, address bar in Edge, etc.

* GuiTextBox: Simplify and improve auto-cursor code

Remove one global variable and compact checks into one bool variable
Fix auto cursor triggering immediately when button is held when clicking edit box
Tuned the values, so they match cooldown and delay when entering text

* GuiTextBox: Bring some checks in-line with the rest of the function
2025-02-28 15:09:58 +01:00
c198b9c34e fixed border and padding offset issue caused by BORDER_WIDTH (#465) 2025-02-28 12:28:33 +01:00
b19a0168fa Fix GuiSlider not drawing handle (#464) 2025-02-26 22:25:58 +01:00
f25b1dd757 Fix GuiTextBox handling of codepoints when deleting text and clicking with mouse (#462) 2025-02-25 21:40:57 +01:00
3397b015ef GuiTextBox paste support (#463)
* Add support for paste (CTRL+V) in GuiTextBox

* Remove commented out code

(a more elegant but incomplete solution, which does not check for control characters)
2025-02-25 21:39:31 +01:00
Ray
e4a59f0afa ADDED: GuiListView*() property LIST_ITEMS_BORDER_NORMAL
Allows creating list view with items outlined on normal state (not only when focused/selected)
2025-02-11 18:45:47 +01:00
Ray
f24b309386 REVIEWED: GuiListView() use style LIST_ITEMS_BORDER_WIDTH 2025-02-08 13:39:45 +01:00
74249a76c6 Expose RAYGUI_WINDOWBOX_CLOSEBUTTON_HEIGHT in GuiWindowBox. (#453) 2025-02-05 20:01:08 +01:00