Commit Graph

1247 Commits

Author SHA1 Message Date
Naoyuki Sawa
bb2cd9a58c bugfix: nk_combo_separator showed incorrect item length and broken item text. 2016-11-01 10:58:56 +09:00
vurtun
b280370fc8 Fixed copy & paste error 2016-10-31 07:39:43 +01:00
vurtun
69b13a008d Fixed C++ errors 2016-10-30 15:31:04 +01:00
vurtun
7ed612ee9a Merge branch 'master' of https://github.com/vurtun/gui 2016-10-30 14:12:56 +01:00
vurtun
d8688c623f Fixed clipping rectangle bug 2016-10-30 14:12:30 +01: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
534b14a2a9 Fixed X11 stroke rect drawing 2016-10-29 21:15:16 +02:00
Micha Mettke
01eb4f88d8 Merge pull request #259 from ettoretorti/ettoretorti-patch-1
Correct NK_MEMCOPY optional define to NK_MEMCPY
2016-10-23 00:17:23 +02:00
vurtun
a04462c3b9 Merge branch 'dankan1890-master' 2016-10-23 00:14:29 +02:00
dankan1890
3967fb533c Improved and fixed example/Makefile. 2016-10-22 21:43:33 +02:00
vurtun
4020b1bab2 Changed border drawing for widgets
Previously every widget border was drawn by two overlapping rectangles
to limit the number of primitives required to be supported by any
potential backend. The biggest problem from using this approach
is drawing overhead and no real way to get widget transparency. So
I changed border drawing to use stroked rectangles instead of a
second filled rectangle drawing call.
2016-10-21 18:02:41 +02:00
vurtun
867b3359b9 Added functions to manually set edit widget focus
I added function `nk_edit_focus` to set the focus to the next edit
widget that will be called after calling.
2016-10-18 22:27:30 +02:00
Ettore Torti
69221cfd3d Correct NK_MEMCOPY optional define to NK_MEMCPY 2016-10-17 16:07:11 +01:00
Robin B
fe785e590e Fix segfault
calling nk_init_default stores the address to the font (which is on stack) into the nk_context
but when it returns that stack memory is effectively undefined, thus making the program segfault
2016-10-08 19:58:11 +02:00
Micha Mettke
51a63af252 Merge pull request #253 from ytsarko/master
Implemented drawing command memory zeroing for quick buffer compares
2016-10-05 19:29:06 +02:00
Yaroslav Tsarko
26d77f88ff implemented ability to quick compare drawing command buffers
using memcmp and decide whether to draw a new frame or not:
  * added NK_ZERO_COMMAND_MEMORY macro
  * when NK_ZERO_COMMAND_MEMORY is defined, inside
    nk_command_buffer_push function there is an additional call
    to NK_MEMSET after allocating memory for new drawing command
2016-10-05 10:11:07 +03:00
Yaroslav Tsarko
9b89489ffd Merge remote-tracking branch 'upstream/master' 2016-10-05 09:53:49 +03:00
vurtun
8635883fea Updated Readme and added rust binding from snuk182 2016-09-29 19:31:45 +02:00
vurtun
4e26fb0949 Fixed edit widget UTF-8 cursor drawing bug 2016-09-29 14:51:57 +02:00
vurtun
d370ef9bd1 Fixed edit widget UTF-8 text input 2016-09-28 19:58:37 +02:00
vurtun
3977145137 Fixed drawing bug inside edit box for UTF text 2016-09-28 18:28:25 +02:00
vurtun
f7a6efc3ca Updated Readme 2016-09-24 12:33:14 +02:00
vurtun
5d8e9fd277 Updated Readme and added golang binding link 2016-09-24 12:32:01 +02:00
vurtun
3b89835533 Fixed font base85 decoding for trigraphs 2016-09-23 10:13:17 +02:00
vurtun
0fef9148fc Fixed color button size calculation 2016-09-20 18:28:20 +02:00
vurtun
ea47c24c28 Removed <stdio.h> fro NK_INCLUDE_STANDARD_VARARGS 2016-09-20 17:17:19 +02:00
vurtun
81d8d689cf Additional behavior fixes for nk_vsnprintf 2016-09-20 00:12:19 +02:00
vurtun
34ddd97c03 Removed test code 2016-09-19 19:12:02 +02:00
vurtun
85b7c7b7f3 Extend nk_strfmt to conform more to C standard 2016-09-19 18:47:34 +02:00
vurtun
7b71cbf03b Fixed NK_VSNPRINTF macro for vsnprintf 2016-09-19 10:46:19 +02:00
vurtun
1e2fadd46b Fixed small typo in standard library version check 2016-09-19 10:08:48 +02:00
vurtun
6fcd349b99 Updated changelog 2016-09-18 21:37:01 +02:00
vurtun
43a8e246be changed #if to #ifdef 2016-09-18 19:57:19 +02:00
vurtun
b0e2dba52c Fixed C89 error caused by missing vsnprintf
For more information please look inside the changelog. This is more of
an internal fix and hopefully does not break any existing code. I also
removed `nk_strfmt` from the API and made it internal only.
2016-09-18 19:49:52 +02:00
Micha Mettke
a7e97e53ac Merge pull request #246 from flederfalter/ttt/master
update example to recent api changes
2016-09-18 10:41:03 +02:00
flederfalter
d8718a06b2 update example to recent api changes 2016-09-18 05:21:28 +02:00
vurtun
5f3c1e241b Fixed popup close to deeper panel level
If you had any kind of popups like for example comboboxes inside a
deeper panel structure using nk_group, then `nk_xxx_close` would only
unblock input for the first level and not the whole panel stack. This is
now fixed and works correctly.
2016-09-16 10:44:45 +02:00
vurtun
00ab109855 Fixed C++ errors and internal selection padding 2016-09-16 10:09:26 +02:00
vurtun
e4623c7f8a Upgraded demos to new non-block popup APIs 2016-09-15 20:18:41 +02:00
vurtun
85d109e351 Fixed non-blocking popup closing behavior
This is a breaking change which fixes bad closing behavior in
non-blocking popups. If the maximum size of a non-blocking popup was
not reached and you clicked to close the popup under it could happen
that it wouldn't be closed. This is now fixed in combination with
more popup control by allowing to set both the maximum height as
well as popup width.
2016-09-15 18:20:07 +02:00
Yaroslav Tsarko
ea579ed09b Merge remote-tracking branch 'upstream/master' 2016-09-15 11:34:16 +03:00
vurtun
2a888b3098 Added assert to make sur menubar is used correctly
Since it is not as clear on how to use the menubar correctly as I
thought added an assert into `nk_menubar_begin` with explainations on
how to use it correctly and stop wrong ussage.
2016-09-15 10:01:58 +02:00
vurtun
179fddb5de Cleanup type selection and add additional check 2016-09-14 22:46:11 +02:00
vurtun
3d3e63133e Fixed #240 slider behavior is now correct 2016-09-13 19:00:20 +02:00
vurtun
cc9d6f374c Updated d3d11 to use vertex layout format 2016-09-10 13:11:12 +02:00
vurtun
9e6b4f67cc Changes to fix #233 and #238
For more informatio please look inside the issues and for the
actual changes overview please look inside `CHANGELOG.md`
2016-09-08 20:20:02 +02:00
vurtun
4ad73e83c2 Fixed #239 compile flag to add userdata to command 2016-09-07 07:31:43 +02:00
vurtun
929d74a338 Added documentation to warn for #233
Since it was not as apparent as I thought it is I added some
documentation warning to set the same flags each time you
include "nuklear.h" except `NK_IMPLEMENTATION` which is only
allowed to be defined once in *one* source file.
2016-09-04 20:46:23 +02:00
Micha Mettke
d38cd31010 Merge pull request #237 from mlabbe/master
fix visual studio warning C4116
2016-09-04 20:39:02 +02:00
vurtun
98c7376556 Fixed some warning and C89 errors 2016-09-04 20:29:41 +02:00