Commit Graph

46 Commits

Author SHA1 Message Date
Rob Loach 4cfea49522
Remove STYLE_ defines as we have the style dropdown 2024-04-25 16:37:07 -04: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
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 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
Mark Jansen 0b7547b710
demo/win32: Add the renderer name to the window title 2022-12-02 00:19:33 +01:00
Richard Gill 54cd692d17 added comment on ifdefs to use styles in demos 2022-10-13 11:51:50 +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
Benedikt Müssig dca0f6fcfc
Corrected the fill bugs in the GDI binding 2022-05-12 13:30:18 +02:00
Benedikt Müssig 628cc61263
Added the wingdi header to the GDI binding 2022-05-12 13:04:42 +02:00
Benedikt Müssig e698bb1531
Added the GDI arc drawing commands to the dispatch switch-case 2022-05-12 12:54:03 +02:00
Benedikt Müssig 321badb389
Implemented select all for GDI 2022-05-12 12:52:44 +02:00
Benedikt Müssig cacdf6baa4
Added the arc methods to the GDI binding 2022-05-12 12:52:05 +02:00
crazyBaboon f0dccaeeec
Integrate file browser with glfw opengl2 demo (#400) and restructure demo/ directory accordingly 2022-03-14 20:46:44 +01:00
Cameron Cawley 459ba9c48c Integrate the canvas example with the demos 2021-12-16 20:26:26 +00:00
Cameron Cawley 9af0103cac Build all demos as C89 2021-12-14 20:14:34 +00:00
Tropby 386386f7de added casts to HBITMAP (needed to compile with mingw 32bit)
added "A" to CreateFont (needed to compile with mingw 32bit)
2019-06-15 12:50:24 +02:00
Kenney Phillis Jr 3121e6cb2a gdi demo: Implement nk_gdi_rect_multi_color.
This implements the GDI Rect Multicolor functions. This will work without
any problems when targetting Windows 2000 and up.

TODO: Fix Alpha blending. The Color Matrix does not render correctly.
2018-10-18 18:13:56 -05:00
Kenney Phillis Jr 9c2af0124d gdi demo: fix style issues.
A small fix of style where tabs are replaced with spaces.
2018-10-18 18:13:36 -05:00
Vincent Torri 1fdf7828af demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
um e409328ff2 fixed nk_gdi_stroke_rect() : used old version (Rectangle/RoundRect) but with transparent brush. 2018-02-02 10:32:45 +03:00
um f771450e93 Correct GDI window sizing handling 2018-02-01 17:26:27 +03:00
Martins Mozeiko 5acdfc9e34 correctly draw non-filled rectangle for GDI demo 2018-01-29 22:14:41 -08:00
vurtun 6bddc5c5f0 Update demos configurables and removed warnings 2018-01-01 17:20:55 +01:00
FraKtus 9c3ab8ed60 implemented nk_create_image and nk_delete_image 2017-06-04 15:29:42 +02:00
Martins Mozeiko edac63b81e double click support in demo code for Windows platforms 2017-05-16 22:29:43 -07:00
vurtun 5cf6f204b7 Removed wrong `nk_window_is_closed` in demos 2017-04-06 09:51:50 +02:00
vurtun 23eea231d8 Added horizontal scrolling 2017-03-21 21:21:58 +01:00
vurtun 5011a36529 Updated CHANGELOG format and versioning 2017-01-15 21:13:38 +01:00
Naoyuki Sawa 43b05749d2 fix for readability 2016-11-15 23:26:57 +09:00
Naoyuki Sawa 2849cdf8cd fix: In the windows demos, the key reaction is occured at the timing of the control keys are released. 2016-11-15 19:49:24 +09:00
vurtun bd3fd8300f Pulled panel memory managment into nuklear
I simplified a lot of API calls by pulling panel memory management
inside the library. All API calls which previously required a panel
as parameter are now handling their panel themself.
2016-10-29 23:28:47 +02:00
vurtun ef835f7afc Fixed some C++ errors and styling in windows demos 2016-08-17 08:00:38 +02:00
vurtun 02718210e6 Added additional property version for double
Nuklear now has three different property versions for int, float and
added by this commit a double version. Internally an additional change
happend. Now the type of the property is actually taken into account
and floating pointer errors due to casting are less of an issue.
2016-08-12 12:08:13 +02:00
vurtun 94ca7accdf Version 1.05 split varargs include into own define
Previously I packed standard library variable arguments as well as
file operation into one define `NK_INCLUDE_STANDARD_IO`. This caused
some problems and I split the define into two. So if you want the old
behavior you need to define `NK_INCLUDE_STANDARD_IO` as well as
`NK_INCLUDE_STANDARD_VARARGS`. If you only want file operations but
not variable arguments only define `NK_INCLUDE_STANDARD_IO` and
if you only want varargs but not file operations please only define
`NK_INCLUDE_STANDARD_VARARGS`.
2016-08-06 17:44:00 +02:00
vurtun 100480c6c7 Fixed swapping out fonts
I had a long standing bug inside nuklear which prevents you from
swapping out a font while the code is being build. This bug is now
fixed but the fix requires _ALL_ `nk_user_font` data structures
provided by `nk_style_set_font` to be persistent.
2016-08-04 14:18:29 +02:00
vurtun bb61df524d Removed /WX flags from gdi/gdip build bat files 2016-08-02 21:39:12 +02:00
vurtun fd5239fa82 Fixed copy and paste error in gdi/gdip demos 2016-08-02 21:22:15 +02:00
vurtun c5614d9098 Release 1.01 changes in changelog in `nuklear.h`
Breaking changes to the button API, font atlas and added software
cursor to library.
2016-07-16 01:33:37 +02:00
vurtun 920374bb44 Added scrollbar shortcuts to demos 2016-06-16 20:53:30 +02:00
vurtun 35d302ee8e Fixed windows demos 2016-05-01 10:33:51 -07:00
vurtun 953cc967bb Converted windows demos into singe header files 2016-05-01 19:14:48 +02:00
vurtun 8f6d27072c Fixed extended windows demo errors 2016-04-30 11:24:59 -07:00
vurtun 8a01de120a Restructured demos and examples
All platform and renderbackend independent examples are now optional
demos for all platforms in `demo/`. Moving some demos from `example/`
provides an easier way to test GUI concepts for users and simplifies
maintenance.
2016-04-28 17:01:19 +02:00
Martins Mozeiko 062032e933 Created demo using Direct3D 11 for rendering. Uses VS2015 for compiler.
Also fixes wrong location of GlobalUnlock in GDI rendering demo.
2016-04-23 11:20:47 -07:00
Martins Mozeiko d6ada00cb8 Created demo using Win32 GDI rendering. Uses VS2015 for compiler. 2016-04-22 01:21:19 -07:00