Commit Graph
163 Commits
Author SHA1 Message Date
Rob Loach bed81e2f4e Allow disabling STB_*_IMPLEMENTATION (#578)
When having stb_rect_pack or stb_truetype used elsewhere in your project, Nuklear could cause conflicts. This change adds `NK_NO_STB_RECT_PACK_IMPLEMENTATION` or `NK_NO_STB_TRUETYPE_IMPLEMENTATION` to allow disabling adding `STB_RECT_PACK_IMPLEMENTATION` or `STB_TRUETYPE_IMPLEMENTATION`.
2023-10-17 01:57:25 -04:00
Rob Loach 7478cd77e5 Merge pull request #577 from fitzsim/ppc64-1
Use __PPC64__ macro for GCC detection
2023-10-16 23:44:39 -04:00
Wladislav ヴラド Artsimovich 894f2776f7 Merge remote-tracking branch 'upstream/master' into horizontal_rule 2023-10-17 11:17:55 +09:00
Thomas Fitzsimmons 83df3367b4 Use __PPC64__ macro for GCC detection 2023-09-12 16:26:17 -04:00
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 e48dd2144f Fix Click-Drag for touch events. 2023-06-26 19:30:45 +09:00
vabenil f0e776031b Fix docs variable name in source 2023-02-20 18:59:43 +02:00
Rongcui Dong cb6132f171 Update docs 2023-01-17 15:19:05 -05:00
LonerDan 7c84c3cc18 Remove link to no longer existing tool
The link to the online single header packer (https://apoorvaj.io/single-header-packer.html) no longer works (returns 404), so remove it.
2023-01-13 12:33:12 +01:00
Jai 23cb43f5eb Fix incorrect glyph index in nk_font_bake 2022-12-23 22:36:59 +08:00
Rob Loach c512ac8864 Merge pull request #527 from dulingzhi/fix/ttc-font-offset
Fix nk_font_bake_pack() using TTC font offset incorrectly
2022-12-17 14:04:55 -05: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
Mark Jansen 607e4716cc Add link from the documentation to the code
Fixes #515
2022-12-03 21:57:14 +01: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 df86105c69 Fix tabs 2022-08-01 16:19:45 -03:00
opsJson c7c3069dc2 following the read me 2022-08-01 15:33:42 -03:00
opsJson 9f0a601395 Update nuklear_text_editor.c 2022-07-30 21:36:01 -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
ryuukk ed3ff76d0e rename null texture field to tex_null 2022-06-27 00:15:14 +02: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 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 CawleyandRob Loach 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