nick black
a3220b8a73
add ncplane_descendant_p(), unit test it #1192
2020-12-09 00:18:47 -05:00
nick black
e60a7aa463
add stat for notcurses_refresh()
2020-12-06 13:45:35 -05:00
nick black
e6209ff5fc
with apologies to salman rushdie
2020-12-06 07:09:06 -05:00
nick black
14fa544433
add NCPLOT_OPTION_PRINTSAMPLE #1183
2020-12-06 06:33:54 -05:00
José Luis Cruz
a69aa1d157
split out the UI ASCII art doc comments; fix #1180
2020-12-06 01:25:39 -05:00
nick black
58b47bf953
unit test for cell_load_egc32() #1176
2020-12-05 02:36:55 -05:00
nick black
0999e0ad3b
add gcluster endianness comments
2020-12-05 00:39:37 -05:00
nick black
0645fb3931
run cell_load_char()/egc32() through cell_load() #1176
2020-12-04 03:06:51 -05:00
nick black
6fb5c1e512
Fill out some API holes, improve some comments
...
- Disambiguate the docs for ncplane_erase()
- Add ncpile_top(), ncpile_bottom()
- Refuse attempts to modify the standard plane's resizecb
- Copy alignment and resizecb in ncplane_dup()
- Add cell_load_egc32()
2020-12-03 01:02:16 -05:00
nick black
186b3a2a5e
kill ifdefs via explitict initialization
2020-12-02 12:57:17 -05:00
igo95862
87d1ba17e6
Made CELL_TRIVIAL_INITIALIZER compatable between C and C++
2020-12-02 12:17:30 -05:00
igo95862
5e60e84fdf
Under ISO C the empty initializer is {0} not { }
2020-12-02 12:17:30 -05:00
nick black
dcde23e74c
apply htole() where needed #1130
2020-11-28 23:55:17 -05:00
nick black
4d524f92bc
apply htole() in ncpixel_*() #1130
2020-11-28 23:55:17 -05:00
nick black
dd8423dff3
embiggen notcurses_metric(3), add unit test #1107
2020-11-28 20:45:16 -05:00
Marek Habersack
c5c9432ac0
[Misc] A hodgepodge of tiny changes
...
CMake:
Simplify cmake target+version config generation and make it actually
work. With the changes it is now possible to detect and use
`Notcurses` in the following way:
find_package(Notcurses REQUIRED)
...
target_link_libraries(myapp PRIVATE notcurses::notcurses)
Also, added the same CMake configuration for `Notcurses++`, to be used
in the following way:
find_package(Notcurses REQUIRED
find_package(Notcurses++ REQUIRED)
...
target_link_libraries(myapp PRIVATE notcurses++::notcurses++)
Docs:
`notcurses_cell(3)`: `cell_styles_{on,off} -> cell_{on,off}_styles`
and `cell_load_simple` -> `cell_load_char`
C++ API:
* Plane: added constructors taking `ncplane_options const&` instead of
the multitude of individual parameters
* Plane: drop `struct` when `ncplane_options` is used.
* Plane: added `strdup` (`cell_strdup`)
* Plane: added `extract` (`cell_extract`)
2020-11-28 17:46:23 -05:00
Marek Habersack
c063ce4e36
[C++] API sync
...
Added:
* Pile: new class derived from Plane, which implements all the
`ncpile_*` calls
* Plane: `get_parent` (`ncplane_parent`)
* Plane: protected constructor for use by `Pile` (or other derived
classes which cannot provide a valid `ncplane*` when invoking parent
constructor.
* Plane: `set_plane` for use by the derived classes above.
Changed:
* Plane: `to_ncplane` is a `const` method now.
2020-11-27 19:35:22 -05:00
nick black
b7ea4e2359
run sgr-full and sgr-direct in test suite #1138
2020-11-27 15:38:36 -05:00
nick black
ebc80915a3
c++/rust struck #1138
2020-11-25 20:04:14 -05:00
nick black
fe164b6210
add NCSTYLE_STRUCK #1138
2020-11-25 20:04:14 -05:00
nick black
fd97aa844c
implement ncpile_{render, rasterize}() 🦀 🦀 #1135
2020-11-25 19:19:31 -05:00
nick black
8f7fa9da44
move postpaint() out of render step #1135
2020-11-25 19:19:31 -05:00
nick black
b2516d8534
Declare ncpile_render() and ncpile_rasterize() #1135
2020-11-25 19:19:31 -05:00
nick black
0485c6f35d
fix tiny memory leak in ncplane_at_cursor_cell()
2020-11-24 02:36:41 -05:00
nick black
b6e5b60374
ncpile_create() not NCPLANE_OPTION_NEWPILE #1078
2020-11-23 22:58:05 -05:00
nick black
3ad9a40426
hook up piles #1078
2020-11-23 22:58:05 -05:00
nick black
b747af2ae8
drop NCPLANE_OPTION_NEWPILE #1078
2020-11-23 22:58:05 -05:00
nick black
ee83b63107
c++: add Plane::reparent_family() #1078
2020-11-23 22:58:05 -05:00
nick black
0da6a8c44b
add NCPLANE_OPTION_NEWPILE #1078
2020-11-23 22:58:05 -05:00
Marek Habersack
c8eb3875ff
[C++] API sync
...
Added:
* NotCurses: `stats_alloc` (`notcurses_stats_alloc`)
* Plane: `set_resizecb` (`ncplane_set_resizecb`)
2020-11-23 19:18:42 -05:00
nick black
65ed8c0d86
undeprecate ncplane_new(); why break running code?
2020-11-21 22:26:49 -05:00
nick black
dd1e7f3b7e
document ncplane_reparent() more completely
2020-11-21 22:08:55 -05:00
nick black
8dd8937ff3
notcurses.h: purge tildes
2020-11-18 08:01:27 -05:00
nick black
c0cb5c7ff9
add ncplane_resizecb() #1124
2020-11-18 08:00:02 -05:00
nick black
6084105c68
add ncplane_set_resizecb() #1124
2020-11-18 07:49:22 -05:00
nick black
eef6df8c0a
death to horiz #1115
2020-11-17 23:42:36 -05:00
nick black
b8dc9544cf
deprecate ncplane_new()
2020-11-17 23:42:36 -05:00
nick black
886835a8b4
c++: deprecate ncplane_new() #1115
2020-11-17 23:42:36 -05:00
nick black
51d01b22c8
who knows how this happened
2020-11-13 20:10:39 -05:00
nick black
259b2b6012
make it clear that sixel is not yet supported
2020-11-11 03:12:37 -05:00
nick black
65a0059b38
plots: fix NCBLIT_3x2 for plotting #1104
2020-11-07 05:13:09 -05:00
nick black
47b62ce822
make some unsigneds explicit uint32_ts
2020-11-06 16:38:31 -05:00
nick black
4b2edf0019
ncplot: add comment regarding d vs u
2020-11-05 14:20:57 -05:00
nick black
f3cd1fb755
ncinput_equal_p(): return bool, not int #1059
2020-11-05 14:18:00 -05:00
joseLuís
03d2ffffaf
fix typo
2020-11-03 19:59:49 +01:00
nick black
5c8781ffbd
ncvisual: quadblitter by default for stretch, for now
2020-11-02 16:07:10 -05:00
nick black
78e5ac670d
default to NCBLIT_3x2, unify NCBLIT_DEFAULT selection #1088
2020-10-31 17:14:51 -04:00
nick black
e12cfe947b
ncpixel_set_g/ncpixel_set_b: correct #1080
2020-10-30 03:50:47 -04:00
nick black
515aa881cc
ncpixel_b/ncpixel_g: fix for RGBA
2020-10-30 01:11:43 -04:00
nick black
210991991f
blitters: drop bgr switch-hitting, rely on input swap
2020-10-29 18:15:42 -04:00