joseLuís
8432486b26
explain the return value of ncplane_set_base
3 years ago
joseLuís
0ea7c5236d
[rust] add example issue #1751
3 years ago
joseLuís
8d902f5c2b
[rust] update ncdirectf_render #1738
3 years ago
joseLuís
f9418f875d
[rust] update example #1716 #1742
3 years ago
joseLuís
9d1ca028c5
[rust] fix ncdirectf_render method #1738
3 years ago
joseLuís
852cde9a75
[rust] add NCVISUAL_OPTION_NOINTERPOLATE
...
- update the `pixel-cell` example.
- change the type of ncvisual flags parameter to u32.
- minor doc fixes.
3 years ago
joseLuís
6f1f544b77
[rust] add prsleep macro + fixes
...
- add prsleep macro for rendering & rasterizing a plane pline + sleep
- fix some comments and refactor a little
3 years ago
joseLuís
95cd7ad27e
[rust] delete example #1732
3 years ago
nick black
a6433caeaa
add NCVISUAL_OPTION_NOINTERPOLATE #1576
3 years ago
Daniel Brooks
313f1caaa0
cargo doc complains about some urls that are not turned into links
...
so turn them into links.
3 years ago
joseLuís
9bbfd96dd7
[rust] delete examples for issues #1559 #1699
3 years ago
joseLuís
5d4ee0f294
[rust] fix examples
3 years ago
joseLuís
0d7b6619bb
[rust] add example for issue #1732
3 years ago
nick black
7b7308e866
[rust] pixel-cell example: make 'em match #1728
3 years ago
Daniel Brooks
477797716f
remove unsafe code from example “issue-1716”
...
Now that the NcDirectF type and its methods are defined, there is no
need to set a bad example.
3 years ago
joseLuís
f44175b9c3
[rust] update example for issue #1716
3 years ago
joseLuís
c3f1d6c4a3
[rust] wrap ncdirectf functions
...
- add type aliases: NcDirectF (NcVisual alias), NcDirectV (NcPlane alias).
- implement wrapper methods for the `ncdirect_*` functions on NcDirectF.
- the methods over NcDirectF are prefixed with `ncdirectf_` to distinguish them
from the other NcVisual methods (since they are both type aliases, they
share their methods).
- fix typos in `direct.h`:
- ncdirect_geom_frame > ncdirectf_geom()
- ncdirect_render_loaded_frame > ncdirectf_render()
- add NcVGeom struct.
- minor fixes & rustfmt.
3 years ago
joseLuís
812a29e219
[rust] add ncdirectf functions; fix build
...
- ncdirectf_from_file, ncdirectf_geom, ncdirectf_render, ncdirectf_free
3 years ago
joseLuís
1c6a50e047
[rust] add example for issue #1716
3 years ago
joseLuís
18446034e4
[rust] add ncblit functions
...
- ncblit_rgba, ncblit_bgrx, ncblit_rgb_packed, ncblit_rgb_loose
3 years ago
nick black
507d2c8d8e
v2.3.2
3 years ago
joseLuís
47c794050a
[rust] update example #1699
3 years ago
Nick Black
cd2b5de5fa
Panblitter ncplane_as_rgba() ( #1697 )
...
ncplane_as_rgba: genericize across blitters
ncplane_as_rgba() previously was implemented explicitly
in terms of NCBLIT_2x1. it now uses the `egcs` field of the
`blitset`. this supports NCBLIT_2x2 and NCBLIT_3x2 in
ncplane_rgba(). Closes #1490 .
3 years ago
joseLuís
8fa70935fe
[rust] update issue-1699 example
3 years ago
joseLuís
e839a95c2b
[rust] fix build, remove raqote
3 years ago
joseLuís
7e51f04111
[rust] new example issue-1699; issue #1700
...
- add raqote 2D graphics library as a dev-dependency
3 years ago
joseLuís
bc2acf0ce8
[rust] bump bindgen version to 0.57 #1339
3 years ago
nick black
739c96032d
v2.3.1
3 years ago
nick black
ea4c593455
v2.3.0
3 years ago
nick black
dc9db79100
v2.2.11
3 years ago
nick black
8025beb6d8
[rust] fix issue-1559 example, i think #1559
3 years ago
joseLuís
95fa72c3e7
[rust] update mergedown doc comment
...
- fix more warnings
3 years ago
joseLuís
5ec11e5897
[rust] remove ncplane_vprintf
...
- remove `__va_list_tag`
The `printf` functions wont be implemented, since they require
`__va_list` which causes compatibility problems.
3 years ago
joseLuís
5f3b2f79cf
[rust] fix bindgen imports
...
- update blacklist rules
- use ffi `__va_list_tags`
3 years ago
joseLuís
c52e9c5a47
[rust] add NCVISUAL_OPTION_CHILDPLANE
...
- update docs
3 years ago
joseLuís
7e7082e836
[rust] adjust bindgen imports.
...
- only import functions from the notcurses public API
- exclude more unneeded types from being imported.
- use custom `__va_list_tag`
3 years ago
joseLuís
66e20bdac8
[rust] safely wrap ncmetric function & fix warnings
...
- fix warnings on doc generation from imported C API doc-comments
- fix remaining clippy warning
3 years ago
joseLuís
81f63f0e3b
[rust] fix docs
3 years ago
joseLuís
87f92546db
[rust] remove raw_wrap macro
3 years ago
joseLuís
aa0e242a7a
[rust] bugfix & a couple of minor updates
3 years ago
joseLuís
b7bfbb0f90
[rust] fix hundreds of clippy warnings
3 years ago
joseLuís
129e208438
[rust] refactor Notcurses & NcDirect wrapping approach
...
- remove `Nc` & `NcD` wrappers, to move them to notcurses-rs library.
- update the summary header format for Notcurses and NcDirect
- update docs and examples
3 years ago
nick black
2d6bdd3b5b
v2.2.10
3 years ago
joseLuís
6966cd78b5
[rust] more channels refactor
...
- make ncplane_set_channels and NcPlane::set_channels don't return the NcChannelPair
- add safe function wrapper for ncplane_channels
- fix docs
3 years ago
joseLuís
d886e01fea
[rust] refactor channels
...
- rename channel* functions to ncchannel*
- rename NcPlane methods:
- fg_default_p to fg_default
- bg_default_p to bg_default
- new functions:
- ncplane_set_default
- ncplane_set_not_default
- ncplane_set_fg_not_default
- ncplane_set_bg_not_default
- new NcPlane methods:
- set_channels
- set_default
- set_not_default
- set_fg_not_default
- set_bg_not_default
- new safe wrapper functions:
- ncplane_set_fchannel
- ncplane_set_bchannel
- ncplane_set_channels
3 years ago
joseLuís
e9a841954d
[rust] more functions to manage the "default color"
...
- new functions:
- channel_set_not_default
- channels_set_fg_not_default
- channels_set_bg_not_default
- channels_set_default
- channels_set_not_default
- new NcChannel methods:
- set_not_default
- new NcChannelPair methods:
- set_fg_not_default
- set_bg_not_default
- set_default
- set_not_default
- improve the test of: channel_set_default
- add tests for:
- channel_set
- channel_set_not_default
- add doc comments to existing NcChannel reimplemented functions tests.
3 years ago
joseLuís
dcfb368b21
[rust] remove example for issue #1575 ; fix warning
...
- delete file issue-1573.rs (wrongly named)
- fix warning in example issue-1559
3 years ago
nick black
923bc40516
v2.2.9
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
ba6088578d
Sixel unit tests #1580 ( #1586 )
...
Two unit tests on Sixel round trips, one with wipes #1580 .
3 years ago