Commit Graph

1273 Commits

Author SHA1 Message Date
Ray
b9971133b2 Comment unused variable 2025-10-21 12:28:05 +02:00
947ef5799d Lock other controls when GuiTextInputBox is open (#512)
Previously, the color picker would end up eating inputs intended for the
GuiTextInputBox!
2025-10-08 14:46:29 +02:00
Ray
681393a423 Update user links to github 2025-09-22 11:54:08 +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
9193f38424 Fixed examples (#505) 2025-08-28 22:49:47 +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
08c0c558fb fix: int comparison with unsigned int (#490) 2025-05-21 20:28:35 +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
e00c4c18e0 Fix a typo (#482) 2025-05-06 22:07:40 +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
ea928f5609 Updated all styles to latest raygui 4.x and rGuiStyler 6.0 2025-03-27 19:04:19 +01:00
Ray
decc5151e6 Updated style: default 2025-03-27 18:52:18 +01:00
Ray
8d299c3c50 REMOVED: Old raygui style files (raygui <4.x) 2025-03-27 18:45:51 +01:00
Ray
ee64fedc1f Update style_dark.png 2025-03-26 00:33:35 +01:00
Ray
060561358e ADDED: New style: Genesis 2025-03-26 00:32:37 +01:00
Ray
678bf58834 Renamed font files 2025-03-26 00:31:04 +01: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
b2ef0f864e [portable_window] fix window flicker when moving it without dragging... (#469)
...the bar. This example never expected it and was caching Window
Position, which means that position was outdated at the moment you moved
the window via other means than dragging the bar.

Fixes: https://github.com/raysan5/raygui/issues/468
2025-03-13 16:48:57 +01:00
372285ef98 Fix building and cleaning examples on OpenBSD. (#471) 2025-03-13 16:47:00 +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
Ray
ce1c756f70 REVIEWED: rltech style updated 2025-02-05 20:27:20 +01:00
Ray
4029ec0954 REVIEWED: Issue with TextJoin() #455 #457 2025-02-05 20:26:57 +01:00