Commit Graph

270 Commits

Author SHA1 Message Date
vurtun
d3a6dc0d30 Merge branch 'master' of https://github.com/vurtun/gui 2017-06-06 20:31:51 +02:00
vurtun
26cd84382d Fixed #453 return flag for dynamic command buffer 2017-06-06 20:30:33 +02:00
Martins Mozeiko
e14dd1cb1b Demo using Direct3D 9 for rendering 2017-06-05 21:09:16 -07:00
Panagiotis Christopoulos Charitos
200017dab8 Make the font ptr const in nk_style_push_font 2017-05-25 23:00:39 +02:00
vurtun
530266b8e8 Merge branch 'master' of https://github.com/vurtun/gui 2017-05-23 15:21:21 +02:00
vurtun
7bd467935b Fixed #442 Activation of partially visible widgets 2017-05-23 15:20:44 +02:00
Tom Mason
aa6bd5a8ec remove typoed/duplicated function declaration 2017-05-23 11:20:54 +01:00
vurtun
d4f518168b Fixed #439 missing zeroing in nk_font_atlas_cleanup 2017-05-23 09:12:52 +02:00
vurtun
d9a57d42cd Fixed panel scaling to behave like windows native 2017-05-10 12:35:52 +02:00
vurtun
70d9de10c9 Fixed scrollbar drawing bug if not enough space 2017-05-09 21:22:09 +02:00
vurtun
9ed3eeec8d Fixed scaler dragging behavior #432 2017-05-09 20:03:51 +02:00
Norbert Nopper
621e233217 Removed compiler GCC warning. 2017-05-09 09:53:48 +02:00
vurtun
9dc7323b74 Added platform double click support #412 2017-05-06 18:50:32 +02:00
vurtun
012170b308 Added additional batch of documentation 2017-04-27 21:34:14 +02:00
vurtun
8559aebaed Fixed key repeat #416 in nk_input_key 2017-04-20 18:14:24 +02:00
vurtun
4c39852182 Fixed #405 and added property select and clipboard 2017-04-20 11:57:36 +02:00
vurtun
43a4f3ec82 Fixed nk_edit_flags sequence 2017-04-10 19:47:21 +02:00
vurtun
945dc5aeb1 Fixed #403 with another floating pointer error 2017-04-10 19:21:02 +02:00
vurtun
d68a9cf5ed Added first batch of documentation 2017-04-09 16:46:13 +02:00
vurtun
1995518b0d Added additional input window flags #399 2017-04-09 16:18:09 +02:00
Micha Mettke
e4c800a242 Merge pull request #398 from rokups/fix/nk_convert-graceful-failure
Allow graceful failure of nk_convert()
2017-04-09 15:52:12 +02:00
vurtun
89e6ed6b5a fixed #395 heap corruption in nk_buffer 2017-04-09 15:51:08 +02:00
Rokas Kupstys
bbb8190ad4 Removed two asserts in order to allow nk_convert() to gracefully fail when buffers do not provide enough space. 2017-04-09 16:04:01 +03:00
vurtun
7d5648db30 Added result flags to nk_convert 2017-04-08 09:46:40 +02:00
Naoyuki Sawa
b3963bf731 Fix gcc warning in nk_end(). 2017-04-05 10:30:07 +09:00
vurtun
274d9c416b Merge branch 'master' of https://github.com/vurtun/gui 2017-04-04 19:02:16 +02:00
vurtun
67f266a560 Fixed #388 crashing hidden window on popup click 2017-04-04 16:31:12 +02:00
Micha Mettke
58b7faff4e Merge pull request #389 from rokups/fixes
Several fixes
2017-04-04 16:17:21 +02:00
Cong
9b9f88e907 Remove redundant assign 2017-04-02 13:57:45 +10:00
Rokas Kupstys
80db75a068 Fix using uninitialized variable as condition. 2017-03-30 15:11:42 +03:00
Naoyuki Sawa
b24329d34a fix: warning unused variable in nk_finish() 2017-03-26 10:06:09 +09:00
vurtun
2a0942f04f Fixed #378 popup blocking NK_WINDOW_BACKGROUND windows 2017-03-25 14:57:44 +01:00
vurtun
944af0eb4c Fixed windows closing behavior 2017-03-25 09:12:38 +01:00
vurtun
23eea231d8 Added horizontal scrolling 2017-03-21 21:21:58 +01:00
vurtun
a979372909 Fixed #375 long window title drawing bug 2017-03-18 22:34:13 +01:00
vurtun
99ea7c4b53 Fixed const warnings 2017-03-15 18:18:00 +01:00
Cong
2e4db87ed1 Remove const cast of endptr in nk_strto* functions
Change `endptr` to `const char **` and avoid const cast.
Should not break existing code passing `char **` as `endptr`.
2017-03-15 22:22:53 +11:00
Cong
7134bf73b5 Fix unary operator clang warning 2017-03-12 22:43:18 +11:00
Micha Mettke
e6a6fe5b21 fixed #363 wrong example in documentation 2017-03-09 10:50:30 +01:00
vurtun
d5ea545a2b Hopefully fixed #362 text input filtering 2017-03-04 13:56:40 +01:00
vurtun
284772c00d fixed #361 group closable window flag 2017-03-04 13:10:33 +01:00
vurtun
e5c1cf9d70 Cleaned up custom draw commands to better fit
Had to change some small things to make everything work for a
general case instead of vertex draw list only. Furthermore I
don't want a custom widget inside nuklear so I removed it.
Feel free to add it back into your own version.
2017-02-25 22:50:37 +01:00
ClaasJG
4c25cd34f5 Added a new command type: NK_COMMAND_CUSTOM
Added a new command type 'NK_COMMAND_CUSTOM'.
A custom command contains a callback that will be called to fill the draw list.

Usage: 
static void custom_convert(struct nk_draw_list *list,
    short x, short y, unsigned short w, unsigned short h,
    nk_handle callback_data){/*Fill draw list.*/}

[...]nk_begin[...]
nk_custom(ctx, customConvert, nk_handle_id(0));

The handle can be used to pass data.
2017-02-25 14:13:08 +01:00
vurtun
064e31f3db Added assert to prevent group with closable flag 2017-02-24 19:18:42 +01:00
Anton Bondarev
aac2d71740 Make NK_API 'static inline' for NK_PRIVATE version
Fixed definition for C89 standard
2017-02-13 13:39:56 +03:00
Anton Bondarev
6fa8424d6e Make NK_API 'static inline' for NK_PRIVATE version 2017-02-06 16:43:33 +03:00
Dmitry Hrabrov
9cd5d035c3 Remove warning "unsigned only in ISO C90"
These warnings appear on GCC for Windows only. There a lot of them. Doesn't matter, native compilation or crosscompile.
`nuklear.h:6836:9: warning: this decimal constant is unsigned only in ISO C90`
2017-01-30 15:57:28 +03:00
vurtun
ef2dcd3b77 Added function to remove edit focus #321 2017-01-24 23:06:59 +01:00
Micha Mettke
3123ba0167 Merge pull request #330 from DeXP/master
Remove warning: 'nk_to_upper' defined but not used
2017-01-24 22:28:13 +01:00
vurtun
f5447a8406 Fixed typo _WIN64 instead of __WIN64
This is one of these highly embarassing typos I completly missed for a
long time.
2017-01-24 22:18:45 +01:00