Commit Graph

1092 Commits

Author SHA1 Message Date
vurtun f288188a72 Changed overlooked memset calls to NK_MEMSET 2016-08-06 14:36:31 +02:00
vurtun 204a663de7 Fixed fast window scaling behavior
If you move the cursor to fast while scaling a window there is a
chance the mouse will miss the scaler and the scaling operation will
halt. Dragging in itself is quite hard but I implemented the hack I
use for property, window moving and slider for the window scaler and
scaling hopefully now works correctly.
2016-08-04 21:09:31 +02:00
vurtun 2b1c2ca540 Fixed window scaling, movement bug
This is quite an old bug and a result of being nearly stateless.
If you move/scale a window and another window is behind it the other
window will be acitvated and the move/scale operation will be stopped.
To fix this I now require no mouse down for activating by hovering.
I hope this does not cause any problems and fixes the problem for good.
2016-08-04 16:31:44 +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 69df3f5369 Fixed #194 example/extended.c compile error 2016-08-04 08:59:17 +02:00
vurtun 7f4e5eb76e Fixed 'NK_WINDOW_BACKGROUND' behavior 2016-08-03 20:21:31 +02:00
vurtun b251f91107 Fixed multiple crashes in font handling 2016-08-03 16:22:13 +02:00
vurtun 8d5c479db2 Release version 1.04 changes in changelog 2016-08-03 12:01:33 +02:00
vurtun 84b1bbf069 Fixed NK_RGB color picker widget
Removed invalid assert macro which wrongfully triggers if you call
`nk_color_picker` with parameter `NK_RGB`.
2016-08-03 09:50:56 +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 c87a55cf56 Version 1.04 with seperated window name and title
Added `nk_begin_titled` for seperated window name and title or cases
you need to keep persistent state between frames while changing
the window title.
2016-08-02 10:48:32 +02:00
vurtun c957b49d04 Moved helper macros inside header guard
A previous push request added some macros into the header file and
I missed that it was outside the header include guard. This should
now be fixed and not cause problem if included multiple times in
different location.
2016-08-01 21:54:41 +02:00
vurtun c84b2f9a96 Fixed notebook tab group with same name
I forgot to provide a new name to the notebook group so if you
scroll the other group with the same name it will not work.
2016-08-01 13:06:23 +02:00
vurtun c4315eaf5b Added flags indicate if an event was used in demo
Demos for x11 and sdl have been update so that `nk_xxx_handle_event'
return true (1) if the given event was usefull and processed by
nuklear and false (1) if not.
2016-08-01 12:51:43 +02:00
vurtun 648aca3a6a Added notebook tabs example to overview.c
Since it was requested I added a small snippet showing how to create
notebook tabs (header with buttons, selecting content). The added
demo is basically just a combination of already existing widgets +
some small styling changes and can be extended to easily support
case with more tabs then space in the header part. I will have
to think about if it is possible to create an API for this without
taking away the simplicity of it.
2016-07-31 20:37:24 +02:00
vurtun 3011ef451f Added clipboard as default flag to edit fields
Edit flags are now a default flag for edit field and editors.
2016-07-31 20:35:32 +02:00
vurtun 831a9c32da Update examples to version 1.03 2016-07-29 23:26:44 +02:00
vurtun ebfeeea7e1 Version 1.03 with auto hiding window scrollbars
Window scrollbar will if enabled by window flag hide if no user
interaction happens for a set time duration.
In addition the internal window/table data structs are now located
inside the header part of nuklear to remove the need to allocate a
pool and therefore simplify memory management.
2016-07-29 12:36:51 +02:00
Micha Mettke 11c380219e Merge pull request #185 from timothyqiu/doc_fixes
Fixes typos in comments
2016-07-28 09:57:07 +02:00
Timothy Qiu ff00fc00f6 Fixes typos in comments 2016-07-27 09:54:56 +08:00
vurtun fe1f1530f4 Fixed hole in combobox and window border drawing
Hopefully I finally fixed the hole inside combobox popup which only
occur if you set the window border size greater one. In addition
I fixed some subpixel drawing artifacts that come up if you use
antialising in combination with vertex buffer output.
2016-07-25 16:54:59 +02:00
vurtun 9637af3681 Fixed window border and popup border drawing 2016-07-25 11:58:01 +02:00
vurtun 980889e6f9 Fixed color picker crosshair drawing
The crosshair inside the color picker had some some wrong pixel
measurements. This is now fixed and should look correct.
2016-07-25 09:42:20 +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 c6652be288 Merge branch 'phoekz-master' 2016-07-15 13:57:23 +02:00
vurtun d8adeae85f Merge branch 'master' of https://github.com/phoekz/nuklear into phoekz-master 2016-07-15 13:55:29 +02:00
vurtun 0def503980 Fixed `NK_INCLUDE_COMMAND_USERDATA` flag
Fixed compile error if flag NK_INCLUDE_COMMAND_USERDATA was set.
2016-07-15 13:48:39 +02:00
vurtun 362afc071a Fixed edit scrollbar and ROM flag
I completely forgot to add the edit scrollbar style and
had a incorrect scrollbar bounds calculation. Both bugs
should now be fixed. Furthermore the edit ROM flag know
prevents any manipulating input instead of all input.
So it should be possible to move or copy inside the edit
field but not to modify the content.
2016-07-14 12:56:41 +02:00
vurtun db4ff5ad93 Merge branch 'ytsarko-master' 2016-07-12 15:48:15 +02:00
vurtun d49b669db9 Added function to modify window title 2016-07-12 15:47:53 +02:00
vurtun def4850b49 Merge branch 'master' of https://github.com/ytsarko/nuklear into ytsarko-master 2016-07-12 15:44:23 +02:00
vurtun 894f07394e Merge branch 'phoekz-popup_toggle_semantics' 2016-07-10 22:31:48 +02:00
Vinh Truong 383d0f94bd Change popup toggling semantics
For gui elements like tree tabs, tree nodes and windows themselves,
you can repeatedly click the same "minimize" region and it keeps
toggling that element. This was not the case with "popup" type of
elements. This commit slightly changes how the popups close once
they are already open.

Like before, the user can close the popup by just clicking outside
the popups region. Now the user can also close the popup by clicking
the "header" region of the popup.
2016-07-10 10:36:28 +03:00
Vinh Truong 3b50eedba4 Fix nk_input_key to enable keyboard key repeat 2016-07-10 01:43:31 +03:00
Micha Mettke 507a264f91 Merge pull request #177 from phoekz/master
Fix incorrect printf token in nk_value_format_byte
2016-07-09 23:22:37 +02:00
Vinh Truong 5b8b9f8832 Fix incorrect printf token in nk_value_format_byte 2016-07-09 23:30:10 +03:00
vurtun 2f9f1259bd Merge branch 'phoekz-master' 2016-07-09 18:22:13 +02:00
Vinh Truong e1655817b8 Fix fading glyphs with global_alpha < 1 2016-07-09 19:06:17 +03:00
Micha Mettke e5ce2de621 Merge pull request #164 from cwkx/master
Emscripten support with glfw3 (and shaders) demo at www.cwkx.com/nuklear
2016-07-06 17:59:30 +02:00
Micha Mettke de7f8863b2 Merge pull request #175 from timothyqiu/tabfixes
Fixes misuse of spaces in GLFW demo Makefiles
2016-07-06 17:46:58 +02:00
Timothy Qiu 440f2f7cbc Fixes misuse of spaces in GLFW demo Makefiles 2016-07-06 09:15:00 +08:00
Yaroslav Tsarko e3a29e9fdf Merge remote-tracking branch 'upstream/master' 2016-07-01 09:38:27 +03:00
vurtun 605d59bf8e Fixed #173 draw list clearing bug 2016-06-29 06:54:29 +02:00
vurtun 4abd29f2ed Merge branch 'inolen-master' 2016-06-25 10:40:44 +02:00
vurtun 4d390a9c46 Fixed some code style issues
Enforced the correct code style and tab index width of 4 instead of 2.
2016-06-25 10:39:49 +02:00
vurtun b82cf7251e Merge branch 'master' of https://github.com/inolen/nuklear into inolen-master 2016-06-25 10:32:55 +02:00
Micha Mettke 5ff8901db4 Merge pull request #168 from jwerle/master
make clib friendly
2016-06-25 10:30:33 +02:00
Micha Mettke 6627a63436 Merge pull request #171 from mogud/master
fix macro nk_tree_image_push_id: params error
2016-06-25 10:29:06 +02:00
Anthony Pesch af451ebee2 Make panels use the max of the scaler size or scrollbar y size when calculating their height
Make horizontal scrollbars use the scrollbar y size when calculating their position
2016-06-23 22:55:37 -07:00