Commit Graph
2445 Commits
Author SHA1 Message Date
Rob Loach 99502494d2 Fix spacing in fill width calculation 2026-04-27 10:42:23 -04:00
Rob Loach 1039f28ea0 Update src/nuklear_slider.c 2026-04-27 10:41:22 -04:00
Rob Loach c82bebc2c3 slider: Fix float type conversion 2026-04-23 09:48:46 -04:00
Rob Loach d4c0ef2f69 Merge pull request #940 from rswinkle/sdl3_renderer_issues
Fix minor sdl3_renderer issues
2026-04-21 10:14:04 -04:00
Rob Loach 7f87c67e52 Increase size so you can actually click them (#924) 2026-04-20 10:09:34 -04:00
Robert Winkler 063968520f demo: Quality of Life updates
- Meaningful titles across all Demos
- Switch to CTRL+Q to exit the demos
2026-04-20 10:07:02 -04:00
Rob Loach 409de195d1 Merge pull request #941 from TomJGooding/docs-layouting-remove-dangling-and
docs: fix typos in layouting documentation
2026-04-20 00:04:32 -04:00
Andrew Kravchuk ce181dde10 demo: Handle forcible cursor moving in allegro demo (#817) 2026-04-17 13:48:28 +02:00
Rob Loach 1b8389900e tests: Verify nuklear.h is Rebuilt (#907)
This will verify Nuklear.h is clean before running tests. Will help identify when individuals miss rebuilding the nuklear.h file.
2026-04-17 13:45:20 +02:00
Rob Loach 76d7e8e51e Merge pull request #926 from rswinkle/typos_and_minor_issues
Typos and minor issues
2026-04-17 13:34:28 +02:00
Rob Loach fee5a7c4de docs: Fix Warnings and Notes (#925)
* docs: Fix Warnings and Notes

* docs: Add a space
2026-04-17 12:53:12 +02:00
Robert Winkler ab51b8d387 Update configurator and more (#934)
* Add missing style items to configurator...

Looks like I forgot knob completely and left out all the color factors
everywhere.

Also more symbols were added since I first wrote this. Will have to
remember to update it again once Rob's latest PR goes through.

In the process I discovered a couple issues, I left some comments just
in case but I'll fix them myself in separate commits.

* Fix knob issues, specifically...

use cursor_width for the cursor width and don't overwrite
the state with HOVER so the knob can actually be ACTIVE so it can
actually use the active colors (background, knob, and cursor).

* Fix slider issues, use style->bar_height, etc.

A remaining issue is that style->cursor_size.y has no effect
on vertex buffer based backends which is probably the majority
of them now.

Also nk_fill_circle and nk_stroke_circle should really be
called _ellipse, even if it's currently broken on vertex buffer
based backends and uses rect.w/2 as the uniform radius.

For x11 it correctly draws a major axis aligned ellipse.
2026-04-17 12:51:55 +02:00
TomJGooding b48694e499 docs: fix typo in nk_layout_space_push docs 2026-04-12 10:05:28 +01:00
TomJGooding 206f05c661 docs(layouting): remove dangling 'and' 2026-04-12 09:17:58 +01:00
Robert Winkler 2880afd0a9 Add C linkage 2026-04-11 19:15:04 -07:00
Robert Winkler a23c9b04de Fix minor sdl3_renderer issues 2026-04-11 15:53:39 -07:00
Rob Loach 8c9b376376 Fix NK_MEMCPY() size type conversions with nk_size (#913) 2026-03-30 11:03:51 -04:00
Rob Loach d293cc27fa docs: Move the CHANGELOG to Release Notes (#909) 2026-03-25 15:29:07 -04:00
Robert Winkler 88380b4e4b Committed is spelled with two t's
Add macro for backward compatibility
2026-03-24 14:30:02 -07:00
Robert Winkler dcae93cc6f Correct reference to non-existent nk_window_focus 2026-03-24 14:24:20 -07:00
Robert Winkler d52dc65ed2 The plural of vertex is vertices 2026-03-23 18:01:06 -07:00
Robert Winkler 4ec94c871b Increase size so you can actually click them 2026-03-22 20:39:47 -07:00
Rob Loach 9c24f9c2b9 Check y for NULL too, remove duplicate zero'ing (#919)
* Check y for NULL too

There are some rare cases where the x and y offsets are split across
tables and the table with y gets incorrectly garbage collected in
nk_clear(). This prevents that from causing a segfault.

* Remove redundant nk_zero_struct() calls
2026-03-19 21:01:44 -04:00
Robert Winkler 7002929a46 Remove redundant nk_zero_struct() calls 2026-03-16 14:42:46 -07:00
Robert Winkler a2d7087251 Check y for NULL too
There are some rare cases where the x and y offsets are split across
tables and the table with y gets incorrectly garbage collected in
nk_clear(). This prevents that from causing a segfault.
2026-03-16 14:36:43 -07:00
Rob LoachandsleeptightAnsiC a9fef84be2 mouse: Add the Back/Forward Mouse Buttons (#906)
* input: Add Back/Foreward Mouse buttons

* rebuild

* Add remaining renderers

* Add mouse tests

* Apply suggestion from @RobLoach

* allegro: Fix switch warning?

* Clean up code

* Update demo/d3d12/nuklear_d3d12.h

Co-authored-by: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com>

* Update demo/d3d11/nuklear_d3d11.h

Co-authored-by: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com>

* Switch input context from d3d9 to gdi for X buttons

* Update context from d3d9 to gdi for XBUTTON events

* Change context from d3d9 to gdip for XBUTTON events

* Refactor mouse button handling in nuklear_allegro5.h

* Fix allegro

* Remove break

* Add doc comments

---------

Co-authored-by: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com>
2026-03-16 09:12:18 -04:00
Rob Loach 59cd321f49 Merge pull request #916 from TomJGooding/docs-layouting-fix-code-blocks
docs(layouting): Fix code blocks formatting
2026-03-16 01:22:45 -04:00
Rob Loach c21e1e0c66 v4.13.2 4.13.2 2026-03-16 01:04:15 -04:00
TomJGooding feb1e321af docs(layouting): fix code blocks
While browsing the documentation I noticed that the code blocks are
currently broken on the Layouting page.

I confess I'm not familiar with Doxygen, but simply removing a space
from the indentation seems to fix the issue!

Fixes https://github.com/Immediate-Mode-UI/Nuklear/issues/915
2026-03-10 19:19:54 +00:00
Rob Loach 987c8b89eb Return if value changed for property_*() and combobox*() functions (#912) 2026-03-08 17:51:33 -04:00
Robert Winkler 1fb586537b Add Tooltip Positioning (#911)
* Add basic tooltip positioning

* More flexible tooltip API, allow arbitrary offset

* Simplify and combine functions as discussed...

Combine position and offset parameters a single call using the latter as the
origin. Credit to @sleeptightAnsiC for the obvious idea.

* Add examples to overview, fix vararg versions

* Add more options (vertially centered origins), and more demos

* Simplify naming

* tooltip offsets with a default style

* Minor fixes, update style_configurator with new tooltip styling
2026-03-08 17:50:35 -04:00
Robert Winkler a94e6ed970 Return if value changed for property_*() and combobox*() functions 2026-03-07 23:46:26 -07:00
Mirian ShilakadzeandRob Loach 4aff9c7c8a demo/sdl3_renderer/main.c: call nk_input_begin at the end of SDL_AppInit (#865)
* demo/sdl3_renderer/main.c: call nk_input_begin at the end of SDL_AppInit

* Fix shutdown sequence for nk_sdl_app

---------

Co-authored-by: Rob Loach <RobLoach@users.noreply.github.com>
2026-03-04 18:26:31 -05:00
Rob Loach 729516425a docs: Move doc/Doxyfile to .Doxyfile (#903)
While not required, this cleans up the folder structure by moving the `doc` folder to a hidden file at `.Doxyfile`. Compiled documentation is still build to the `doc` folder, which is gitignored.
2026-03-01 13:52:55 -05:00
Rob Loach 9afa2ba1b3 Merge pull request #905 from rswinkle/prefix_stb_truetype_equal
Add prefix to problematic stb_truetype equal() func
2026-03-01 13:26:58 -05:00
Robert Winkler 675ce7fc98 Add prefix to problematic stb_truetype equal() func 2026-02-28 16:19:11 -07:00
Rob Loach 3bcdec2029 Merge pull request #898 from rswinkle/property_focus_previous
Fix previous property focus issues
2026-02-17 15:34:33 -05:00
Richard Gill 994f788684 Merge pull request #860 from Shamar/xcb-client-message
demo/xcb_cairo/nuklear_xcb.h: do not discard xcb_client_message_event_t
2026-02-17 15:18:32 +01:00
Giacomo Tesio dc4e69d503 nuklear_xcb.h: move EMPTY_CLIENT_MESSAGE within nk_xcb_handle_event's scope 2026-02-17 13:23:28 +01:00
JS Deck 3010177b45 Fix property edit field value would be discarded on focus lost when clicking on an earlier property 2026-02-16 14:43:49 -07:00
JS Deck c4c46a04a5 Update nuklear.h with paq.sh 2026-02-16 14:32:09 -07:00
JS Deck b13eccac53 Add cast to nk_strtoi and nk_strtod 2026-02-16 14:32:09 -07:00
JS Deck 9fd14bbe58 Fix property edit field mouse click activation when it's earlier in the window 2026-02-16 14:31:57 -07:00
sleeptightAnsiC 3f71ae1d74 demo/sdl3_renderer: Rewrite SDL3 Makefile to support Emscripten (#894)
* fix(demo/sdl3_renderer): Makefile should now support Win + Emsdk

Fixed several issues that would prevent this demo from being compilable
on Windows with Emscripten: (1) there was a typo preventing proper
resolution of BINEXT, (2) in case of using Emscripten, Windows was taking
a precedense due to OS always being defined, (3) BINEXT now has a
special case for Emscipten, (4) pkg-config provided by w64devkit has no
--path flag, so we retry with --exists too, (5) compiler invocation was
missing system flags, which could break on some MSYS2 runtimes,
(6) compiler invocation now uses all kinds of C/CPP/LD flags so you can
easily inject something like --shell-file now, and probably more...

This was done in order to help with implementing and testing for:
https://github.com/Immediate-Mode-UI/Nuklear/issues/888

* refactor(demo/sdl3_renderer): consistent syntax and flow in Makefile

Use ${} for variable expansion and $() for invoking functions.
Use $(or ...) for all branches instead of ifeq(...) blocks.
Hopefully, this will make it easier to read and understand.

* fix(demo/sdl3_renderer): append user provided C/CPP/LD flags in Makefile

Before it was overwriting those flags entirely, meaning that it could
delete some required ones (e.g. from pkg-config). Now it will append
them correctly, so your flags will take priority where it matters.
2026-02-13 15:12:56 -05:00
blueandRob Loach a329721db9 Fixed NK_SIZE_TYPE and NK_POINTER_TYPE on MinGW and Windows clang/clang-cl (#811)
* Update nuklear.h

fixed pointer and size type defs for MinGW64

* -- added __clang__ macro for windows clang and clang-cl to also work

* updated the template nuklear.h to fix NK_SIZE_TYPE and NK_POINTER_TYPE

* Update src/nuklear.h

* Apply suggestion from @RobLoach

---------

Co-authored-by: Rob Loach <RobLoach@users.noreply.github.com>
2026-02-06 23:52:36 -05:00
Rob Loach 4c8faf3b2f Merge pull request #875 from ZvRzyan18/swapchain_creation
Fix Vulkan Unsupported Composite Alpha
2026-02-06 23:41:05 -05:00
Rob Loach b0db2315cb Merge pull request #876 from ZvRzyan18/glfw_semaphore_fix
Fix Vulkan Reusing Signaled Semaphore
2026-02-06 23:40:44 -05:00
Rob Loach 2ddae39650 Merge pull request #884 from sleeptightAnsiC/fix__build_sizeof_bool
Fix(build): replace incorrect static asserts for size(nk_bool)
2026-02-06 23:36:13 -05:00
Rob Loach 1f37b78d30 Merge pull request #883 from sleeptightAnsiC/fix__style_configurator_unsafe_cast
fix(style_configurator): fix unsafe int to nk_bool pointer casts
2026-02-06 23:33:30 -05:00
sleeptightAnsiC 595a81f2ae Fix(build): replace incorrect static asserts for size(nk_bool)
Fixes the issue where you would not be able to provide
your own `bool` symbol when it's sizeof is not equal to 4.
This was bloking all custom code from supplying C99 _Bool,
or C++/C23 bool, or any other custom bool like in case of SDL3 demo.
New checks should be way more sane. The old ones never worked,
despite of comment that you could use `char` for it.

Fixes: https://github.com/Immediate-Mode-UI/Nuklear/issues/849
2026-02-06 16:33:10 +01:00