Commit Graph

563 Commits

Author SHA1 Message Date
Xeverous
748f0dafe7 const correctness in public API 2024-10-15 19:27:56 +02:00
Rob Loach
2ad47c08f1 Rebuild nuklear.h 2024-09-30 13:41:55 -04:00
Rob Loach
0a28e3002b Fix incompatible pointer types warning 2024-09-30 13:33:55 -04:00
PROP 65
1f0c22cc10
Merge branch 'Immediate-Mode-UI:master' into knob 2024-08-28 00:51:03 +00:00
PROP 65
97fb6fffd6
Rebuild nuklear.h 2024-08-19 01:13:57 +00:00
PROP 65
6556884274
Update nuklear.h 2024-08-14 00:38:46 +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
Rob Loach
74a12afc62
Rebuild nuklear.h 2024-06-27 13:58:56 -04:00
Rob Loach
504f8319a8 Rebuild nuklear.h
Fixes #648
2024-06-14 03:17:37 -04: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
d40d95471e Add Changelog in nuklear.h for 4.12.1 2024-03-07 13:39:12 +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
6c6260a7c2 Suppress MSVC compiler possible loss of data warning with explicit cast 2024-01-22 23:11:50 +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
319f79f177 Built nuklear.h 2023-12-12 16:35:38 +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
Jacob Ahnstedt
2a52826392 Removed widget alignment for the draw functions of toggleables 2023-11-26 10:44:37 +01:00
Jacob Ahnstedt
c5ee9a58ed Added text alignment to toggleables 2023-11-26 10:25:36 +01:00
Jacob Ahnstedt
208dbc506e Merge branch 'master' of https://github.com/Immediate-Mode-UI/Nuklear into offical/align_widgets
# Conflicts:
#	demo/common/overview.c
#	nuklear.h
#	src/nuklear_toggle.c
2023-11-26 00:19:09 +01:00
Jacob Ahnstedt
e782760da3 Added option alignment right 2023-11-24 16:33:16 +01:00
Jacob Ahnstedt
f187c39283 Added checkbox alignment right 2023-11-24 16:24:20 +01:00
Jacob Ahnstedt
39e2ee3ce4 Removed color factoring for item colored selectables 2023-11-20 14:02:12 +01:00
Jacob Ahnstedt
afbd133914 Fixed missing color factoring for widget disabling 2023-11-20 14:01:22 +01:00
Jacob Ahnstedt
df13a41ada Fixed C90 compliance issue 2023-11-20 13:56:19 +01:00
Jacob Ahnstedt
aaff4f014a Merge branch 'master' of https://github.com/Immediate-Mode-UI/Nuklear into disable-widgets
# Conflicts:
#	clib.json
2023-11-20 12:55:39 +01:00
David Reid
a668105390 Fix button text alignment error.
When calculating the width and height of the content rect of a button,
only the border of one side is being taken into account. Instead the
border width needs to be multiplied by two before subtracting from the
bounds. This is being done for padding and rounding, but not border,
which is resulting in text being misaligned, most notably when using
buttons with thick borders.
2023-11-14 15:39:10 +10:00
Yukyduky
f88d7b58bb Fixed tabs not being shown as disabled properly 2023-10-29 10:18:09 +01:00
Yukyduky
4545d184d3 Separated color_factor for button into text and background
Tree node button background looked out of place when disabled, so I made the background not be affected by being disabled.
2023-10-29 10:16:17 +01:00
Yukyduky
b1fcf9244f Changed a false to an nk_false 2023-10-18 22:33:05 +02:00
Yukyduky
5a6569a2c9 Added disabled factor & performance improvement
Added NK_WIDGET_DISABLED_FACTOR, global factor for disabled color
2023-10-17 20:04:14 +02:00
Yukyduky
2b7f047f15 Merge branch 'master' of https://github.com/Immediate-Mode-UI/Nuklear into disable-widgets 2023-10-17 08:13:06 +02:00
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
7384f0ed67 Regenerate Nuklear.h 2023-10-17 11:41:11 +09:00
Wladislav ヴラド Artsimovich
894f2776f7 Merge remote-tracking branch 'upstream/master' into horizontal_rule 2023-10-17 11:17:55 +09:00
Yukyduky
25cda15319 Fixed two copy paste mistakes 2023-10-13 11:56:14 +02:00
Yukyduky
8016ff334d Added feature to disable widgets 2023-10-11 21:27:52 +02:00
Thomas Fitzsimmons
83df3367b4 Use __PPC64__ macro for GCC detection 2023-09-12 16:26:17 -04:00