Rob Loach
f9ef3be2bc
Update to C99
2026-08-07 22:06:18 -04:00
Rob Loach
0dbc52f864
Merge pull request #972 from sleeptightAnsiC/ci_add_msvc
...
add CI workflow for MSVC and fix GDI demo
2026-07-21 08:36:13 -04:00
Rob Loach
65fefb1016
Fix README example frame loop
2026-07-19 23:49:50 -04:00
sleeptightAnsiC
8109cfbabe
fix: nk_font_config oversampling 3x horizontaly by default ( #973 )
...
* fix: nk_font_config oversampling 3x horizontaly by default
See linked issue for additional information.
According to the commit that introduced this, it was supposed to:
_"oversample the default font to make it look better_"
but it was oversampling every single font, potentially making it blurry.
This fix preserves old behavior for code that may still expect it,
but nk_font_config will now use oversample_h=1 by default.
Some demos achieve sharp font by scaling their pixel_size and in this
case there won't be any difference, but if someone used badly behaving font
and didn't notice it only worked because of oversampling, that font
may now appear differently (this is unlikely but still possible).
Fixes: https://github.com/Immediate-Mode-UI/Nuklear/issues/855
Refs: https://github.com/Immediate-Mode-UI/Nuklear/commit/1d7f0244f97e2d35a57bc90586863ab89bea9be3
* doc: add code comment about fallback in nk_font_atlas_bake
split into another commit in case the previous one will need to be reverted
2026-07-16 01:59:28 -04:00
schlangz
92edf7ba9b
fix: clear popup.buf.active in nk_nonblock_begin when closing ( #968 )
2026-07-16 01:58:57 -04:00
Rob Loach
974bdb08f7
sdl3: Update to SDL_GetTicksNS()
2026-07-08 00:25:38 -04:00
Rob Loach
e4e7b86bb1
sdl3: Add keypad enter
2026-07-08 00:22:35 -04:00
sleeptightAnsiC
ff2ff046aa
fix(overview): custom tooltip position was impossible to select + use proper nk_edit
...
For some reason the 'static' was missing from cur_pos preventing
selection of custom tooltip position. This was broken since:
https://github.com/Immediate-Mode-UI/Nuklear/commit/063968520f7bb8129b7a164906be055da3634cd3
Also fixed TODO note by using nk_edit_string_zero_terminated rather
than reimplementing the wheel with text_len and '\0'
Refs: https://github.com/Immediate-Mode-UI/Nuklear/pull/900
Refs: https://github.com/Immediate-Mode-UI/Nuklear/pull/937
2026-07-06 00:06:27 -04:00
sleeptightAnsiC
5157955006
doc: update section in nuklear_math.c to proper doxygen comment
...
This was the last place in the library that used old /// comments.
I updated it in order to keep it consistent with everything else.
It probably doesn't make sense for internal details to appear in public
documentation, but I will worry about this later...
2026-07-06 00:05:02 -04:00
sleeptightAnsiC
4ebddf3a52
doc: replace dead/redirecting links with new/archived ones
...
Several links were either dead, redirecting to different pages,
displaying 404 or entirely different content. This patch replaces
them with alive/new/archived ones in order to preserve information.
2026-07-06 00:05:02 -04:00
sleeptightAnsiC
4937c7d5d1
CI: add msvc.yml for testing demos with build.bat
...
Adds CI workflow for all Windows-specific demos that require MSVC.
Because each build.bat hardcodes path to the same MSVC toolchain,
the workflow uses arch:x86 and toolset:14.0 for compatibility.
Refs: https://github.com/Immediate-Mode-UI/Nuklear/issues/895
2026-06-30 20:49:15 +02:00
sleeptightAnsiC
a7353204d0
fix: demo/gdi/main.c not compiling due to missing brace
...
This file was failing with syntax error which appears to be broken since
https://github.com/Immediate-Mode-UI/Nuklear/commit/063968520f7bb8129b7a164906be055da3634cd3
I suspect none of the Windows-specific demos were actually tested.
Refs: https://github.com/Immediate-Mode-UI/Nuklear/pull/937
2026-06-30 20:35:42 +02:00
sleeptightAnsiC
e634a0dfa1
CI: bump ccpp.yml to ubuntu-26.04 and add sdl3_renderer job
...
current ubuntu-latest (24.04.3 LTS) doesn't have package for libsdl3-dev
26.04 is still in "preview" but it let's us test demo/sdl3_renderer
Refs: https://github.com/Immediate-Mode-UI/Nuklear/pull/894
Fixes: https://github.com/Immediate-Mode-UI/Nuklear/issues/897
2026-06-29 22:30:34 -04:00
Rob Loach
2667d0a19a
button: Add chevron and hamburger symbol ( #933 )
2026-05-29 22:27:34 -04:00
Robert Winkler
859d17b71a
Add Delayed Tooltips ( #943 )
...
* Add nk_input_is_mouse_hovering_delay_rect() to implement delayed popups
* Add tooltip convenience functions, and a default delay used only with appropriate convenience function
* Add 2 input hovering motionless input functions, use delayed version for delayed tooltips
* Add tooltip disappears when item is clicked functionality
* Add Doxygen comments above definitions
2026-05-26 11:34:03 -04:00
Rob Loach
50853aa65b
docs: Clean up packer ( #930 )
2026-05-23 20:58:40 -04:00
Rob Loach
f0acfa432c
Merge pull request #951 from RobLoach/remove-nk_widget_fitting
...
Remove nk_widget_fitting()
2026-05-20 04:45:50 +02:00
Rob Loach
328ec189f3
Merge pull request #954 from sleeptightAnsiC/fix_x11_image_corruption
...
fix(x11): nk_stbi_image_to_xsurf corrupting memory when channels != bpl
2026-05-20 04:44:47 +02:00
Rob Loach
e5a3839a87
Merge pull request #960 from TomJGooding/fix-demo-remove-nuklear-math
...
fix(demo): remove nuklear math functions
2026-05-16 12:59:44 -04:00
Rob Loach
4cd4f4f7c7
Merge pull request #957 from RobLoach/emscripten-macro-deprecated
...
Update emscripten macro
2026-05-15 17:47:11 -04:00
TomJGooding and sleeptightAnsiC
1fbf007ef2
fix(demo): remove nuklear math functions
...
Remove the remaining nuklear sin/cos functions in the examples.
This follows reverting commit 07941526cc
in 6ef6f73051 .
These nuklear math functions were tailored for internal use only,
since "nuklear only needs sine and cosine to generate circles" as
documented in `nuklear_math.c`.
Replacing the standard math library functions with nuklear's
approximation implementations breaks the examples in multiple places.
See https://github.com/Immediate-Mode-UI/Nuklear/issues/959
Co-authored-by: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com >
2026-05-15 19:47:33 +01:00
TomJGooding
6ef6f73051
Revert "demo: Use Nuklear math functions for examples"
...
This reverts commit 07941526cc .
2026-05-15 18:33:12 +01:00
Rob Loach
dcbe452779
Update emscripten macro
2026-05-12 22:30:59 -04:00
sleeptightAnsiC and TomJGooding
cbf81289ae
fix(x11): nk_stbi_image_to_xsurf corrupting memory when channels != bpl
...
nk_stbi_image_to_xsurf could corrupt memory when image channels
did not match screen surface depth. I fixed it by checking DefaultDepth
ahead of time and only then calling stbi_load* with previously
calculated channels value. Also exported nk_xsurf_image_free with NK_API
TBH, I have no idea about Xlib and don't know what I'm doing,
and a lot of things in nk_stbi_image_to_xsurf was already questionable.
Fixes: https://github.com/Immediate-Mode-UI/Nuklear/issues/950
Obsoletes: https://github.com/Immediate-Mode-UI/Nuklear/pull/952
Co-authored-by: TomJGooding <101601846+TomJGooding@users.noreply.github.com >
2026-05-09 16:04:53 +02:00
Rob Loach
5a54a9f677
Merge pull request #949 from RobLoach/alt-function-keys
...
keys: Capture F1-F12, and ALT keys
2026-05-04 21:10:10 -04:00
Rob Loach
b3b7de5271
ci: Move the Release to the create-tag workflow
2026-05-04 21:03:14 -04:00
Rob Loach
a53ad2c658
Update action-autotag version to 1.1.2
v4.13.3
2026-05-04 20:51:19 -04:00
Rob Loach
6cc2a21126
ci: Auto Release Tags ( #920 )
2026-05-04 20:47:25 -04:00
Rob Loach
8d78a3b50b
Merge pull request #946 from sleeptightAnsiC/disable_demo_optimizations
...
disable optimizations and other costly CFLAGS from demos
2026-05-04 20:39:18 -04:00
Rob Loach
6cb54183b3
Merge pull request #945 from sleeptightAnsiC/doc_stack_code_block
...
fix(docs): snippet under "Stack" section lacked C code block
2026-05-04 20:38:44 -04:00
sleeptightAnsiC
eda8438bbd
disable optimizations for MSVC demos too
...
removes /O flags from CL and FXC, for all demos using build.bat
intentionally split into different commit because we rarely test those
Fixes: https://github.com/Immediate-Mode-UI/Nuklear/pull/946#issuecomment-4306256773
2026-05-04 21:49:10 +02:00
sleeptightAnsiC and StewBC
239f723ddb
fix: nk_option_text* unticking itself when not visible
...
Every branch in those functions returns `is_active` but not those two,
which was clearly a bug that could manifest in rare occasions.
See linked issue for more information.
Fixes: https://github.com/Immediate-Mode-UI/Nuklear/issues/853
Co-authored-by: StewBC <swessels@email.com >
2026-04-30 21:44:57 -04:00
Rob Loach
95c15e29bf
Remove nk_widget_fitting()
...
Fixes #947
2026-04-30 21:37:30 -04:00
Rob Loach
068de25d2d
slider: Fix float type conversion ( #948 )
2026-04-28 05:40:17 -04:00
Rob Loach
2b1b6410e9
keys: Capture F1-F12, and ALT keys
2026-04-24 23:09:11 -04:00
Rob Loach
a4e125f4bf
Merge pull request #942 from RobLoach/math-overview
...
demo: Use Nuklear math functions for examples
2026-04-23 09:57:36 -04:00
Rob Loach
4d827bb3ed
Merge pull request #932 from RobLoach/glfw-framebuffersize
...
glfw: Use framebuffer size
2026-04-23 09:57:00 -04:00
Rob Loach
c133df117e
Merge pull request #931 from RobLoach/glfw-vulkan-scaling
...
glfw: Fix scaling in Vulkan with Retina
2026-04-23 09:54:09 -04:00
Rob Loach
ed2c055c24
Merge pull request #928 from RobLoach/suggestions-from-gvanem
...
demo: Fix sdl_vulkan for Windows, from @gravnem
2026-04-23 09:52:45 -04:00
sleeptightAnsiC
39688d28ea
disable optimizations and other costly CFLAGS from demos
...
Demos must compile as fast as possible, in order to be quick to
reiterate and retest. Given that each needs to link and recompile
amalgamation every time, the difference between -O2 and -O0 is
noticeable. This also slightly affects CI times. This topic was
discussed under several occasions, for example:
https://github.com/Immediate-Mode-UI/Nuklear/pull/894#issuecomment-3880985649
https://github.com/Immediate-Mode-UI/Nuklear/issues/895#issuecomment-3884228468
2026-04-21 21:18:42 +02:00
sleeptightAnsiC
70607df096
fix(docs): snippet under "Stack" section lacked C code block
...
This was the last place without proper code block. I mentioned it in
https://github.com/Immediate-Mode-UI/Nuklear/pull/916#pullrequestreview-3925723888
It doesn't really change much, because syntax highlight is mostly blank
here, but since I already found it, I though I would keep it consistent.
2026-04-21 18:19:39 +02: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
Rob Loach
07941526cc
demo: Use Nuklear math functions for examples
2026-04-19 23:14:29 -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