Commit Graph

1327 Commits

Author SHA1 Message Date
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
Michael Labbe
c867184094 fix visual studio warning C4116 2016-09-04 10:39:19 -07:00
vurtun
1d465751c6 Fixed wrong combobox height calculation #224
Functions `nk_combo`, `nk_combo_seperator`, `nk_combo_string`,
`nk_combo_callback`, `nk_combobox`, `nk_combobox_seperator`, `nk_combobox_string`,
`nk_combobox_callback` all calculated the the height of the combo box
panel wrong and forces a scrollbar even if it was not required. The
calculation is now fixed and should produce the right result.
2016-09-04 12:25:31 +02:00
vurtun
7279f0f0cc Updated examples to new vertex layout API 2016-09-04 10:02:28 +02:00
vurtun
7f5d808809 Fixed CPP build
Looks like C++11 does not like conversion from pointer to int.
No problem just set type to `nk_size`.
2016-09-03 18:05:06 +02:00
vurtun
fc832cef07 Fixed gaps in combobox under OpenGL
This is basically a hack to fill the gaps. I have absoultly no idea why
I get some of these gaps but hopefully it is fixed and does not come
back to hunt me in the future.
2016-09-03 12:55:28 +02:00
vurtun
1b9779ce51 Nuklear now allows custom vertex layouts
I removed the default vertex type and instead create an API to allow the
user to specify the vertex struct layout. Of course you are still
bound on what the library actual has on vertex data but the type and
sequence of the data is now configurable. This commit is quite
experiental and could introduce some bugs, but so far it look fine.
2016-09-02 15:33:49 +02:00
vurtun
210bc49b25 Removed unused variables 2016-08-31 20:04:28 +02:00
vurtun
d9b2cf2035 Fixed #227 with API argument name mismatch 2016-08-31 19:38:32 +02:00
vurtun
4cc1778f9c Fixed C++ build errors 2016-08-31 19:29:18 +02:00
vurtun
550a2b03d3 Fixed some bug introduced by last commit and more
This commit fixed some bugs from the last commit as well as some general
changes and fixes of some old bugs. For overview of all changes please
look inside `CHANGELOG.md`.
2016-08-31 19:19:06 +02:00
vurtun
82e35927b4 Removed some internal complexity
This is a rather experiemental commit to remove some internal complexity
that build up over time handling panel padding and border. There still
could be some bugs but I tried my best to keep everything working.
2016-08-30 21:54:10 +02:00
vurtun
ad821dc808 Added additional height parameter to combo box
Added a max height parameter to very retain mode combo box to allow
a fixed height.
2016-08-29 19:40:27 +02:00
vurtun
24f7096acc Added popup mouse scrolling and fix popup drawing
Previously it was only possible to scroll windows and groups by mouse.
No it is possible to scroll popups, as well as nonblocking popups like
menus, contextuals and comboboxes. In addition I fixed a drawing bug
in dynamically growing panels.
2016-08-29 19:20:53 +02:00
vurtun
8e4d8ee741 Added window name string representation
To account for hash collisions which can be quite nasty I added
the string representation of the window name for additional
assurance. I also added an assert to check and alert if two windows
have the same name.
2016-08-26 20:31:33 +02:00
Micha Mettke
abac1878eb Merge pull request #222 from KalenAnson/master
Do not insert a backward delete
2016-08-26 20:02:38 +02:00
vurtun
727b912390 Update canvas example with background color arg
`nk_canvas_begin` now takes a background color directly instead of
requiring the user of the API to clear the window background with
another draw call.
2016-08-26 19:48:04 +02:00
vurtun
d4625dc9c1 Added stacks for temporary style/UI changes
It is now possible to temporarily push some style values like color,
style items, font, ... into a stack modify the value and as soon as
you are done just pop the changes. Main benefit is less boilerplate
code to manually save and restore configuration properties.
2016-08-26 19:46:06 +02:00
Kalen Hall
f614b5dc1a Check for incoming backward delete (unicode 127) and do not insert into text box, just process as a text event 2016-08-26 11:08:12 -04:00
Micha Mettke
7577513efc Merge pull request #217 from kybin/master
make all examples
2016-08-25 14:15:45 +02:00
vurtun
e8936c8111 Merge branch 'mmozeiko-master' 2016-08-25 08:12:28 +02:00