Commit Graph

1164 Commits

Author SHA1 Message Date
vurtun
f2b9b9a586 Allow NK_API to be overwritten #281 2016-11-13 08:21:00 +01:00
Micha Mettke
7fa1aa2c37 Merge pull request #280 from nsawa/fix__nk_layout_widget_space
fix: using nk_layout_row_begin() with NK_STATIC makes incorrect layout
2016-11-11 18:23:54 +01:00
Naoyuki Sawa
344f121468 fix: using nk_layout_row_begin() with NK_STATIC makes incorrect layout 2016-11-11 17:40:01 +09:00
vurtun
02fb019374 Fixed warnings and C++ error #279 2016-11-11 06:43:54 +01:00
vurtun
1acb7ba283 Added additional nk_tree version
Added another version of `nk_tree` that does not store internal state
to hold the tree state (minimized/maximized). Main advantages is
possibily less memory consumptions and more user control.
In addition a new set of button overloads were added to directly pass
in a button style struct which allows an easier way to have custom
button visuals for specific buttons.
2016-11-10 19:17:27 +01:00
vurtun
42efd8214f Added addition nk_group and new nk_list_view
Added additional `nk_group` version which uses an external scrollbar
offset instead of internally managing the memory. In addition
`nk_list_view` is introduced which allows drawing huge lists inside a
`nk_group`(#269).
2016-11-09 20:46:07 +01:00
vurtun
9f9591c18d Removed SDL1.2 version to ease development 2016-11-06 11:37:17 +01:00
Micha Mettke
a24f3f6bca Merge pull request #254 from coderobe/patch-1
Fix segfault in sdl1_2 demo
2016-11-06 11:36:25 +01:00
Micha Mettke
33077a1e02 Merge pull request #276 from nsawa/fix__nk_color_hex_rgba
fix: nk_value_color_hex() showed incorrect value.
2016-11-06 10:59:19 +01:00
Naoyuki Sawa
ebed2e6c0c fix: nk_value_color_hex() showed incorrect value. 2016-11-05 17:15:04 +09:00
Micha Mettke
18bacf0d8c Merge pull request #274 from nsawa/fix__nk_hsva_f
fix: nk_hsva_f() lacked processing for quadrant 3
2016-11-03 20:09:30 +01:00
Micha Mettke
ccc8fd61ab Merge pull request #273 from nsawa/fix__nk_value_color_byte
fix: nk_value_color_byte() shows incorrect text
2016-11-03 19:47:57 +01:00
Naoyuki Sawa
bb7ffc4c49 fix: nk_hsva_f() lacked processing for quadrant 3 2016-11-03 16:11:45 +09:00
Naoyuki Sawa
329dacd6ef fix: nk_value_color_byte() shows incorrect text 2016-11-03 14:39:50 +09:00
Micha Mettke
dea4a71ed5 Merge pull request #270 from nsawa/nk_combo_separator__bugfix
bugfix: nk_combo_separator showed incorrect item length and broken it…
2016-11-01 10:32:21 +01:00
Micha Mettke
fdecbc7527 Merge pull request #271 from sillyousu/master
remove useless variable which causes wild  pointer error
2016-11-01 10:21:34 +01:00
su21
72491bafb1 remove useless variable 2016-11-01 16:59:08 +08:00
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