231 Commits
Author SHA1 Message Date
Robert Winkler 91a6e773a1 Fix knob scrolling and remove some dead code 2025-03-05 13:55:15 -07:00
Michael Aganier f384e5829a Fix array subscript [0, 0] is outside array bounds of ‘char[1]’ 2025-01-03 09:13:44 -05:00
Rob Loach d0ecf21884 Update version for fix border color for property widgets 2024-12-11 13:15:04 -05:00
Grisshink 9e0ae9f752 Fix property border color 2024-12-07 21:05:22 +03:00
Rob Loach 175ff8118a Fix nk_roundf() int type casting (#742) 2024-11-22 13:48:18 -05:00
Rob Loach 22b712b322 Fix nk_strtoi() const type usage (#740)
This fixes `nk_strtoi()` expecting a `char**`, but getting a `const char**`.
2024-11-20 12:22:29 -05:00
Alexander W. Schultz 5eea89cccc feature: build.py now allows for space separated lists of files.
this is a stepping stone to going to a full Makefile build system. All
src files can be provided in the make and sent to build.py with minimal
issues now that we don't have to build a comma separated list.
2024-11-17 15:40:35 -05:00
Xeverous a315d25b4c Update Nuklear 2024-11-07 19:45:55 -05:00
Alexander W. Schultz 7cb39a360d C89 style comment blocks
nuklear.h has been converted to C89 style comment blocks instead of the
amalgamation it was before (presummably a relic of the other
documentation system).

examples compile. more testing is required.
2024-11-07 19:24:40 -05:00
Alexander W. Schultz d3ea630a84 Adds HEADER to the doxygen output
HEADER is the intro API section of the paq'd files, which is the most
critical part of our documentation. Ideally, this file needs to stay the
same style because it needs to be incorporated into the header file;
however, we can make a minor modification to allow doxygen to render it.
with this commit, I change the name to HEADER.c to allow doxygen
processing. This shouldn't have any affect on the generated paq file.
Eventually, I would like to move this HEADER file into a different name
and the overall mainpage of the documentation.
2024-11-07 19:24:40 -05:00
Alexander W. Schultz 2ac678a94d converts nuklear.h to doxygen comment styles
the difference isnt staggering by any means. the original comment blocks
had most everything we needed. More work is required and there are still
questions to be had about how much information / styling is desired to
be retained in the code comments, verses removing some styling because
doxygen handles that conversion into html with styling automatically.
2024-11-07 19:24:40 -05:00
Rob Loach d123122a27 Revert "const correctness in public API" 2024-11-07 19:22:55 -05:00
Xeverous 748f0dafe7 const correctness in public API 2024-10-15 19:27:56 +02:00
Rob Loach 0a28e3002b Fix incompatible pointer types warning 2024-09-30 13:33:55 -04:00
ryuukk b6e261b508 Round layout widget position to nearest 0 2024-09-28 21:44:42 +02:00
ryuukk 5c89e05538 Change proggyfont urls 2024-09-23 15:32:17 +02:00
PROP 65 19bb57b893 Update nuklear.h 2024-09-03 03:46:11 +00:00
PROP 65 cb9dc9635a Update nuklear_util.c 2024-09-03 03:39:49 +00:00
PROP 65 1f0c22cc10 Merge branch 'Immediate-Mode-UI:master' into knob 2024-08-28 00:51:03 +00:00
PROP 65 8306b32465 Update nuklear_style.c 2024-08-19 01:10:19 +00:00
PROP 65 a6973c2d64 Update nuklear_style.c 2024-08-19 01:08:17 +00:00
PROP 65 48434308c6 Update nuklear_style.c 2024-08-19 01:06:30 +00:00
PROP 65 0ddaeb7043 add atan(x) and atan2(y,x) 2024-08-19 01:00:05 +00:00
PROP 65 b7125d9b10 add atan(x) and atan2(y,x) 2024-08-19 00:58:22 +00:00
PROP 65 76ad5ebd3b add knobs 2024-08-19 00:54:52 +00:00
PROP 65 3d5eb27f85 add knob widget 2024-08-19 00:48:39 +00:00
PROP 65 d0c557dd34 Update paq.sh 2024-08-19 00:47:46 +00:00
PROP 65 728e44b0a2 Update paq.bat 2024-08-19 00:47:45 +00:00
PROP 65 a33d01bd18 Update nuklear_window.c 2024-08-14 00:38:41 +00:00
Rob Loach be0a3f6141 Fix for NK_OFFSETOF on Emscripten (#663)
Fixes the following error with Emscripten, where `__builtin_offset` isn't available. This disables the usage of it when on Emscripten.

```
nuklear.h:8978:38: error: defining a type within '__builtin_offsetof' is a C23 extension [-Werror,-Wc23-extensions]
 8978 |     NK_STORAGE const nk_size align = NK_ALIGNOF(struct nk_command);
```
2024-07-29 11:07:32 -04:00
bolt a689b8efdf Improve one poor case of indentation
The original code was distinctly unclear. I've tried to keep to the
surrounding code style while making the code flow more comprehensible.

I've not looked elsewhere for any other similar occurrences; this became
apparent while investigating a specific line of thought.
2024-07-18 09:04:14 +01:00
Rob Loach 0319c0ff3b Add triangle outline symbols (#654) 2024-06-30 13:30:17 -04:00
SchelZ d3d4a3e96e Update nuklear_panel.c 2024-06-17 19:56:16 +03:00
Akshay Trivedi dd61233c1f Add casts for stbtt alloc userdata 2024-05-21 12:43:04 -07:00
Akshay Trivedi 59b6277209 Add const qualifier to more nk_allocator parameters 2024-05-21 12:36:02 -07:00
Rob Loach 37e54da201 property: Allow optional labels for properties with # (#634) 2024-04-28 02:42:54 -04:00
Rob Loach 34ea8bb042 Merge pull request #602 from brianwatling/optional-chart-boxes
Add a style option to disable point markers on charts
2024-04-04 13:17:17 -04:00
Lautriva 5f2e2af737 Add Changelog in nuklear.h for 4.12.1 2024-03-07 13:40:31 +01:00
Lautriva 1edb78e4d0 Fix bitwise operations warnings in C++20 2024-03-07 13:27:33 +01:00
Brian Watling 254dfc2120 s/hide_markers/show_markers/ 2024-02-26 22:58:44 -05:00
Rob Loach 8e5c9f7f34 Merge pull request #597 from waywardmonkeys/fix-typos
Fix spelling mistakes
2024-02-23 13:18:39 -05:00
Petr Abdulin b3b04fca16 Suppress MSVC compiler possible loss of data warning with explicit cast 2024-01-23 09:18:21 +07:00
Brian Watling f31cb7f7e5 Add a style option to disable point markers on charts
Fixes #594
2024-01-04 21:24:02 -05:00
Bruce Mitchener 16336450bb Fix typos. 2023-12-20 00:41:52 -05:00
Jacob Ahnstedt de3bf05b40 Replaced tabs with spaces 2023-12-12 15:30:13 +01:00
Jacob Ahnstedt 0a7b4eec8e Fixed missed removed alignment params 2023-11-28 09:58:43 +01:00
Jacob Ahnstedt 9af3869728 Made the PR not break current API 2023-11-28 09:52:30 +01:00
Jacob Ahnstedt 44bd238502 Fixed typo 2023-11-27 17:03:10 +01:00
Jacob Ahnstedt 8af4468cce Fixed centered not being quite in the center 2023-11-26 14:45:06 +01:00
Jacob Ahnstedt 657e525ff8 Added all alignments to toggleables 2023-11-26 14:29:25 +01:00