Commit Graph

24 Commits (master)

Author SHA1 Message Date
Mukundan314 34936d5f25 fix pip installation for cffi 3 years ago
nick black c20e859a6d [python] API conversions 3 years ago
nick black 83d8724e63
updating CELL_ -> NC_ references 3 years ago
Sunjay Cauligi b2523cf7dd fix cffi build for other architectures 3 years ago
Sunjay Cauligi 0e6f40eb4f fix cffi build 3 years ago
Sunjay Cauligi 651f80cfac autogenerate cffi from notcurses header files 3 years ago
Nick Black 2c5d938cbd
Paint sprixels bottom-to-top (#1589)
* Paint sprixels in order, bottom-to-top

We don't want to have to track sprixel order whenever someone
moves an ncplane, so just keep a list growing backwards as we
pass top-to-bottom in notcurses_render_internal(). Each time
we hit a sprixel plane, splice it out of the sprixel list, and
add it to the front of our temporary list. When we hit the
bottom, stick this temporary list on the end of our existing
list (any such planes are to be deleted, which comes before
drawing). Closes #1575.

* reorder collected sprixellist; solves kitty but breaks sixel =/ #1575

* remove debugging cruft

* [rust] fix up mergedown mutability
3 years ago
Nick Black c8680255be
palette256 -> ncpalette #1570 (#1573)
everything prefixed with palette256 is now prefixed with ncpalette
3 years ago
Nick Black e591ec2e98
cell -> nccell throughout much of remaining API (#1535)
cell -> nccell throughout much of the API #1532
3 years ago
nick black 9fdfd33d30
[cffi] update cell_release to nccell_release 3 years ago
Nick Black 04b1ba8ed2
Dankamongmen/unify geom (#1514)
deprecate ncvisual_geom() in favor of new ncvisual_blitter_geom(), which allows caller to get the blitter used. replace the checks and calculations in ncvisual_render() with a call to ncvisual_blitter_geom(), unifying the two paths (and eliminating several bugs in the unloved ncvisual_geom()).
3 years ago
nick black 1f33ada62e
[cffi] update for ncplane_as_rgba() 3 years ago
nick black 033ae7f93e [capabilities] eradicate notcurses_canpixel() 3 years ago
nick black da6435c517 cffi: remove NCOPTION_VERIFY_SIXEL 3 years ago
nick black 7724f6301e s/notcurses_cansixel/notcurses_canpixel/g #200 3 years ago
nick black 901ccc2d28 rust/python: ncblit_sixel -> ncblit_pixel 3 years ago
nick black 815368c9a7
cffi: update qrcode definition 3 years ago
joseLuís 6938188b19 rust: NcCell updates
- update NcCell documentation according to last release.
- implement NcCell.load method.
- bonus: remove old "width bias" info from the python bindings.
- bonus: add some (commented out) profile settings to Cargo.toml.
3 years ago
nick black 05b318e487
cffi: sync to new ncdirect functions 4 years ago
nick black eb64ce090d
cffi: sync to new ncdirect functions 4 years ago
Nick Black 6106dea18a
track+use width for polycolumn EGCs #1203 (#1205)
Some EGCs are more than 2 columns (wcwidth() never returns more than 2, so far as i can tell, but when multiple characters combine, we use the sum). An example would be ကြေ (Myanmar) which occupies three columns over the course of three characters. Track the width (biased by 1) in cell->width, taking over 8 bits from cell->reserved. Use this width in rasterization. Closes #1203.
4 years ago
nick black e60a7aa463
add stat for notcurses_refresh() 4 years ago
nick black b33c780c88 document ncpile_render(), ncpile_rasterize() 4 years ago
nick black f2d3b26fcb
move python-cffi to cffi 4 years ago