Commit Graph
215 Commits
Author SHA1 Message Date
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
Jacob Ahnstedt 8abee24513 Added changes to changelog and bumped clib.json 2023-11-26 11:22:28 +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