Commit Graph

1134 Commits

Author SHA1 Message Date
vurtun
af09e4898e Fixed bugs from #136 and pulished edit behavior
Hopefully fixed selection bug for empty lines and made edit widget
usable while being only partially visible. I also added two addition
modes for a vim like expierence with view, insert and replace mode
instead of default replace mode, but only added the new behavior into
the x11 demo so far.
2016-05-19 14:37:56 +02:00
vurtun
ef4be0a1bd Extended OS window size in demos 2016-05-19 12:30:17 +02:00
vurtun
a03c887b71 Fixed #137 by only clipping not visible triangles
Triangle software clipping conditions was incorrect and clipped if
already one vertex was not visible.
2016-05-19 12:27:34 +02:00
vurtun
67588f3ba3 Fixed #135 rendering bug
This commit fixes a stupid reallocation bug I had inside the library.
Basically I get a pointer inside a growing buffer which can be
invalidated by a second allocation and regrowth of said buffer.
Under normal circumstances I do not do this but in one instance I
actually did. That is for allocation temporary normals. This issue
should now be fixed and work correctly.
2016-05-19 12:14:19 +02:00
vurtun
ed4a3133b8 Fixed some issues valgrind and ASAN found
This fixes some small harmless unitialized variable access violations
found by either valgrind or ASAN. Nothing really ground breaking but
still cleaner.
2016-05-18 20:19:48 +02:00
vurtun
f1378be50e Updated Readme 2016-05-17 18:37:13 +02:00
vurtun
a529f967e6 Another demo change to fix High DPI screens 2016-05-16 20:22:52 +02:00
vurtun
570ce73404 Fixed #131 with moving unfocused windows
Previously you had to first activate a window by clicking if it was
visually blocked by another window to move it around which was a
little bit blocky. It should now be possible to directly move and
activate a window.
2016-05-16 14:38:43 +02:00
vurtun
71ee9a3986 Fixed #132 piemenu clipping bug
Previously the piemenu had a clipping bug caused by different offset
between internal and external properties. I just set spacing and
padding to zero to let the piemenu take the whole popup.
2016-05-16 14:10:14 +02:00
vurtun
847b9c4a19 Fixed wrong widget hovering for multiple windows
Previously buttons would show up as hovered if another widget was
being hovered in another window. This behavior is now fixed and
everything should work correctly now.
2016-05-16 12:22:11 +02:00
Micha Mettke
a91f801ae2 Merge pull request #126 from hobbitalastair/master
s/memset/memcpy/ - typo fix in documentation
2016-05-10 21:56:48 +02:00
vurtun
7e5b3b5fd4 Merge branch 'jimon-fixing_window_scaling' 2016-05-10 14:08:12 +02:00
vurtun
b712a3a163 Removed C89 errors and warnings and style issues 2016-05-10 14:05:55 +02:00
vurtun
7e96bfc586 Merge branch 'fixing_window_scaling' of https://github.com/jimon/nuklear into jimon-fixing_window_scaling 2016-05-10 13:36:10 +02:00
vurtun
cdc8123875 Merge branch 'jimon-close_popups_on_click_outside' 2016-05-10 13:24:57 +02:00
Dmytro Ivanov
21d2458bdc fixing window scaling 2016-05-09 21:35:39 +02:00
Dmytro Ivanov
72b06835a2 close popups by clicking anywhere outside of popup bounds 2016-05-08 22:04:20 +02:00
vurtun
74e115dac7 Fixed C++ error 2016-05-06 20:16:25 +02:00
vurtun
da13dc3261 Fixed aliasing/alignment issues with nk_pool
Fixed some non-portable implementation details inside window and
table memory pool which could cause problems for platforms other
than x86/x64 and fixed some strict aliasing problems.
2016-05-06 14:13:14 +02:00
vurtun
c51d0694ac Removed possible dead table memory bug for windows
Tables inside windows get removed if a windows is not longer in use
inside `nk_free_window`. But I noticed that they are only removed
if they were not used the last frame, because of a copy & paste bug.
I removed the additional check and every table should now rightfully
be marked as free. I don't know if this bug actually caused any
problems, since I checked memory consumption and there were no
symptoms of wrong behavior before.
2016-05-06 11:27:42 +02:00
vurtun
4dc10b0753 Fixed mixed chart test case in overview.c
Forgot to add a condition to check if the chart even needs to be
run at all so the chart will assert.
2016-05-06 10:52:59 +02:00
Alastair Hughes
21c6c12537 s/memset/memcpy/ - typo fix in documentation 2016-05-06 20:39:02 +12:00
vurtun
ac8f0e2069 Extended chart API with slots
I extended the chart API to allow more than one graph and implemented
a testcase using this API inside the `overview.c` chart example.
2016-05-05 22:37:13 +02:00
vurtun
b90ef2a65a Merge branch 'jviki-multichart-extension' 2016-05-05 21:21:52 +02:00
vurtun
7810bc20bd Changed multi context chart name 2016-05-05 21:18:31 +02:00
vurtun
4068a8248e Merge branch 'multichart-extension' of https://github.com/jviki/nuklear into jviki-multichart-extension 2016-05-05 21:07:58 +02:00
Jan Viktorin
86547049df Support multiple data sets in a single chart
This patch hacks the chart API to support display of multiple data sets in a
single chart instances. Tested briefly with the line chart.

Signed-off-by: Jan Viktorin <iviktorin@fit.vutbr.cz>
2016-05-05 19:43:40 +02:00
vurtun
a5c4094a1d Added High DPI flag to SDL2 backends 2016-05-05 18:44:07 +02:00
vurtun
33185df10a Fixed wrong border line width for popups 2016-05-03 22:17:08 +02:00
vurtun
cc629f45ca Enhanced nk_tree_push_id uniqueness #106
Previously I only used the `__FILE__` and a user `ID` to make
sure to get an unqiue identifier out of it. Like @ands pointed out
this is not enough. Since it is possible to have multipe instances
with the same `title` in the same `__FILE__`. So to fix that I had
the idea to string concat `__FILE__` and `__LINE__` into a string.
This allows to have the same sequence of `IDs` in different places
in one `__FILE__`.
2016-05-03 13:23:04 +02:00
vurtun
31938dac3a Removed unnecessary menu clipping #119 2016-05-02 15:28:29 +02:00
Micha Mettke
c691d4eda2 Merge pull request #120 from tcyrus/patch-1
Update Readme.md
2016-05-02 15:07:44 +02:00
Timothy Cyrus
4bcd5a36c5 Update Readme.md
Change PNG Badge to SVG and other tiny fixes
2016-05-02 08:44:22 -04:00
vurtun
35d302ee8e Fixed windows demos 2016-05-01 10:33:51 -07:00
vurtun
e8fe41584d Added color picker into x11 opengl demos 2016-05-01 19:15:19 +02:00
vurtun
953cc967bb Converted windows demos into singe header files 2016-05-01 19:14:48 +02:00
vurtun
66ce0ce8e5 Added nk_item_any_active for #107 and fixed typo
Previously it was not possible to check if currently any window or
widget is active. To fix that I added function `nk_item_any_active`.
To get correct result you should only call it after all UI code
ran but before calling `nk_clear`. There is currently no other way to
achive the same result inside UI code.
2016-04-30 22:27:29 +02:00
vurtun
a4eda78f3f Fixed x11 opengl3 demo 2016-04-30 19:54:29 +02:00
vurtun
1be2f10621 Added xlib OpenGL version 2 demo 2016-04-30 17:43:02 +02:00
vurtun
f5dc2906a8 Converted backend demos into single header files 2016-04-30 17:09:01 +02:00
vurtun
a2aaedbed0 Merge branch 'master' of https://github.com/vurtun/gui 2016-04-30 14:51:49 +02:00
vurtun
8f6d27072c Fixed extended windows demo errors 2016-04-30 11:24:59 -07:00
vurtun
727e6f0caf Added pure X11/OpenGL demo 2016-04-30 14:50:54 +02:00
vurtun
12d4ed0115 Fixed comment copy & paste fail 2016-04-30 14:49:28 +02:00
vurtun
fa01e2a0db Fixed grapped dragging behavior #116
Fixed mouse grapping emulation for progressbars and window position
dragging which previously still got triggered if other widgets were
being dragged.
2016-04-29 17:25:49 +02:00
vurtun
95beac8cc2 Removed unused enum 2016-04-29 17:06:55 +02:00
vurtun
eb7b0847b6 Fixed build for optional examples 2016-04-29 17:06:31 +02:00
vurtun
34a9405e69 Fixed C++ demo errors 2016-04-29 14:31:27 +02:00
vurtun
389176ef4b Added additional SDL/GLFW OpenGL 2.2 demo 2016-04-29 14:07:08 +02:00
vurtun
154ffb1133 Hopefully fixed SDL rendering for High DPI display 2016-04-29 13:16:18 +02:00