Commit Graph

729 Commits

Author SHA1 Message Date
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
Rob Loach
d1fa8f7614
Merge pull request #619 from jonpikum/glfw-vulkan-demo
Minor fixes for GLFW Vulkan Demo
2024-04-04 13:07:10 -04:00
Rob Loach
deb529f5dd
Merge pull request #609 from paccerdk/FixDemosGrab
Fix missed grab state changes in SDL demos
2024-03-16 13:48:34 -04:00
Jonathan Bradley
03aa3086a0 demo: don't error-out on image count difference
The Vulkan spec states that create_info.minImageCount determines
the minimum number of images to create, not the exact count.
The count retrieved via vkGetSwapchainImagesKHR can (and in my
case does) differ - without penalty to the rest of the demo.
2024-03-08 15:01:13 -05:00
Jonathan Bradley
40a172bdaa demo: don't error-out on VK_SUBOPTIMAL_KHR 2024-03-08 11:40:43 -05:00
Brian Watling
254dfc2120 s/hide_markers/show_markers/ 2024-02-26 22:58:44 -05:00
paccer
56ab9d96ea Added comment to nk_sdl_handle_grab in SDL demos
Explains call order of SDL_SetRelativeMouseMode and SDL_SetWindowGrab
2024-02-23 20:39:08 +01:00
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
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
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
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
Bruce Mitchener
16336450bb Fix typos. 2023-12-20 00:41:52 -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
9af3869728 Made the PR not break current API 2023-11-28 09:52:30 +01:00
Jacob Ahnstedt
657e525ff8 Added all alignments to toggleables 2023-11-26 14:29:25 +01:00
Jacob Ahnstedt
6c0f814c4e Applied toggleable alignment to demos 2023-11-26 11:01:02 +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
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
304856e71e Made disable widget example run on more types of widgets 2023-11-20 13:57:45 +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
d09ff8935e Update to a newer version of stb_image 2023-11-16 17:01:56 +00:00
Andreas Streichardt
a3f0da05ab make vulkan validation layers optional 2023-11-13 09:17:17 +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
Andreas Streichardt
e67d078b75 🔥 remove compiled spv files 2023-10-22 12:08:57 +02:00
Andreas Streichardt
b65f1aa28e add vulkan demo 2023-10-22 12:03:27 +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
83e1ebb965
Merge pull request #582 from lockie/master
Fixed broken link in Allegro5 backend readme
2023-10-16 23:30:57 -04:00
Wladislav ヴラド Artsimovich
57d1f21056 Fix demo typo 2023-10-17 11:43:21 +09:00
Wladislav ヴラド Artsimovich
2ec96be4b9 Add horizontal rule demo 2023-10-17 11:37:30 +09:00
Andrew Kravchuk
6319e8f787
Fixed broken link in Allegro5 backend readme 2023-10-16 14:01:07 +02:00
Yukyduky
8016ff334d Added feature to disable widgets 2023-10-11 21:27:52 +02:00
nyaruku
036f8226bb
Fixed Transparent Text Background for GDI
Co-authored-by: Rob Loach <robloach@gmail.com>
2023-09-12 18:47:27 +03:00
nyaruku
0435477a91
Fix Copy/Paste/Select All for Text Input 2023-09-08 16:29:21 +03:00
nyaruku
1aae7b555a
Update nuklear_gdi.h 2023-09-06 05:00:45 +03:00
nyaruku
24ceaad002
Add files via upload 2023-09-06 04:47:25 +03:00
Richard Gill
77490e155c fixed titlebar options in overview demo 2023-05-16 09:21:51 +02:00
Andrew Kravchuk
c09e3b36f8
demo/allegro5: minor string-related tweaks 2023-03-01 18:53:02 +01:00
Mark Jansen
0b7547b710
demo/win32: Add the renderer name to the window title 2022-12-02 00:19:33 +01:00
Mark Jansen
b98732fbc8
gdi_native: Fix calling convention problem
The calling convention of a WNDPROC is specified as being 'CALLBACK'.
2022-11-30 18:56:00 +01:00
Th3T3chn0G1t
637b5e198d
Fixed UBSan trip in GLFW OpenGL3 demo backend
This resolves a false UBSan trip caused by treating the element offset
in `glDrawElements` as a pointer
This parameter is effectively an offset but is taken as a `void*`
By not storing the offset as a pointer, UBSan no longer tools the offset
to check for null pointer overflow
2022-11-24 10:21:37 +00:00
dumblob
835c6551d4
Merge pull request #504 from riri/demo-includes
demos: set style with defines to ease esp. regression testing
2022-10-13 17:59:10 +02:00
Richard Gill
54cd692d17 added comment on ifdefs to use styles in demos 2022-10-13 11:51:50 +02:00
Richard Gill
d63f106334 xlib backend: implemented arc commands 2022-10-12 22:08:08 +02:00
Richard Gill
fc5ce1c495 demos: set style with defines
To avoid having to modify the demo code,
conditionnally include a predefined style
2022-10-12 21:19:58 +02:00