1106 Commits

Author SHA1 Message Date
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
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
Martins Mozeiko
cda38a853c Fixed issues with GDI+ demo - font handling and typo for VK_END handling. 2016-08-24 19:16:34 -07:00
vurtun
114757ffa6 Hopefully fixed iOS key up/down issue #215
SDL iOs implementation provides key press and release in
one frame and while nuklear previously was keeping track
of transistions it did not check it. It hopefully should now be
possible to correctly interpret up and down key in the same frame.
2016-08-24 20:37:26 +02:00
vurtun
e69aee6922 Added additional nk_edit flag
Added flag `NK_EDIT_GOTO_END_ON_ACTIVATE` flag to text fields which
cursor jump to the end of the text field when activated.
2016-08-24 20:22:38 +02:00
vurtun
63c4c40203 Merge branch 'master' of https://github.com/vurtun/gui 2016-08-24 19:01:21 +02:00
vurtun
9f60ef2a3b Fixed #218 with invalid assert and condition check 2016-08-24 16:01:43 +02:00
kim yongbin
285e43c787 make all examples 2016-08-24 00:34:13 +09:00
Micha Mettke
d9b34fe219 Merge pull request #216 from kybin/master
add missing CLFW_PRESS check for GLFW_KEY_RIGHT_CONTROL
2016-08-23 17:30:39 +02:00
kim yongbin
b54bc88e47 add missing CLFW_PRESS check for GLFW_KEY_RIGHT_CONTROL 2016-08-23 23:00:40 +09:00
vurtun
ef835f7afc Fixed some C++ errors and styling in windows demos 2016-08-17 08:00:38 +02:00
vurtun
9d184a8b91 Fixed ROM-Flag for deeper level of popup parents
No you can have non/block- popups inside nested groups while the parent
groups do not receive any more input which was a bug.
2016-08-16 19:33:33 +02:00
vurtun
9d14e8e3ae Split CHANGELOG into own file
Since the CHANGELOG in `nuklear.h` became bigger and bigger I decided to
split it into it's own file. Probably have to think about a layout.
2016-08-16 17:40:57 +02:00
vurtun
8bf255030a Keep edit field active after enter commit
Edit widget width `NK_EDIT_SIG_ENTER` flag now keep their active
state after enter was pressed. Main reason is to be able to keep
typing after commiting.
2016-08-15 15:07:11 +02:00
vurtun
ce234fc7a7 Removed redundant code 2016-08-15 11:50:40 +02:00
vurtun
01c088e7d8 Fixed negative numbers in nk_strtoi 2016-08-15 11:24:00 +02:00
vurtun
2dab85fde1 Enhanced the canvas example a little bit
Removed some global varibles and made the canvas a little bit easier
to use and embed into code.
2016-08-15 10:35:42 +02:00
vurtun
3771eb1dab Changed NK_WINDOW_BACKGROUND behavior
Background windows now get only selected by hovering if no other window
is above it and not on clicks.
2016-08-15 10:34:27 +02:00
vurtun
338eba3d57 Fixed #211 font baking bug with multiple ranges 2016-08-14 18:46:22 +02:00
vurtun
cae6005015 Removed emscript demo since not up to date
Taking in an extern demo is almost always a bad idea since I will be
the one to keep to date and I am not always able to do so. Emscript
was the last time I tried. For now on if anyone has a neat demo
please keep it in your own repository and I will create a link to it.
2016-08-12 20:23:55 +02:00