Pierre Jaffuer
5d7bc6b70a
missleading doc in gui_curve_edit ( #269 )
...
EvalGuiCurve doesn't return normalized y.
2023-04-09 22:41:32 +02:00
Pierre Jaffuer
1d9fd31074
Added a new example: animation curves ( #268 )
...
* A somewhat advanced example with custom curve controls.
* Name update
* typos
* comments
2023-04-08 19:14:40 +02:00
Rob Loach
5d1de95ba2
Fix Rectangle instanitation with RAYGUI_CLITERAL ( #263 )
2023-03-19 11:13:49 +01:00
Rob Loach
abbf1b1198
[cmake] Update to raylib 4.5 ( #264 )
2023-03-19 11:13:17 +01:00
Ray
19f781780e
Update raygui.h
2023-03-07 23:16:06 +01:00
Ray
15a4151b66
Update controls_test_suite.c
2023-03-07 18:52:35 +01:00
Ray
f218fd001a
Remove trailing spaces
2023-03-06 14:58:12 +01:00
Jim Price
9f9b822338
Have GuiTextBox/GuiTextBoxMulti respect BORDER_WIDTH ( #260 )
...
GuiTextBox and GuiTextBoxMulti's focused and pressed state respect
the BORDER_WIDTH style setting, however in normal state this was
hard coded to 1. This change now allows users control over the borders
when in a normal state.
2023-03-06 13:25:29 +01:00
Ray
c02a5883e0
REVIEWED: fread()
/fwrite()
2023-02-25 01:08:49 +01:00
Ray
3cd28c0828
Update custom_sliders.c
2023-02-15 17:36:51 +01:00
Octave Decaux
cec2de3440
Added a new examples : vertical sliders and mouse-owning sliders ( #256 )
2023-02-02 15:13:34 +01:00
Ray
5b37ce0630
Added instructions to build shared library with MSVC #254
2023-01-23 20:00:48 +01:00
Ray
9e3c5009e4
FIX #252
2023-01-10 20:57:38 +01:00
Ray
42cc62e853
ADDED: GuiSetIconScale()
2023-01-10 20:57:31 +01:00
Ray
0ced5b1c0d
Merge branch 'master' of https://github.com/raysan5/raygui
2023-01-10 20:41:25 +01:00
Ray
32f16ceafd
FIX #247
2023-01-10 20:41:24 +01:00
KOLANICH
8f808dfe66
float-casting fixes in raygui.h in order to support compilation with clang 16 ( #250 )
2023-01-08 16:15:30 +01:00
Ray
b5e5271646
Update raygui.h
2023-01-04 17:30:05 +01:00
Ray
0aeac22701
Update year to 2023
2023-01-01 18:09:37 +01:00
Ray
78963b1817
Update year to 2023
2023-01-01 16:00:38 +01:00
Wytek01
fa8272d605
Update LICENSE ( #249 )
2023-01-01 12:55:15 +01:00
Rob Loach
9914eb8d94
gui_file_dialog: Fix warning ( #248 )
...
This change fixes a type warning in gui_file_dialog.h...
```
examples/custom_file_dialog/gui_file_dialog.h: In function ‘GuiFileDialog’:
examples/custom_file_dialog/gui_file_dialog.h:313:198: warning: passing argument 2 of ‘GuiListViewEx’ from incompatible pointer type [-Wincompatible-pointer-types]
313 | dowBounds.y + 48 + 20, state->windowBounds.width - 16, state->windowBounds.height - 60 - 16 - 68 }, dirFilesIcon, state->dirFiles.count, &state->itemFocused, &state->filesListScrollIndex, state->filesListActive);
| ^~~~~~~~~~~~
| |
| char **
In file included from examples/custom_file_dialog/gui_file_dialog.h:120
examples/custom_file_dialog/../../src/raygui.h:2762:50: note: expected ‘const char **’ but argument is of type ‘char **’
2762 | int GuiListViewEx(Rectangle bounds, const char **text, int count, int *focus, int *scrollIndex, int active)
```
2023-01-01 10:25:46 +01:00
Ray
64179558e4
ADDED: Tooltip API
2022-12-04 23:02:00 +01:00
Ray
85d6736be9
Consider tabs out of screen bounds
...
Avoid drawing tabs out of screen
2022-11-22 17:09:11 +01:00
Ray
bd4d2d860c
Avoid ALL warnings with MSVC
2022-11-10 16:48:06 +01:00
Rob Loach
3fedc2fac4
Fix having an extra bracket ( #243 )
2022-11-08 07:32:30 +01:00
Jeffery Myers
59cf0c7607
Use floor for mouse to cell mapping, it is more readable and would work for theoretical negative cell positions. ( #241 )
2022-11-07 19:22:28 +01:00
Ray
c16a98365f
REVERTED: GuiGrid()
cell compute, returning value was not right
...
It was validated on `rGuiIcons()`, returned value was not correct
2022-11-07 13:19:53 +01:00
Ray
03a3cce57b
ADDED: Two new icons
2022-11-07 13:13:03 +01:00
Ray
ad8e056b0c
REVIEWED: GuiFileDialog() #235
2022-11-07 12:45:38 +01:00
Ray
6e4cd54baa
REVIEWED: Parameter name #237
2022-11-07 11:18:54 +01:00
Jeffery Myers
a8062229b0
small fixes for strict compilers ( #240 )
2022-11-07 11:14:52 +01:00
Ray
d4b9d1fb32
Minor tweaks to avoid some warnings
2022-11-03 10:46:39 +01:00
Ray
abe8bba7fa
Merge branch 'master' of https://github.com/raysan5/raygui
2022-11-01 11:07:07 +01:00
Ray
1021907604
Update raygui.h
2022-11-01 11:06:59 +01:00
Jacob Dennis
9dc0b58566
Added Image struct def, updated Font struct to match raylib ( #236 )
...
Image is required for RAYGUI_STANDALONE flag to work
Font was out of sync with raylib master
Co-authored-by: jobat <jobat@toolbelt-games.com>
2022-10-31 17:47:35 +01:00
Ray
16e63f33ee
Update raygui.h
2022-10-24 18:32:35 +02:00
Ray
3386e912d3
Review literals to work with C++ and formatting details #233
2022-10-24 13:58:14 +02:00
Ray
0562c4c93f
Update raygui.h
2022-10-24 13:31:19 +02:00
Ray
d981abebd8
Update raygui.h
2022-10-22 11:30:14 +02:00
Ray
98df231227
Removed unneeded flag
2022-10-14 11:27:00 +02:00
Ray
ed4731ad9e
ADDED: GuiTabBar()
2022-10-13 17:15:49 +02:00
Ray
a3075fcaf4
Updated icons
2022-10-10 16:54:09 +02:00
Ray
5cb62810b9
REMOVED: Unneeded icon editing tools
2022-10-09 14:20:00 +02:00
Ray
f4890960d8
Keep a pointer to icons data to update it if required
...
It's useful to point to a different iconset externally if required
2022-10-09 14:05:03 +02:00
Ray
eac855b0dd
ADDED: New raygui icons, created by @gulrak
2022-10-09 11:06:16 +02:00
Ray
e4cc3ce450
Update README.md
2022-10-08 12:09:26 +02:00
Ray
3c0aaff191
Update README.md
2022-10-08 12:08:49 +02:00
Ray
5f22083d6c
Update raygui.h
2022-10-08 11:37:44 +02:00
Ray
353b8a4b5b
REDESIGNED: GuiDrawText()
to process lines separately
...
- REMOVED: `MeasureTextEx()` and `DrawTextEx()` dependencies
- REDESIGNED: `GetCodepointNext()`, simpler implementation
- REDESIGNED: `GuiTextSplit()` to receive delimiter parameter
- REVIEWED: `GetTextWidth()` implementation, line breaks used as line-ending
2022-10-06 18:10:55 +02:00
Ray
7837b9dc06
Update raygui.h
2022-10-03 17:59:36 +02:00
Ray
3e6f5fdf01
WARNING: Updated default style ListView items height
2022-10-02 13:34:02 +02:00
Ray
c49cbc9849
Remove old/buggy examples
2022-09-10 10:24:50 +02:00
Ray
b37c0df561
Delete gui_textbox_extended.h
2022-09-10 10:24:34 +02:00
Ray
680a4bca4b
Move icons directory
2022-09-10 10:24:03 +02:00
Ray
a0cded315a
Update raygui.h
2022-09-02 18:49:17 +02:00
Rob Loach
c8a2e7d442
Update to raylib 4.2 ( #223 )
2022-08-21 11:42:24 +02:00
Ray
4e2a878e71
Update year
3.2
2022-07-25 00:51:43 +02:00
Ray
9c826f213f
Updated examples to new raylib 4.2
files API
2022-06-29 19:45:47 +02:00
Ray
7ef0ae713b
Update controls_test_suite.c
2022-06-29 19:18:10 +02:00
gulrak
38236a5513
Fix merge bug introduced with #211 ( #212 )
2022-06-09 22:42:33 +02:00
Ray
fc6742a5fe
Minor formating tweak
2022-06-09 21:09:47 +02:00
gulrak
798da1b522
Remove two potential out of bounds crashes in GuiTextBoxMulti ( #211 )
2022-06-09 21:07:10 +02:00
gulrak
1b18e43768
GtuiTextBox(): allow edits that fit textSize but not visual bounds ( #210 )
2022-06-09 21:05:45 +02:00
Ray
47269f30ce
WARNING: RENAMED: GetDroppedFiles()
to LoadDroppedFiles()
2022-06-06 20:40:09 +02:00
Ray
5bcfa6ccdc
Update raygui.h
2022-06-03 11:48:39 +02:00
Ray
c29da799cc
Update style_selector.c
2022-06-03 11:48:33 +02:00
Ray
2f127b3e83
REVIEWED: Possible memory leak #202
2022-06-02 20:11:05 +02:00
Ray
1f920bf264
REVIEWED: guiIconScale #196
2022-06-02 19:56:21 +02:00
Ray
df117f84cb
REVIEWED: Narrowing issue with styles #179
...
Actually this issue is a bit tricky, C++ (g++ only) complains about narrowing on styles if `propertyValue` is assigned an hexadecimal value because it was not `unsigned int`, making it unsigned it avoids that error but then properties can only be positive... maybe we need some property value to be negative?
Maybe this issue will require further review in the future.
2022-06-01 20:48:20 +02:00
Ray
4232b2a0e7
REVIEWED: Created VS2022 projects for examples
...
Some renames and reviews
2022-06-01 20:40:42 +02:00
Ray
f9483a6a52
Merge branch 'master' of https://github.com/raysan5/raygui
2022-06-01 20:05:56 +02:00
Ray
99299c3f06
REVIEWED: Narrowing issue for g++ #179
...
It requires review for MSVC
2022-06-01 20:05:33 +02:00
Ray
161dc0ed84
Update README.md
2022-06-01 19:55:02 +02:00
Ray
6cff9e20d4
Reviewed latests PRs formating
2022-05-29 17:45:05 +02:00
gulrak
013f1a2772
add distinct icon-only buffer for internal use ( #208 )
2022-05-29 17:26:08 +02:00
gulrak
f534a9a265
Ensure utf8 codepoints don't overflow buffer and backspace handles them correctly ( #207 )
2022-05-28 10:10:42 +02:00
gulrak
694e770351
Fix for unsafe call of MeasureTextEx in GetTextWidth ( #204 )
2022-05-21 20:05:23 +02:00
Ray
7b2e7a107b
WARNING: RENAMED: Some enum values, avoiding prefixes
...
This is a change for library consistency. I choose the option that translates into less writing for users.
2022-05-21 12:08:18 +02:00
Ray
781123c647
Merge branch 'master' of https://github.com/raysan5/raygui
2022-05-21 12:05:48 +02:00
Ray
9113b1e4c9
FIX icon scale variable #199
2022-05-21 12:02:05 +02:00
Crydsch
486bc9b5e3
Comparison is always false because keyCount >= 0 ( #201 )
2022-05-21 11:48:39 +02:00
Ray
9554ca8d63
Update raygui.h
2022-05-19 13:24:07 +02:00
Ray
ffb4a7a851
ADDED: Icon alarm
2022-05-17 20:34:49 +02:00
furudbat
c991cbcaf8
FIX: left shift of 1 by 31 places cannot be represented in type 'int' ( #198 )
2022-05-06 11:51:02 +02:00
Ray
f13c5c3ec3
Do not force GuiScrollPanel()
up/down key inputs
2022-05-04 11:53:06 +02:00
Ray
865bb29376
REVIEWED: GuiScrollPanel()
2022-04-06 17:59:10 +02:00
Fabien Freling
c4e121d548
Store secret text as static variable ( #195 )
...
When compiling with Zig, the old implementation
raises this error:
```
error: expected type '[*c]u8', found '*const [16:0]u8'
note: cast discards const qualifier
```
As it does not allow casting away the const qualifier,
we need to store the "********" placeholder in a writable
variable.
Co-authored-by: Fabien Freling <fabien.freling@momagroup.com>
2022-04-06 16:02:00 +02:00
Ray
baf3790cac
ADDED: New icon: FOLDER_ADD
2022-04-01 16:38:15 +02:00
Ray
4c5784f07d
Update raygui.h
2022-03-30 20:27:20 +02:00
Ray
8b28248552
Merge branch 'master' of https://github.com/raysan5/raygui
2022-03-29 18:11:19 +02:00
Ray
ec3a7a414d
minor tweaks
2022-03-29 18:11:12 +02:00
Ray
1fdc76d8ad
Update README.md
2022-03-29 18:00:36 +02:00
Ray
7137b8331d
REVIEWED: GuiProgressBar() #192
2022-03-29 17:25:49 +02:00
Ray
483b3a17ad
REVIEWED: Icon name: FILE_NEW to FILE_ADD #191
2022-03-28 17:33:19 +02:00
boukew99
4466262b50
add max to GuiProgressBar ( #190 )
...
Progressbar cannot visualy overflow anymore and returning value has meaning now. I considered adding min, but have not needed it yet.
2022-03-28 13:30:06 +02:00
Ray
6d79cdf2fd
Updated raygui icons info
2022-03-26 18:11:50 +01:00
Ray
f08ec1d08a
ADDED: raygui icons (exported with rGuiIcons
)
2022-03-26 17:49:24 +01:00
Ray
453bf67c40
Reviewed logo
2022-03-26 00:53:41 +01:00
Ray
84246d75e8
ADDED: GuiSetIconScale()
fixes #182
2022-03-22 18:19:48 +01:00