Commit Graph

1884 Commits

Author SHA1 Message Date
dumblob
5d81d324c4
Merge pull request #886 from Hejsil/use-memset-macros-in-x11-demoes
use NK_MEMSET instead of nk_memset in X11 demos
2019-08-19 23:10:45 +02:00
Jmmi
f176f3d7e6 use memset macros instead of fn in x11 demos 2019-08-16 22:20:22 +02:00
dumblob
8cd276714c
Merge pull request #876 from Lory171/master
x11_xft fixes
2019-07-23 11:55:46 +02:00
Lory171
130f0a6303
x11_xft fixes
Fixes for the X11 backend with XFT fonts from demo/x11_xft:
- fixed some memory leaks by destroying XFT objects during cleanup 
- the function to get text width was returning the wrong value
- the clipping space of text boxes was not implemented for XFT
- misc
2019-07-23 01:34:43 +02:00
dumblob
c3f6c73d5c
Merge pull request #872 from moeinfinityx/patch-1
Add type conversion for calloc
2019-07-10 14:24:24 +02:00
Infinity_X
15e4dae107
Add type conversion for calloc 2019-07-10 19:32:36 +08:00
dumblob
5fa99df235
Merge pull request #871 from Lory171/x11_xft-fix-resize-issue
x11_xft fix resize issue
2019-07-09 09:16:28 +02:00
Lory171
7decd7c600
x11_xft fix resize issue 2019-07-08 20:55:35 +02:00
dumblob
cc7a5430fb
Merge pull request #802 from keharriso/get-set-scroll
Add nk_***_get_scroll and nk_***_set_scroll for groups, windows, and popups
2019-06-23 21:12:57 +02:00
Kevin Harrison
d056ca6e72 Fix slashes in documentation 2019-06-23 14:12:21 -04:00
Kevin Harrison
2c49a120ea Update changelog in doc/nuklear.html 2019-06-23 20:22:28 +03:00
Kevin Harrison
a293ca4591 Bump version to 4.01.0 2019-06-23 20:20:37 +03:00
Kevin Harrison
26a3480a31 Allow for NULL arguments to nk_***_get_scroll 2019-06-23 20:20:37 +03:00
Kevin Harrison
213e3af261 Add nk_popup_get_scroll and nk_popup_set_scroll 2019-06-23 20:20:37 +03:00
Kevin Harrison
42f4a03273 Add nk_window_get_scroll and nk_window_set_scroll 2019-06-23 20:20:37 +03:00
Kevin Harrison
b9f84362fb Add nk_group_get_scroll and nk_group_set_scroll 2019-06-23 20:20:37 +03:00
dumblob
9854477f0b
Merge pull request #817 from ccawley2011/sfml-fix
Fix compilation of the SFML demos
2019-06-16 20:38:13 +02:00
dumblob
bb327b97a9
Merge pull request #860 from Tropby/master
Minor fixes to compile GDI with mingw 32bit
2019-06-15 21:37:25 +02:00
Tropby
386386f7de added casts to HBITMAP (needed to compile with mingw 32bit)
added "A" to CreateFont (needed to compile with mingw 32bit)
2019-06-15 12:50:24 +02:00
dumblob
8f5c1bef9c
Merge pull request #856 from 0x0203/panel_bg_fix
Fix panel drawing bug where background wasn't drawn for last column
2019-06-12 21:48:03 +02:00
0x0203
8a262f7e90 Fix panel drawing bug where background wasn't drawn for last column 2019-06-12 14:10:28 -04:00
dumblob
e41c07802f
Merge pull request #854 from 0x0203/x11_rawfb_fixes
Fix nits (see PR #851) to clean up x11_rawfb
2019-06-12 15:11:37 +02:00
0x0203
e8d1c38546 Fix nits (see PR #851) to clean up x11_rawfb 2019-06-10 18:03:22 -04:00
dumblob
875461670d
Merge pull request #851 from 0x0203/x11_rawfb_fixes
Extend and fix x11_rawfb:
1. implement multi color rectangle rendering
2. implement foreground text color rendering
3. cleanup and fixes of get/set pixel routines
4. fix arguments to set_style() examples
5. determine pixel layout in run time instead of compile time
2019-06-09 23:22:38 +02:00
dumblob
9b8815a5cf
Merge pull request #852 from aberba/patch-1
Add reference to D lang Nuklear bindings to Readme.md
2019-06-07 10:30:55 +02:00
Lawrence Aberba
0b95a6af3f
Update Readme.md
Fix author name
2019-06-06 22:06:01 +00:00
Lawrence Aberba
72be7376a8
Update Readme.md
[D programming language](https://dlang.org) bindings
2019-06-06 22:01:54 +00:00
0x0203
4de6d284a3 - Determine pixel layout at runtime instead of relying on compile-time flags
- Fix some potential null dereference bugs
2019-06-06 14:54:30 -04:00
0x0203
1dfe4ebc19 Implement software rendering of RECT_MUTI_COLOR for x11_rawfb 2019-06-06 12:58:03 -04:00
0x0203
46031ccc5f Make x11_rawfb set_style() examples correct 2019-06-06 12:51:16 -04:00
0x0203
6d24023d98 - Implement text foreground color
- Be consistent about reading and writing pixel values to avoid casting/offset madness
- clean up function names for clarity/consistency
- Fix fence post errors preventing get/set pixels from operating on first row/column
- Enforce mutual exclusivity for pixel layout macros
2019-06-06 12:42:32 -04:00
dumblob
bbc8c925dc
Merge pull request #848 from 0x0203/x11_rawfb_colclip
Fix drawing to last column of screen for x11_rawfb
2019-06-01 20:00:41 +02:00
0x0203
b9f9d0a176 Allow proper drawing to last column of screen. 2019-05-31 19:31:54 -04:00
dumblob
b76f2f28c4
Merge pull request #777 from sa-kib/rawfb_xft_demo_fixes
x11_rawfb and x11_xft demos fixes
2019-05-28 10:32:58 +02:00
dumblob
509c75b086
Merge pull request #815 from ccawley2011/d3d9
Fix background colour in Direct3D 9 demo
2019-03-01 21:07:55 +01:00
Cameron Cawley
930ac1e888 Fix compilation of the SFML demos 2019-02-28 00:10:42 +00:00
Cameron Cawley
e032440225 Fix background colour in Direct3D 9 demo 2019-02-27 17:56:38 +00:00
Sergiy Kibrik
945c7f82ac demo/x11_xft: fix UTF-8 text rendering
If XftDrawString8() is given non-ASCII UTF-8 string it fails to properly render it.
Using XftDrawStringUtf8() instead seems to be doing the right thing.

Signed-off-by: Sergiy Kibrik <sakib@darkstar.site>
2018-12-11 17:20:10 +02:00
Sergiy Kibrik
0a46238a44 demo/x11_rawfb: fix build errors
Like these:

   main.c: In function ‘main’:
   main.c:234:20: error: ‘ctx’ undeclared (first use in this function)
              overview(ctx);
                       ^
Signed-off-by: Sergiy Kibrik <sakib@darkstar.site>
2018-12-11 17:06:16 +02:00
Micha Mettke
181cfd86c4
Merge pull request #757 from mischief/nkwindowtypo
fix nk_window_find prototype in documentation
2018-11-01 19:28:39 +01:00
Micha Mettke
3e10d1204b
Merge pull request #759 from kphillisjr/gdi_fixes
Demos: some windows GDI fixes
2018-11-01 19:28:07 +01:00
Micha Mettke
99904e9f4b
Merge pull request #764 from DeXP/master
Add Raspberry Pi to OpenGL ES2
2018-11-01 19:23:37 +01:00
Micha Mettke
69a2d50c9b
Merge pull request #765 from rswinkle/issue_548
Fix issue 548
2018-11-01 19:20:58 +01:00
Robert Winkler
b6d5293dfb Add NK_KEYSTATE_BASED_INPUT changes to src files
Updated nuklear_input.h CHANGELOG and HEADER and regenerated nulear.h
2018-10-31 12:42:30 -07:00
Robert Winkler
1a6c30693f Add NK_KEYSTATE_BASED_INPUT documentation comment 2018-10-30 16:51:45 -07:00
Robert Winkler
36a8d2a5ad Fix issue 548
The issue was introduced in the fix for 416 (commit 8559aeb).

The original problem was (backspace and arrows moving too fast) is not a
nuklear problem but a GLFW problem.  Because of the way nuklear handles
input (it must be between input_begin and end), the key callback method
GLFW offers is not an option.

So we have to use glfwGetKey() which returns the current state of a key
not whether it was just pressed or released, so nuklear acts like it
was pressed every single frame, hence the "too fast" problem.

The fix checks for state change and discards the event if there was
no change.  This kills key repeat behavior (for named keys) on
*all* platforms which makes deleting or arrowing inconvenient.

Since there's no way to fix the shortcomings of a callback vs event
based input API, my "fix" just makes the original fix conditional
on a macro NK_KEYSTATE_BASED_INPUT
2018-10-30 00:43:01 -07:00
Dmitry Hrabrov
272f1b9a05
Create Readme.md for OpenGL ES 2018-10-28 14:31:00 +03:00
Dmitry Hrabrov
bb21a3c836
Add Raspberry Pi to OpenGL ES2 makefile 2018-10-28 14:08:15 +03:00
Dmitry Hrabrov
4566f8de22
Merge pull request #2 from vurtun/master
Syncing fork to the original repository
2018-10-28 14:05:58 +03:00
Brain Developer
721b3755f4
I removed an additional #include <math.h>
I found an additional "#include <math.h>" so I removed it.
Thinking that it was additional.
2018-10-22 21:10:01 +05:30