Ray
ef99aafee9
Renamed some functions
2021-03-12 18:01:14 +01:00
Jeffery Myers
3749de3ef8
Fix typecast warnings ( #118 )
2021-02-24 09:30:09 +01:00
Lorenz Junglas
3627bb960a
Move include guard endif to end of file ( #121 )
...
Resolves #120
2021-02-01 12:59:15 +01:00
raysan5
28d7584fc1
Corrected build mode typo #117
2020-12-30 17:41:57 +01:00
Nomi
b4288f969c
Add horizontal scroll ( #116 )
...
Add horizontal scroll (Shift + Mouse wheel) for Scroll Panel control
2020-12-28 20:42:20 +01:00
Jeffery Myers
7dae5b06f7
use the same style of dll export/import definition and extern c as raylib, so it actually works on windows. ( #115 )
2020-12-26 19:27:50 +01:00
Ray
3b44da667b
Updated to raylib 3.5
...
Use GetCharPressed() instead of GetKeyPressed()
2020-12-18 19:50:57 +01:00
badlydrawnrod
60605f01b6
Handle CRLF line endings reading fontFileName. ( #114 )
...
If you have a style file with CRLF line endings and specify a font file on a system that expects LF line endings, then the font file will fail to load with an error such as...
WARNING: FILEIO: [./assets/terminal/Mecha.ttf
] Failed to open file
...because it sees the CR as part of the name.
Adding '\r' to the negated scanset for sscanf() fixes the issue.
2020-12-14 16:11:17 +01:00
raysan5
95b225b90c
GuiTextBox(): Support Unicode inputs #99
2020-07-13 19:53:17 +02:00
Paul Brüll
6d2d6819fa
GuiTextBoxMulti now will also break lines when encountering a newline character ( #97 )
...
* Fix for issue #94 : infinite loop on space-free sequences in text that are wider than textbox bounds
marked no lastSpacePos as -1.
check for a space-char had to come earlier than check for width overrun.
if no space found in this line but line too wide, wrap sequence and start new line with textWidth of last character.
reset lastSpacePos on every new line.
* GuiTextBoxMulti now will also break when encountering a newline character
Co-authored-by: Ray <raysan5@gmail.com>
2020-07-04 11:30:33 +02:00
Paul Brüll
4eda62925c
Fix for issue #94 : infinite loop on space-free sequences in text that are wider than textbox bounds ( #95 )
...
marked no lastSpacePos as -1.
check for a space-char had to come earlier than check for width overrun.
if no space found in this line but line too wide, wrap sequence and start new line with textWidth of last character.
reset lastSpacePos on every new line.
2020-06-20 17:51:46 +02:00
raysan5
65bad19e26
Update raygui.h
2020-05-18 18:31:45 +02:00
raysan5
4643d3769d
Corrected issue with GuiCOlorPicker() drifting
2020-05-05 10:28:01 +02:00
Rob Loach
8c33be58b2
Update raygui Rectangle to match raylib Rectangle ( #88 )
...
Rectangle in raygui should use a float.
2020-05-04 20:14:04 +02:00
raysan5
8a38a8028e
Bumped version
2020-05-03 21:25:00 +02:00
raysan5
76d734bb30
Move all rectangles drawing to one single function
...
Now all controls just use GuiDrawRectangle() that receives border parameters if required, it replaces previous DrawRectangle()/DrawRectangleRec() + DrawRectangleLinesEx() combinations.
It centralizes rectangles drawing into a single function, allowing some further customization in the future if required...
2020-05-03 21:23:45 +02:00
raysan5
4758b45676
Corrected some typos
2020-05-03 21:19:53 +02:00
Rob Loach
fa8b958a91
Move CMake files to projects/CMake ( #87 )
...
Fixes #86
2020-05-01 13:31:15 +02:00
Loknath Bharti
e689c710e4
Update CMakeLists.txt ( #83 )
...
Remove comma after RAYGUI_HEADERS or make install will not install the headers because RAYGUI_HEADERS is not set. ", " is an unreported syntactic error.
2020-04-24 23:16:18 +02:00
Rob Loach
0fdacc87f6
Add CMake definitions ( #79 )
2020-04-16 13:24:03 +02:00
raysan5
6346ae2246
Remove trailing spaces
2020-04-06 23:19:42 +02:00
raysan5
b2974f3d28
Review issue sscanf() and hex value #78
2020-03-26 18:04:10 +01:00
Ray
18a32e61ab
GuiGrid() Corrected issue with div by 0
2020-03-12 12:29:20 +01:00
Ray
6cf73a3054
GuiTextBoxMulti(), minor tweak to align cursor
2020-03-11 16:09:58 +01:00
Ray
9d911f7104
REVIEWED: IsMouseButtonPressed() to use define value
2020-03-11 16:00:41 +01:00
Ray
d3c810311c
REVIEWED: GuiTextBoxMulti() #54
...
Simplified code, avoid line breaking.
WARNING: If a line is longer than box width, it crashes... word-wrap implementation requires some review...
2020-03-11 16:00:09 +01:00
Ray
9d1e48bfe6
Expose internal GuiColor*() controls #74
2020-03-11 12:27:20 +01:00
Ray
6f80bfbbd1
Updated to raygui 2.7
2020-02-20 16:43:24 +01:00
Ray
ffdeef8d17
Experimenting with a tooltips API
...
Found several limitations:
- Tooltip timming can not be properly set on imgui mode
- Tooltip underlap to controls drawn after current control
Still, a quite interesting feature for further analysis.
2020-02-20 16:36:18 +01:00
Ray
b8932dab26
RENAMED: riconsdata.h to ricons.h
2020-02-14 23:18:43 +01:00
Ray
efe2a42cee
Remove unneded define
2020-01-30 18:02:26 +01:00
Ray
4fb2b73a15
Addressed issue #66
...
NOTE: GetDirectoryPath() has also been updated in raylib, latest master branch version must be used!
2020-01-26 12:55:14 +01:00
Ray
aa28f6c759
Review GetTextIcon() for #67
2020-01-26 12:00:33 +01:00
Ray
e1e296583e
Review custom allocators warnings
2020-01-26 12:00:14 +01:00
Ray
4047b43b10
Removed atoi() dependency
2020-01-24 18:01:57 +01:00
Ray
146068751c
Improved standalone support and example
2020-01-22 13:43:46 +01:00
raysan5
fce438cd1c
Support custom memory allocators
2020-01-19 11:21:29 +01:00
raysan5
09d583687a
Review functions declaration properties
2020-01-19 11:09:09 +01:00
Yunoinsky
9f589be0c2
🐛 Fixed GuiGrid, GuiTextBoxMult, README (outdated #define for icons) ( #64 )
2020-01-12 23:59:41 +01:00
raysan5
40ceed83cc
Update year to 2020
2020-01-06 13:50:05 +01:00
Ray
0843425e4e
Rename and review riconsdata.h
2019-11-26 00:54:39 +01:00
Ray
f296f53a1c
Review defines
2019-11-26 00:54:13 +01:00
Ray
1beef1c0e0
Move ricons logic to raygui
...
Now ricons.h only contains icons data, so, it can be easily generated (and replaced) using rGuiIcons tool.
2019-11-25 19:54:32 +01:00
Ray
1cc900bff9
Review some logic
2019-11-25 19:41:15 +01:00
Ray
a2c5ffc272
Move text box extended to separate module
2019-11-25 19:07:40 +01:00
Lachee
58307af091
Fixed GuiSpinner defines ( #60 )
...
GuiSpinner and ValueBox were being disabled when the RAYGUI_TEXTBOX_EXTENDED was set.
2019-11-04 10:44:34 +01:00
Ray
b312ba5f78
Remove trailing spaces
2019-10-17 17:16:47 +02:00
Ray
e9833c1a4f
Add enum names and one new icon
2019-09-30 17:51:55 +02:00
Ray
2c96d4a157
Improved module for rGuiIcons
...
- ADDED: GuiLoadIcons()
- ADDED: GuiGetIconData() and GuiSetIconData()
- ADDED: GuiSetIconPixel(), GuiClearIconPixel(), GuiCheckIconPixel()
2019-09-30 17:36:34 +02:00
Ray
f164f744ac
Review some defines naming and exposure
2019-09-30 17:34:30 +02:00
Ray
00fb56245d
Update raygui.h
2019-09-17 00:32:27 +02:00
Ray
6469c92b69
DEFAULT properties propagation is done automatically
2019-09-16 00:34:49 +02:00
raysan5
d3b2f49da3
Update GuiListViewEx()
...
Security check in case of NULL items text provided
2019-09-15 17:53:59 +02:00
raysan5
5572d37fe0
REMOVED: GuiLoadStyleProps() and GuiUpdateStyleComplete()
...
Those functions were useless and confusing, design simplified!
Now GuiSetStyle() propagates default property values automatically
2019-09-15 17:53:19 +02:00
raysan5
b888ce73ef
Update version to avoid confusions
...
Current raygui 2.6 is already published, so, I'm working on raygui 2.7
2019-09-14 19:02:35 +02:00
Ray
a9744a2fab
raygui 2.6 release
...
GuiLabelButton() - Small tweak
2019-09-09 21:54:17 +02:00
Ray
a56f878115
Minor tweak
2019-09-08 01:10:25 +02:00
Ray
54fcb03380
RENAMED: GuiState() > GuiSetState()
...
ADDED: GuiGetState()
2019-09-03 15:45:14 +02:00
Ray
ad3531609c
Review some functions
...
- GetTextBounds(), adapted to new TEXT_PADDING property, it probably still requires some work...
- GuiDropdownBox(), reviewed and corrected some issues on item selection.
- GuiLoadStyle(), adapted binary file loading code
- Reviewed some default style properties
2019-09-02 23:18:25 +02:00
raysan5
9b68062910
REVIEW: GetTextBounds() and GuiDrawText()
2019-09-01 13:21:18 +02:00
raysan5
1adfb6cef5
Review properties naming
...
Replaced INNER_PADDING by TEXT_PADDING -WIP-
2019-09-01 11:49:56 +02:00
raysan5
3a50c1b711
Formatting tweaks
2019-08-27 14:03:56 +02:00
raysan5
bf0c05c8f6
Added comment
2019-08-26 20:14:43 +02:00
Ray
34483c44e3
Remove duplicated GuiValueBox() and GuiSpinner()
2019-08-26 15:14:35 +02:00
Ray
462ba6b373
RENAMED: GuiFont() to GuiSetFont()
...
ADDED: GuiGetFont()
2019-08-26 00:56:58 +02:00
Ray
be2ccc5147
Review blinking cursor on GuiTextBoxMulti()
2019-08-26 00:35:54 +02:00
Ray
f9456d39da
Minor tweak on style loading
2019-08-24 20:02:24 +02:00
raysan5
177f345afb
REDESIGNED: GuiTextInputBox()
...
Support text message (if provided).
2019-08-21 21:18:38 +02:00
raysan5
bb5cbce61d
Update raygui.h
2019-08-21 20:03:53 +02:00
raysan5
4ec4419635
Review GuiStatusBar() and GuiWindowBox()
2019-08-21 20:02:21 +02:00
raysan5
7015daa034
Support provided charmap on style font
...
I don't like much this approach but it's better than other options...
2019-08-21 18:59:30 +02:00
raysan5
93a44f1214
Added sample styles -WIP-
...
Note those styles are still under development... they will change...
2019-08-21 12:50:57 +02:00
Ray
737e866ec2
Redesigning GuiTextInputBox() -WIP-
2019-08-19 15:22:29 +02:00
Ray
6986d2217b
REDESIGNED: GuiSpinner(), GuiValueBox()
2019-08-18 17:59:00 +02:00
Ray
a0f8268529
REVIEW: GuiCheckBox() text alignment
2019-08-16 17:23:18 +02:00
Ray
473109bfa8
WARNING: Breaking changes
...
REDESIGNED: GuiSlider()
REDESIGNED: GuiSliderBar()
REDESIGNED: GuiProgressBar()
Avoiding the infamous `showValue` parameter, now left-right text could be directly provided by the user.
2019-08-16 16:59:27 +02:00
Ray
6ce201fefd
REVIEWED: GuiImageButton()
2019-08-16 16:41:49 +02:00
Ray
b51ab5b0e7
REVIEW: GuiTextBox() and GuiTextBoxMulti()
2019-08-16 16:06:36 +02:00
raysan5
f11e9d6ba5
Correct some issues on GuiListViewEx()
2019-08-11 12:03:08 +02:00
raysan5
7e971886b0
REVIEW: GuiTextInputBox()
2019-08-10 13:12:40 +02:00
Ray
ca81d6251d
WARNING: Redesigned controls
...
- GuiListVIew(), GuiListViewEx() redesigned, code simplified, avoiding GuiListElement()
- GuiDropdownBox() redesigned, avoiding GuiListElement()
- REMOVED: GuiListElement()
2019-08-07 00:37:54 +02:00
Ray
b2b7528709
ADDED: GuiTextInputBox()
2019-08-02 17:19:00 +02:00
raysan5
32d6ba6f5a
Renamed flag RAYGUI_RICONS_SUPPORT > RAYGUI_SUPPORT_RICONS
2019-07-29 13:59:15 +02:00
raysan5
845cf9559e
Update raygui
2019-07-28 16:20:00 +02:00
Leandro Gabriel
79b49afe17
Update year of copyright notices and fix typo ( #46 )
...
* Update year of copyright notices
And add missing license information to image_exporter.c
* Fix typo ("immedite")
2019-07-24 01:09:06 +02:00
raysan5
2172192a73
Review spacing to follow raylib conventions
...
Renamed CURLY_INIT to CLITERAL (same as raylib)
2019-07-15 12:52:22 +02:00
SasLuca
2ec850b692
Patched raygui to make it both C and C++ compliant by fixing errors regarding curly initialisation and int to float conversions.
2019-07-14 22:33:15 +03:00
Ray
f157062acd
Review examples
2019-07-05 20:47:15 +02:00
Ray
a33d53cd75
Simplify STANDALONE mode dependencies
2019-07-03 01:29:06 +02:00
Yuriy Shirokov
400ab96d99
GuiTextBoxGetState() and GuiTextBoxSetState() types fixed
2019-07-01 10:22:49 +03:00
Simon
4096ed02b5
set hue on color panel
2019-06-30 11:13:26 +01:00
Ray
9c32d6cc13
Merge pull request #38 from simonwashere/standalone-changes
...
standalone integration improvements
2019-06-27 23:04:37 +02:00
Simon
1266a81360
removed dummy function implementations
2019-06-27 20:27:39 +01:00
Simon
c5c7afa293
fix textbox bug
2019-06-27 19:26:15 +01:00
Ray
75769bdd6b
Support font loading on text RGS
2019-06-25 18:39:46 +02:00
Ray
26b7709f86
Some tweaks and comments
2019-06-25 12:46:20 +02:00
Ray
213f74148d
Review guiFont usage
2019-06-19 15:32:07 +02:00
Ray
3fbcd6d9bc
Review binary rgs file loading
...
Including font support
2019-06-19 00:58:34 +02:00
Ray
4112e846c4
Review style usage on SLIDERS and TEXTBOX
2019-06-18 17:59:22 +02:00
Ray
ce4d487642
Reorder some controls info for consistency
2019-06-18 13:30:26 +02:00