Commit Graph
959 Commits
Author SHA1 Message Date
vurtun 66c5c9fc64 Added optional font atlas temporary allocator
This commit adds another init function to font atlas which allows to
specify one allocator for temporary and one for permanent allocation.
In general this makes it managing memory a little bit more fine
grained. This is not a breaking change and the old API still works
without problems.
2016-06-06 10:11:08 +02:00
vurtun c962163773 Fixed bug inside textedit redo stack 2016-06-04 16:16:10 +02:00
vurtun 66c2ac72d6 Fixed #158 key press typo in GLFW backends 2016-06-01 13:35:01 +02:00
vurtun 3f935941f8 Added additional comments to asserts 2016-06-01 13:34:26 +02:00
vurtun ba1ff9c23c Added canvas example
Added another example to show how to use Nuklear to only draw stuff
to the screen instead of using it for UI (or both).
2016-05-27 13:27:29 +02:00
vurtun 3f7f145819 Merge branch 'ytsarko-master' 2016-05-27 11:33:10 +02:00
vurtun 792a3af51e Fixed property value drawing bug under xlib
For some reason `xlib` still draws text even if the scissor rect has
a width or height of `0`. I don't know if this is a bug on my end or
on xlib but whatever the source it is now fixed.
2016-05-27 11:29:42 +02:00
Yaroslav Tsarko de91bd6e03 fixed compilation when 'NK_INCLUDE_VERTEX_BUFFER_OUTPUT' macro isn`t defined
but 'NK_INCLUDE_FONT_BAKING' is
2016-05-27 10:12:59 +03:00
Yaroslav Tsarko cc97f7bf4b fixed 'unsigned short' overflow when
drawing widget text with font size > widget height
2016-05-27 09:48:01 +03:00
vurtun 9c455006c7 Added icon tree nodes/tabs 2016-05-25 18:21:51 +02:00
vurtun e6063b79aa Added chart line/column dependend coloring API
It's now possible to define a specific color for each line or
column entry inside a chart. This purely extends the API and all
previous implementation still work.
2016-05-25 10:58:00 +02:00
vurtun 8a76dd8f8b Merge branch 'spaghetti--master' 2016-05-24 18:09:00 +02:00
vurtun 750b83601d Merge branch 'master' of https://github.com/spaghetti-/nuklear into spaghetti--master 2016-05-24 18:08:13 +02:00
vurtun 945853e62c Added selectable label + images #151 (breaking)
This is a breaking change to hopefully noone. I removed all drawing
callbacks inside `nk_style` structs. The reason is that they are
quite ugly and a lot of work to maintain in the future. In addition
I added `nk_selectable_image_text`, `nk_selectable_image_label`,
`nk_select_image_text` and `nk_select_image_label` for combined
text and image selectables.
2016-05-24 17:34:28 +02:00
vurtun 25cfeb98af Added property OS cursor hiding for mouse grabbing 2016-05-23 14:56:22 +02:00
vurtun 8e3a5c74d3 Fixed #148 missing function definitions
Added missing function definitions for `nk_color_hsv_b`,
`nk_color_hsva_b` and `nk_strmatch_fuzzy_string`.
2016-05-22 07:38:41 +02:00
vurtun 6577d671d4 Fixed #147 with wrong allegro text input handling 2016-05-21 18:41:33 +02:00
Alex 45bbe7d6bb Example: add OS X specific include and library paths to Makefile 2016-05-21 23:48:10 +08:00
vurtun 2e975a3bd8 Fixed #145 scrollbar mouse grabbing behavior
While mouse grabbing already works in x-direction for vertical and
in y-direction for horizontal scrollbars moving over scrollbar
boundries in the other direction would fail. The problem is now fixed
and scrollbar should work as expected. Note: interestingly slider
already work correctly even though I did not do anything to make it
work correctly.
2016-05-20 19:38:19 +02:00
vurtun eb500b0ab3 Fixed #143 nk_item_is_any_active behavior
Hopefully `nk_item_is_any_active` and `nk_window_is_any_hovered`
work correctly now by taking minimized windows as well as popup
windows into account.
2016-05-20 19:00:48 +02:00
vurtun 7cc3e03573 Fixed nk_edit tab handling 2016-05-20 11:30:58 +02:00
vurtun cd209d6a35 Fixed #141 #142 text disapearing
Previously a bug would cause scrolling in x-direction to overshoot the
visible text space. This bug is now fixed and scrolling should work
correctly.
2016-05-20 11:15:37 +02:00
vurtun 3d5dac9762 Fixed #140 NK_KEY_LINE_START behavior
Hopefully NK_KEY_LINE_START now works correctly if cursor is at end
of text for movement as well as selection.
2016-05-20 10:52:15 +02:00
vurtun a96ddc0b10 Fixed small double to float conversion warning 2016-05-19 20:04:07 +02:00
vurtun 539dde6cde Fixed #138 piemenu and combo open at same time
Fixed piemenu behavior inside extended example.
2016-05-19 16:11:54 +02:00
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