nick black
eead4c1414
notcurses_highgradient() added #398
2020-03-08 04:05:55 -04:00
Nick Black
4e58747709
ncplane_rotate_cw() and ncplane_rotate_ccw() ( #396 )
...
Introduce limited plane rotation capability. We currently support clockwise and counterclockwise rotation of planes. Square and rectangular geometries are both supported, but there must be an even number of columns. The atomic unit of rotation is a 2x1 "square" (this assumes .5 cell aspect ratio). We can only rotate those glyphs which have rotated equivalents, and not even all of those. We currently handle only:
* null glyph
* space
* upper half block
* lower half block
* full block
I've added unit tests as well. This functionality is used by our Tetris example in the book
2020-03-07 18:36:49 -05:00
nick black
3498956370
ncplane_mouseevent_p()->ncplane_translate_abs()
...
ncplane_mouseevent_p() is retired--it was poorly named, and
ncplane_translate_abs() does what it does, plus more, plus
more generally (it works on any y, x, not necessarily an
ncinput). update c++ wrappers #394 .
2020-03-03 00:59:44 -05:00
nick black
bb579d0d05
notcurses_directmode()->ncdirect_init()
2020-03-02 20:19:16 -05:00
nick black
5b4c6c14e3
gradient: implement + test 1d fills
2020-02-24 22:54:21 -05:00
nick black
40428fd05e
Cell: non-OPAQUE always sets non-default bit
2020-02-23 12:11:28 -05:00
nick black
9b0603bb32
Implement + test ncplane_mouseevent_p() #305
2020-02-23 03:50:17 -05:00
Nick Black
745e742a12
Fix gradient engine #368 ( #372 )
...
Simplify and correct the gradient engine, resolving all test breakage.
2020-02-22 21:00:03 -05:00
nick black
002e8be574
implement ncplane_format() #347
2020-02-21 06:52:57 -05:00
nick black
35d850f008
Implement + test ncplane_putegc_stainable() #352
2020-02-20 04:41:56 -05:00
Nick Black
e6637e81cc
Prep for serious rusting #101 ( #354 )
...
* CMake: add USE_PANDOC, USE_DOXYGEN options #101
* README: mention rust
* start integrating rust into build #101
* CMake: add USE_NETWORK option for cargo
* Debian: build-dep on doxygen
* rust: colloquy checks in Cargo.lock
* extract NCKEY defines into their own include
* colloquy: use clap to parse CLI args
* CMake: unify option namespace
* Python: update include path
* Rust: fix up --frozen workings for -DUSE_NETWORK=off
* CMake: abstract out colloquy a little
* Sync direct.hh to the New Way
2020-02-18 12:36:16 -05:00
nick black
39d5063518
Yank out our copy of doctest, use system copy
2020-02-17 21:04:54 -05:00
nick black
438ee1257b
remove doctest, rely on system
2020-02-17 17:36:27 -05:00
nick black
2114cc2eda
demo: rewrite handloop with ncplane_gradient()
2020-02-16 11:21:21 -05:00
nick black
7addd06341
more gradient work, more unit tests #340
2020-02-16 11:21:21 -05:00
nick black
61fe5f5b7e
gradient + unit test #340
2020-02-16 11:21:21 -05:00
nick black
c6520ab84c
add notcurses_drop_planes, use from demo #346
2020-02-16 11:21:21 -05:00
nick black
124004c87c
add nplane_polyfill_yx() #340
2020-02-14 05:38:08 -05:00
nick black
9fc53e811f
ncplane_perimeter() plus unit test
2020-02-12 12:29:28 -05:00
nick black
d8c42d4d1e
ncmenu_selected() fills in an ncinput #333
2020-02-12 09:11:28 -05:00
nick black
08bef99244
Debian: remove comments from watch file
2020-02-11 18:35:37 -05:00
nick black
74b9690cf3
ncmenu: remove dumb restrictions/special casing
2020-02-10 15:18:28 -05:00
nick black
71dbfd74f7
ncmenu: step around alignment NULL #332
2020-02-09 06:30:17 -05:00
nick black
b7a92e0321
notcurses-tester(1) man page #326
2020-02-08 22:58:46 -05:00
nick black
0a6fddb549
blend test: fix uninitialized var
2020-02-08 22:29:19 -05:00
nick black
01d160f40b
menu test: work with older Clang
2020-02-08 22:24:31 -05:00
nick black
8d7e6482dd
test: use utf-8 rather than unicode literal
2020-02-08 21:38:44 -05:00
nick black
736717f58b
DFSG: unit test using only free multimedia #326
2020-02-07 11:21:19 -05:00
nick black
3cdac5ce28
high-contrast text, simple linear average model #181
2020-02-07 09:19:08 -05:00
nick black
85e377e652
Accept US-ASCII/C encoding, with warning.
2020-02-06 22:05:48 -05:00
nick black
74775b97ec
enmetric->ncmetric #324
2020-02-05 20:18:11 -05:00
nick black
89f516dcaa
tablet->nctablet, add ncreel to python #324
2020-02-05 20:04:56 -05:00
nick black
c519c95fff
panelreel -> ncreel #324
2020-02-05 17:29:42 -05:00
nick black
b284901d18
prep for 1.1.6
2020-02-05 04:08:42 -05:00
nick black
4d613217b3
ncmenu: only allow one at a time
2020-02-04 00:17:51 -05:00
nick black
10a269c963
ncmenu: reject double menu
2020-02-04 00:08:03 -05:00
nick black
039a390877
ncmenu: print item shortcut aligned right #179
2020-02-03 23:55:19 -05:00
nick black
79a92fcfb1
ncmenu: highlight shortcut keys for menu items
2020-02-03 22:14:29 -05:00
nick black
3821b66bc7
menu: highlight (bold+uline) section shortcuts
2020-02-03 21:32:04 -05:00
nick black
17c21a2c7b
menu unit test for long menu
2020-02-03 15:20:40 -05:00
nick black
5cd4fc9a1f
menu: reject empty sections #179
2020-02-03 13:08:45 -05:00
nick black
5cf1bba5f5
menu: unit test with section #179
2020-02-03 12:46:40 -05:00
nick black
31a07dab33
menu: extend across width of screen #179
2020-02-02 06:02:57 -05:00
nick black
54c57b3487
s/CELL_STYLE/NCSTYLE/ throughout
2020-02-02 05:13:40 -05:00
nick black
8984422f1e
basics of menu #179
2020-02-02 05:13:40 -05:00
nick black
fad612bd2f
Use column width in selector calculations #302
2020-01-31 19:51:14 -05:00
nick black
5982707f9e
add mbswidth() function, unit tests, docs
2020-01-31 19:00:51 -05:00
nick black
be133b0105
unit tests for scrolling selector
2020-01-30 19:57:39 -05:00
nick black
3991b3e53a
selector: implement maxdisplay. unit tests!
2020-01-30 19:37:21 -05:00
nick black
ac2b951fa9
ncselector_selected(), unit tests
2020-01-30 16:40:02 -05:00