Commit Graph

1842 Commits

Author SHA1 Message Date
Martijn Versteegh
dc635effbc Don't show the grid demo, since it doesn't work that well without keyboard handling. 2020-10-07 11:42:45 +02:00
Martijn Versteegh
737bb49754 Remove overly spammy printf.\n 2020-10-07 11:37:45 +02:00
Martijn Versteegh
b5faf09c4f Add a rawfb backend which uses SDL_Surface's for output.
The other sdl  demo backends all use OpenGL, which defeats the
purpose of using SDL_Renderer for portabilty.
This is maybe not as good as a full SDL_Renderer backend, but it
is more flexible. For most applications software rendering of the
UI is more than fast enough.
2020-10-07 11:18:20 +02:00
dumblob
6b2c5c4e4c
Merge pull request #186 from 2asoft/stbtt_memory_management_through_allocator
memory allocation: stb_truetype memory management through the nk_font_atlas allocator (otherwise nuklear.h will not build when NK_INCLUDE_DEFAULT_ALLOCATOR is not defined)
2020-10-05 17:43:45 +02:00
Anton Afanasyev
d30e07f497 Remove trailing spaces 2020-10-02 22:49:02 -07:00
Anton Afanasyev
ea3bb68e2a Use the nk_font_atlas's allocator for stb_truetype memory management by default
And allow the consumer to customize by redefining STBTT_malloc/STBTT_free
2020-10-02 22:48:57 -07:00
Anton Afanasyev
48ab7b2a7c paq: Pipe output to file 2020-10-02 22:35:12 -07:00
dumblob
7022a95c2b
Merge pull request #185 from aganm/nk_bool
Change booleans from int to nk_bool
2020-09-08 17:47:07 +02:00
Michael Aganier
76f430c969 Change nk_bool static assert to >= 2 2020-09-08 07:26:06 -04:00
Michael Aganier
1e21ef2285 Replace every boolean int by nk_bool 2020-09-04 08:29:43 -04:00
Michael Aganier
60ed2a5aa5 Add nk_bool and NK_INCLUDE_STANDARD_BOOL 2020-09-04 08:14:43 -04:00
Michael Aganier
fabf4d616d Ignore vim temp files 2020-09-04 05:03:59 -04:00
Patrick McMorris
d9ddd1810f
fix bugs in computing pooled allocation sizes (#151) 2020-07-01 14:58:33 +02:00
dumblob
1b1224a230
Merge pull request #152 from lockie/master
backends: allegro5 event processing now returns bool (event was/was_not processed)
2020-06-17 11:51:56 +02:00
Andrew Kravchuk
264abf4af1
Added processed event flag as a return value in allegro5 backend 2020-06-16 19:03:50 +03:00
dumblob
5bc1c2956c
Merge pull request #150 from pmcmorris/master
fix incorrect memset size in glfw demo shutdown
2020-06-12 08:59:52 +02:00
Patrick McMorris
c1e7be31bd fix incorrect memset size in shutdown for glfw demo 2020-06-11 23:03:38 -07:00
dumblob
1407308b88
Merge pull request #142 from zgcrowno/master
Make nk_combo header symbols ("icon" etc.) optional.
2020-06-11 21:51:27 +02:00
Komari Spaghetti
ad8c1ca091
Merge pull request #149 from wyattscarpenter/patch-1
use integer for integer bound
2020-06-11 14:45:45 +02:00
wyattscarpenter
9812c131b4
use integer for integer bound
I got a warning about this from my compiler (cl.exe). I tested it both ways, and the behavior is the same, except for the compiler warning no longer occurs after my change.
2020-06-11 07:08:43 -05:00
Zachary Crownover
5a1bacb6e6 Made combo header symbols truly optional. 2020-06-09 16:01:39 -05:00
Komari Spaghetti
1ea4c0233e
Merge pull request #145 from lockie/master
Added ability to use user fonts after initialization in allegro5 backend
2020-06-07 13:51:14 +02:00
Komari Spaghetti
bbae32e4f6
Merge pull request #144 from Hejsil/newline-fix
Newline fix for paq script on windows
2020-06-06 22:34:43 +02:00
Andrew Kravchuk
539f477781
Improved user font initialization in allegro5 backend 2020-06-06 09:50:00 +03:00
Jimmi Holst Christensen
48e4af9653 Fixes newline issue on windows with the paq script 2020-06-05 10:42:36 +01:00
Andrew Kravchuk
74db09cdab
Added ability to use user fonts after initialization in allegro5 backend 2020-06-05 12:01:49 +03:00
Komari Spaghetti
bffe1037b2
Merge pull request #137 from lundril/scrollfix2
fix nk_do_edit: Keep scroll position when re-activating edit widget.
2020-05-28 17:03:09 +02:00
Komari Spaghetti
ebd6b3a278
Merge pull request #140 from lockie/master
Fixed naming bug in allegro5 backend image support
2020-05-27 17:27:38 +02:00
Ingo Rohloff
9236b92f86 fix nk_do_edit: Keep scroll position when re-activating edit widget.
How to test:
Construct two edit widgets.
Enter a long text into the first edit widget, so that the widget autoscrolls.
Click into second (still empty) edit widget.
Click into first edit widget again.
=> Text jums back, so that first character of text in first edit widget is visible again.
This patch keeps the scroll position of the edit widget constant.
2020-05-27 15:24:18 +02:00
Andrew Kravchuk
f7960ba73c
Fixed naming bug in allegro5 backend image support 2020-05-27 07:57:02 +03:00
Komari Spaghetti
363c2ac632
Merge pull request #139 from lockie/master
Added image support to allegro5 backend
2020-05-26 18:11:29 +02:00
Andrew Kravchuk
151916aee4
Added image support to allegro5 backend 2020-05-26 17:56:13 +03:00
dumblob
63f08aee28
Merge pull request #135 from Arnavion/fix-134
Migrate wayland demo to xdg_shell (this removes support for deprecated wl_shell)
2020-05-22 15:08:33 +02:00
Arnavion
e98ddde398 Migrate wayland demo to xdg_shell.
The wl_shell interface it previously used is deprecated and not implemented
by some compositors, like sway.

Fixes #134
2020-05-17 12:07:21 -07:00
Jimmi Holst Christensen
20c757dabc Fixed package.json version 2020-05-14 18:53:13 +02:00
Jimmi Holst Christensen
2f1b41eb28 Merge branch 'exchg-master' 2020-05-14 18:52:26 +02:00
Jimmi Holst Christensen
7677494978 Merge branch 'master' of git://github.com/exchg/Nuklear into exchg-master 2020-05-14 18:52:10 +02:00
Richard Gill
562220749c
Include stdarg (#128)
fix: missing stdarg.h inclusion
2020-05-14 18:43:29 +02:00
te:ma
e2180c3454 Fix 'nk_menubar' height calculation bug 2020-05-11 20:04:07 +03:00
Richard Gill
910df27fa0
nuklear_glfw_gl3.h without implementation (#124)
note: including nuklear implementation in glfw_gl3 implementation file is still needed because of the usage of some macros (i.e. NK_MEMSET)
2020-05-08 13:12:55 +02:00
exchg
5ecd6e359e
fix: 'nk_edit' frame border drawing (#120)
* fix: 'nk_edit' frame border drawing

Draw frame border after background to prevent overlapping.
2020-05-08 10:43:15 +02:00
dumblob
d1497c24cc
Merge pull request #125 from crazyBaboon/master
Fix missing space in overview.c "Popup->Right click here:"
2020-05-03 15:52:27 +02:00
crazyBaboon
244a98ea7b
Fix missing space in overview.c "Popup->Right click here:" 2020-05-03 11:06:50 +01:00
Komari Spaghetti
511b4e7760
Merge pull request #123 from riri/glfw-no-global
demo/glfw_opengl3 Remove global state
2020-04-30 17:13:12 +02:00
dumblob
6bf78beb4c
Merge pull request #122 from riri/doc-fix
Documentation is now available online (solves #114)
2020-04-30 16:12:37 +02:00
Richard Gill
fe01ff52eb demo/glfw_opengl3 Remove global state 2020-04-30 15:17:24 +02:00
Richard Gill
6362fd6408 update for PR on original repo 2020-04-30 12:41:07 +02:00
Richard Gill
6e659bdf12 forgot to use github.io 2020-04-30 12:39:41 +02:00
Richard Gill
58999b6f64 updated doc link for use in github.io 2020-04-30 12:29:05 +02:00
dumblob
9f0bca461b
Merge pull request #88 from mgerhardy/master
Fixed compiler warnings - bring your own sin/cos/strtod/... implementations and unused functions
2020-04-17 10:20:02 +02:00