Rob Loach
8e5c9f7f34
Merge pull request #597 from waywardmonkeys/fix-typos
...
Fix spelling mistakes
2024-02-23 13:18:39 -05:00
paccer
a10eb1351a
Fix cursor warping to center on older SDL versions
...
Reverted the order of the SDL_WarpMouseInWindow and SDL_GetMouseState
to its original sequence.
This avoids cursor warping to the center of screen on older SDL versions
It causes an additional SDL_MOUSEMOTION event when ungrabbing, but does
not cause any issues.
2024-02-10 17:21:32 +01:00
paccer
e3b0f24626
Fix missed grab state changes in SDL demos
...
Move grab handling out of `nk_sdl_handle_event` to `nk_sdl_handle_grab`,
which is now called outside of the event loop.
This change makes the logic similar to the GLFW demos and fixes issues
with missed grab state changes and mouse cursor disappearing.
2024-02-10 03:03:16 +01:00
Rob Loach
24d6a47d73
Merge pull request #607 from Immediate-Mode-UI/demo-overview-nk_bool
...
demo: Fix overview's `nk_bool` usage
2024-01-29 00:33:34 -05:00
Rob Loach
8f1ce6f0c1
demo: Fix overview's nk_bool type usage
...
The overview demo uses some `nk_bool`s that are typed as `int`s. While things still do function, if you're using `NK_INCLUDE_STANDARD_BOOL`, it breaks compilation. This change fixes the `nk_bool`s to be actual `nk_bool`s.
2024-01-26 15:14:04 -05:00
Rob Loach
9d9781d5e2
Merge pull request #606 from pabdulin/fix-possible-loss-of-data
...
Suppress compiler `possible loss of data` warning with explicit cast
2024-01-25 15:31:24 -05:00
Petr Abdulin
b3b04fca16
Suppress MSVC compiler possible loss of data
warning with explicit cast
2024-01-23 09:18:21 +07:00
Petr Abdulin
6c6260a7c2
Suppress MSVC compiler possible loss of data
warning with explicit cast
2024-01-22 23:11:50 +07:00
Rob Loach
e410e39497
Merge pull request #605 from b-aaz/master
...
Added missing includes to the platform headers .
2024-01-22 01:59:52 -05:00
b-aaz
fb474874db
Added required includes to the platform headers .
...
Added missing include decelerations and in one case removed an unnecessary
one form the platform headers in the demo/ directory .
2024-01-20 16:16:45 +03:30
Rob Loach
f7fedf091f
ci: Target version 1.1.2 of create-tag
2024-01-13 20:16:08 -05:00
Rob Loach
8fe129624f
Merge pull request #603 from Immediate-Mode-UI/fix-create-tag
...
ci: Fix create-tag
2024-01-13 20:14:15 -05:00
Rob Loach
7607ec7988
Merge pull request #589 from ccawley2011/patch-1
...
Build more demos with CI
2024-01-13 20:14:00 -05:00
Rob Loach
0f4c368351
ci: Fix create-tag
2024-01-13 19:59:24 -05:00
Rob Loach
4344d5e945
Merge pull request #592 from yukyduky/offical/align_widgets
...
Add Text Alignment Options to Checkboxes and Radios
2024-01-08 16:43:37 -05:00
Brian Watling
f31cb7f7e5
Add a style option to disable point markers on charts
...
Fixes #594
2024-01-04 21:24:02 -05:00
Richard Gill
7c2fa16c26
Merge pull request #596 from waywardmonkeys/ci-update-checkout-action
...
ci: Update to `actions/checkout@v4`.
2023-12-20 19:06:43 +01:00
Bruce Mitchener
16336450bb
Fix typos.
2023-12-20 00:41:52 -05:00
Bruce Mitchener
029b558f57
ci: Update to actions/checkout@v4
.
...
This brings changes to keep up with the GitHub Actions internals
(among other changes). This will remove some of the deprecation
warnings in the GitHub Actions UI.
2023-12-19 20:18:36 -05:00
Richard Gill
544009db92
Merge pull request #588 from ccawley2011/new-stb-image
...
Integrated implementation of stb_image updated to 2.28
2023-12-12 19:42:20 +01:00
Jacob Ahnstedt
319f79f177
Built nuklear.h
2023-12-12 16:35:38 +01: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
aa99592045
Applied toggleable alignment to example skinning
2023-11-26 11:08:05 +01:00
Jacob Ahnstedt
9614f5f99d
Applied toggleable alignment to example extended
2023-11-26 11:04:52 +01:00
Jacob Ahnstedt
6c0f814c4e
Applied toggleable alignment to demos
2023-11-26 11:01:02 +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
Richard Gill
d052dd68de
Merge pull request #580 from yukyduky/disable-widgets
...
Added feature to disable widgets
Check nk_widget_disable_begin() and nk_widget_disable_end(), plus added styles for disable widgets.
2023-11-24 20:16:14 +01:00
Jacob Ahnstedt
060dbf9641
Fixed the overview example for option & checkbox alignment right
2023-11-24 16:57:50 +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
304856e71e
Made disable widget example run on more types of widgets
2023-11-20 13:57:45 +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
Cameron Cawley
2e918ed004
Build more demos with CI
2023-11-16 20:09:44 +00:00
Cameron Cawley
d09ff8935e
Update to a newer version of stb_image
2023-11-16 17:01:56 +00:00
Rob Loach
141d3cf9c6
Merge pull request #586 from mackron/button_text_alignment
...
Fix button text alignment
2023-11-16 02:10:25 -06:00
David Reid
42e4c54954
Bump patch version in clib.json.
2023-11-14 18:02:22 +10: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
Richard Gill
a18175cff0
Merge pull request #583 from m0ppers/vulkan
...
add vulkan demo
2023-11-13 10:02:50 +01:00
Andreas Streichardt
a3f0da05ab
✨ make vulkan validation layers optional
2023-11-13 09:17:17 +01:00