Rob Loach
614abce05b
Merge pull request #563 from FrostKiwi/fix_click-drag_on_touch
...
Fix click drag on touch + WebBrowsers
2023-08-03 11:50:52 -04:00
Rob Loach
12d4e2b257
Merge pull request #545 from vabenil/fix_doc_variable
...
fix variable name in docs
2023-08-03 11:46:43 -04:00
Rob Loach
017f27be5b
Merge pull request #531 from dulingzhi/fix/incorrect-font-bake
...
Fix incorrect glyph index in nk_font_bake
2023-08-02 03:21:52 -04:00
Wladislav ヴラド Artsimovich
71bc457d39
Update nuklear.h
2023-06-26 19:37:51 +09:00
vabenil
892a5cb7ca
fix variable name in docs
2023-02-17 15:53:55 +02:00
Rongcui Dong
cb6132f171
Update docs
2023-01-17 15:19:05 -05:00
Jai
23cb43f5eb
Fix incorrect glyph index in nk_font_bake
2022-12-23 22:36:59 +08:00
Rob Loach
743dd0105f
Update version for 4.10.5
2022-12-17 14:01:12 -05:00
Jai
1dad328fe9
Fix the problem that nk_font_bake_pack uses ttc font offset incorrectly ( #456 )
2022-12-16 12:20:03 +08:00
loli
da5198ccdc
Fix nk_str_{append,insert}_str_utf8 always returning 0
2022-10-24 10:40:48 +02:00
Rob Loach
e3d049e63e
Merge branch 'master' of github.com:Immediate-Mode-UI/Nuklear into tex_null
2022-09-28 01:52:11 -04:00
dczheng
a74061af6d
Fix typo
2022-09-23 00:27:48 +08:00
Rob Loach
ce1c94d84b
Fix Apple Silicon with incorrect NK_SITE_TYPE and NK_POINTER_TYPE
2022-09-11 13:53:59 -04:00
Rob Loach
c55fd8cc62
Merge branch 'master' of github.com:Immediate-Mode-UI/Nuklear into tex_null
2022-08-03 13:59:10 -04:00
Rob Loach
e57ee582ab
Update NK_MIN() call to save a line of code
2022-08-03 13:00:54 -04:00
opsJson
d28d145732
Fixed cursor position overflow
2022-07-30 21:33:46 -03:00
Rob Loach
54fd67bddd
Rename additional .null variables
2022-07-30 17:43:46 -04:00
Rob Loach
ec4acc7cf4
Rename the null variable to tex_null
2022-07-30 17:38:10 -04:00
opsJson
3b5009255e
Fix Shift + End in nk_edit
2022-07-25 20:07:20 -03:00
tcdude
5bb591b0fb
Rename function
2022-05-27 21:28:34 +02:00
tcdude
a931a8d499
Fix regression introduced in #448
...
This adds a new `nk_input_has_mouse_click_in_rect_button` function that
is being used only by buttons. This allows
`nk_input_has_mouse_click_in_rect` to act as its name suggests while
still allowing for the behavior introduced in #448
2022-05-27 04:12:11 +02:00
Rob Loach
200032f0c2
Merge branch 'master' of github.com:Immediate-Mode-UI/Nuklear into horizontal_rule
2022-04-18 23:28:25 -04:00
tcdude
068ae5fc33
Button behavior NK_BUTTON_TRIGGER_ON_RELEASE
...
This modifies the trigger behavior of buttons to only activate when the
mouse was also over the same button on the mouse button down event.
Side note:
I also modified my version of Nuklear I use to apply the same logic for
hover, because I use Nuklear for touch input devices where traditional
hover behavior tends to be misleading. I left this out for now because
I can imagine that this could be seen as wrong/faulty behavior by some.
2022-04-18 17:55:45 +02:00
Wladislav ヴラド Artsimovich
cb0e05beea
Forgot the semicolon in nuklear.h
2022-04-15 13:35:13 +09:00
Wladislav ヴラド Artsimovich
398e338bff
Forgot to regenerate nuklear.h
2022-04-15 13:27:39 +09:00
Wladislav ヴラド Artsimovich
5a75b319e4
Added nk_rule_horizontal() widget
2022-04-15 13:19:10 +09:00
Rob Loach
f60e50232a
Allow overriding the NK_INV_SQRT function
2022-02-03 15:30:39 -05:00
Rob Loach
878936f476
Merge branch 'master' of github.com:Immediate-Mode-UI/Nuklear into revert-156-fix-layout-bounds-padding
2021-12-24 15:11:28 -05:00
YgorVasilenko
aa47577bae
window: Fix hover state when window is minimized ( #284 )
...
* Fix hovering check when window is minimized
* Align line
* window: Fix checking hovering when window is minimized
* changelog: Update version in clib.json
Fixes #284
2021-12-22 14:43:42 -05:00
dumblob
0fb7a29712
Merge pull request #384 from RobLoach/versions
...
changelog: Use x.y.z for versioning, rather than x.yy.zz
2021-12-22 20:35:30 +01:00
Rob Loach
f653884879
Revert "Fix layout bounds not accounting for padding"
2021-12-22 14:14:50 -05:00
Rob Loach
0aa9a15a6c
changelog: Reference Semantic Versioning directly
2021-12-22 12:06:15 -05:00
Jimmi Holst Christensen
da15e0f9a0
Fix layout bounds not accounting for padding
2021-12-22 17:55:38 +01:00
Rob Loach
cd0d7bdecd
changelog: Use x.y.z for versioning, rather than x.yy.zz
2021-12-21 18:11:29 -05:00
Rob Loach
3e92a81d3a
Merge branch 'master' of github.com:Immediate-Mode-UI/Nuklear into stb-updates
2021-12-19 02:31:14 -05:00
Cameron Cawley
60c52adfaf
Enable and fix most GCC warnings ( #377 )
...
Co-authored-by: Rob Loach <robloach@gmail.com>
2021-12-16 20:44:00 +01:00
Rob Loach
f27ac6ef02
Update to stb_rect_pack.h v1.01 and stb_truetype.h v1.26
2021-12-14 22:49:12 -05:00
luz paz
297e463d37
Fix various typos
...
Found via `codespell -q 3 -L acount,modifyable,nd,pixelx,seperator,te,vertexes`
2021-11-30 21:45:48 -05:00
Joel Davis
ff62698de8
Added nk_spacer to help adjusting layout
2021-10-16 15:02:28 +02:00
Michael Aganier
cd731ae558
Fix "may be used uninitialized" warnings in nk_widget
2021-09-26 21:14:20 +02:00
gpetersson
7eaaccb929
GCC __builtin_offsetof only exists in version 4 and later
2021-09-23 08:24:36 +02:00
gpetersson
4be905921b
Fix "'num_len' may be used uninitialized" in nk_do_property
2021-09-16 16:27:50 +02:00
Komari Spaghetti
f28e4827e5
Fix "Templates cannot be declared to have 'C' Linkage"
2021-09-15 21:43:47 +02:00
Cameron Cawley
73a2062d70
Fix warnings in C89 builds
2021-09-09 08:40:18 +02:00
Komari Spaghetti
ebdb341750
Use compiler builtins for NK_OFFSETOF when possible
2021-09-08 18:09:09 +02:00
David
6322f53cb5
Add support for 9-slice/9-patch ( #304 )
2021-08-17 22:34:52 +02:00
Komari Spaghetti
f42712c9de
Replace usage of memset in nk_font_atlas_bake with NK_MEMSET
2021-08-16 22:53:02 +02:00
Rob Loach
0b49ee5db0
Fix warnings about sign conversion ( #323 )
2021-08-15 21:30:49 +02:00
Komari Spaghetti
7ef8fd65cc
Fix crash when baking merged fonts
...
fixes #316
2021-08-08 15:10:33 +02:00
Bernhard Feichtinger
cd217d6c6a
Fix wrong scrolling in nk_edit_* when multiline is enabled
2021-08-08 15:05:25 +02:00
Mikhail Sokolovskiy
67c72d0484
Fix warning about unused parameter
2021-08-07 20:09:10 +02:00
Michael Aganier
6e80e2a646
Fix nk_property hover bug
2021-03-19 18:08:20 +01:00
Michael Aganier
5cec8b15ab
Update dates in last 2 minor versions
2021-03-16 12:33:29 -04:00
Michael Aganier
93cbaca6da
Regen nuklear.h and bump version in package.json
2021-03-16 11:51:34 -04:00
Michael Aganier
f78b010c03
Update documentation for functions that now return nk_bool
2021-03-15 12:30:52 -04:00
Michael Aganier
04d4ee1089
Bump changelog in single header file
2021-03-15 12:26:37 -04:00
Robert Kerr
d2e6047c60
Fix C89 compilation errors
2020-12-19 16:49:07 -05:00
Wu Han
74a4df4eb9
update changelog and package.json for errors in nuklear_font.c
2020-11-10 17:19:56 +00:00
Wu Han
ec697f3123
[fix][error] C++ style comments are not allowed in ISO C90
2020-11-10 11:12:46 +00:00
Michael Aganier
2d33c92bb4
Merge master
2020-10-07 05:03:14 -04:00
Michael Aganier
f7b0e1f19f
Bump version
2020-10-07 04:58:57 -04:00
Michael Aganier
9460ba34fb
Fix nk_combo return type wrongly changed to nk_bool
2020-10-07 03:39:08 -04:00
Anton Afanasyev
d30e07f497
Remove trailing spaces
2020-10-02 22:49:02 -07:00
Anton Afanasyev
ea3bb68e2a
Use the nk_font_atlas's allocator for stb_truetype memory management by default
...
And allow the consumer to customize by redefining STBTT_malloc/STBTT_free
2020-10-02 22:48:57 -07:00
Michael Aganier
76f430c969
Change nk_bool static assert to >= 2
2020-09-08 07:26:06 -04:00
Michael Aganier
1e21ef2285
Replace every boolean int by nk_bool
2020-09-04 08:29:43 -04:00
Michael Aganier
60ed2a5aa5
Add nk_bool and NK_INCLUDE_STANDARD_BOOL
2020-09-04 08:14:43 -04:00
Patrick McMorris
d9ddd1810f
fix bugs in computing pooled allocation sizes ( #151 )
2020-07-01 14:58:33 +02:00
Zachary Crownover
5a1bacb6e6
Made combo header symbols truly optional.
2020-06-09 16:01:39 -05:00
Ingo Rohloff
9236b92f86
fix nk_do_edit: Keep scroll position when re-activating edit widget.
...
How to test:
Construct two edit widgets.
Enter a long text into the first edit widget, so that the widget autoscrolls.
Click into second (still empty) edit widget.
Click into first edit widget again.
=> Text jums back, so that first character of text in first edit widget is visible again.
This patch keeps the scroll position of the edit widget constant.
2020-05-27 15:24:18 +02:00
Jimmi Holst Christensen
7677494978
Merge branch 'master' of git://github.com/exchg/Nuklear into exchg-master
2020-05-14 18:52:10 +02:00
Richard Gill
562220749c
Include stdarg ( #128 )
...
fix: missing stdarg.h inclusion
2020-05-14 18:43:29 +02:00
te:ma
e2180c3454
Fix 'nk_menubar' height calculation bug
2020-05-11 20:04:07 +03:00
exchg
5ecd6e359e
fix: 'nk_edit' frame border drawing ( #120 )
...
* fix: 'nk_edit' frame border drawing
Draw frame border after background to prevent overlapping.
2020-05-08 10:43:15 +02:00
dumblob
9f0bca461b
Merge pull request #88 from mgerhardy/master
...
Fixed compiler warnings - bring your own sin/cos/strtod/... implementations and unused functions
2020-04-17 10:20:02 +02:00
Martin Gerhardy
455b404d86
Fixed issue #87 - Compiler warnings about unused functions
...
Fixed compiler warning by removing unused function nk_sqrt
Fixed compiler warning if you bring your own sin/cos/strtod....
Bump version for breaking nk_sqrt changes
Updated changelog
2020-04-17 09:58:30 +02:00
Martin Gerhardy
1cf633099b
Fixed warnings about unused variables
2020-04-09 09:42:33 +02:00
Igor Zhukov
04c16e5f32
Do not use pool before checking for NULL
2020-04-06 23:46:28 +07:00
Jimmi Holst Christensen
94ed1d4099
Fix bug where layout was restored incorrectly on tree pop.
...
Fixes #85
2020-03-22 15:50:21 +01:00
te:ma
afd830de8f
nk_widget_fitting() cleanup of unused variables
2020-03-18 21:06:55 +02:00
Jimmi Holst Christensen
75c71790f3
Fix bug where padding was subtracted from widget
...
This caused combo boxes to draw its items before the
panel padding, causing the text to be clipped off.
The code deleted here seems to have been an effort to
solve what 14dd68e
solved so it makes sense that these
would conflict. I'm pretty sure 14dd68e
is the correct
solution though and this was some old hack.
2020-03-11 18:45:36 +01:00
Jimmi Holst Christensen
14dd68ea0f
Fix bug where width padding was applied twice
2020-03-06 17:30:25 +01:00
Ron Aaron
8513b632a2
really fixed memory issue, bumped version, remove tabs
2020-03-06 13:05:56 +02:00
Ron Aaron
1cc9fa9619
ifdef around my stb macro
2020-02-10 08:13:27 +02:00
Ron Aaron
1126fd77da
fixed memory crash in baker
2020-02-07 13:42:24 +02:00
Ron Aaron
cd7c7c555c
modded build.py etc to convert comments in external files
2020-02-07 09:32:45 +02:00
Ron Aaron
1f48b5c860
change comments in stb libs to c89
2020-02-06 19:06:36 +02:00
Ron Aaron
d4a0f6eef5
c89; crlf
2020-02-06 17:28:31 +02:00
Ron Aaron
f89b5d721c
fixed c99 compile
2020-02-06 16:07:37 +02:00
Ron Aaron
5a5048d259
updated version, added memory allocator
2020-02-06 13:40:29 +02:00
luknw
1cdd4f10aa
[ #18 ] Fix off-by-one error in NK_INTERSECT
2019-12-10 12:46:23 +01:00
Ingo Rohloff
c8c57aa355
Update nuklear.h
2019-12-03 19:05:10 +01:00
Ingo Rohloff
b4bace80b7
fix nk_do_edit autoscroll.
...
How to test:
Create an edit widget.
Enter a long text into the edit widget.
Press "home" so that widget autoscrolls to start of text.
Press "end" so that widget now should jump to end of text.
Previously you had to press "end" several times to jump to the end of text.
This patch fixes that (pressing "end" once will jump to the end of text).
2019-12-03 19:03:02 +01:00
eax0r
c196d5396c
Update nuklear.h
2019-09-20 18:47:27 +02:00
eax0r
5c4618fc57
Update nuklear.h
2019-09-20 04:22:45 +02:00
crazyBaboon
ab742d9126
Use C style comment
...
C++ style comments are not allowed in ISO C89
2019-09-13 12:04:41 +01:00
Tom Gaudasinski
12b20bb0f4
Fixing the nk_cos function with a new implementation generated from lolremez. Old one deviated significantly from a cos() implementation.
2019-09-10 18:54:35 +10:00
Tom Gaudasinski
c38d4dff41
Upping the version. Adding changelog message. Adding comment as to why glyph_count needs to be zeroed.
2019-09-08 18:10:42 +10:00
Tom Gaudasinski
01460cafa2
Issue #896 : If we're not merging, then it's possible we're re-baking. Clear the glyph counter so that we start from zero again.
2019-09-08 13:41:58 +10:00
Kevin Harrison
d056ca6e72
Fix slashes in documentation
2019-06-23 14:12:21 -04:00