Commit Graph

493 Commits

Author SHA1 Message Date
nick black
4ca1036da9
v2.3.3 2021-06-12 16:54:36 -04:00
joseLuís
125ab361e6 [rust] add pending functions
- include new functions: ncdirect_stream, ncdirect_supported_styles, ncdirect_styles, nccell_width, ncinput_nomod_p.
- account for functions: ncplane_halign, ncplane_valign.
- rename ncpalette_get_rgb and ncpalette_set_rgb to ncpalette_get_rgb8 and ncpalette_set_rgb8 respectively.
- minor formatting fixes.
2021-06-12 21:29:03 +02:00
joseLuís
007af7f9af [rust] delete example issue #1753 2021-06-11 23:51:25 +02:00
joseLuís
ad7b67ec5b [rust] fix docs 2021-06-11 12:14:43 +02:00
joseLuís
640a2b138e [rust] add example for issue #1753 2021-06-11 11:55:40 +02:00
joseLuís
fce6ee22db [rust] update ncdirectf_geom & NcVGeom #1746 #1749 2021-06-10 14:43:17 -04:00
joseLuís
8432486b26 explain the return value of ncplane_set_base 2021-06-10 19:34:13 +02:00
joseLuís
0ea7c5236d [rust] add example issue #1751 2021-06-10 10:03:27 +02:00
joseLuís
8d902f5c2b [rust] update ncdirectf_render #1738 2021-06-09 13:42:52 +02:00
joseLuís
f9418f875d [rust] update example #1716 #1742 2021-06-09 06:57:15 -04:00
joseLuís
9d1ca028c5 [rust] fix ncdirectf_render method #1738 2021-06-09 06:57:15 -04:00
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.
2021-06-08 21:18:58 +02:00
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
2021-06-08 20:27:36 +02:00
joseLuís
95cd7ad27e [rust] delete example #1732 2021-06-08 20:19:19 +02:00
nick black
a6433caeaa add NCVISUAL_OPTION_NOINTERPOLATE #1576 2021-06-08 13:05:36 -04:00
Daniel Brooks
313f1caaa0 cargo doc complains about some urls that are not turned into links
so turn them into links.
2021-06-08 04:29:59 -07:00
joseLuís
9bbfd96dd7 [rust] delete examples for issues #1559 #1699 2021-06-07 20:59:35 +02:00
joseLuís
5d4ee0f294 [rust] fix examples 2021-06-07 20:55:45 +02:00
joseLuís
0d7b6619bb [rust] add example for issue #1732 2021-06-07 20:53:42 +02:00
nick black
7b7308e866
[rust] pixel-cell example: make 'em match #1728 2021-06-06 15:14:58 -04:00
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.
2021-06-03 09:09:57 -07:00
joseLuís
f44175b9c3 [rust] update example for issue #1716 2021-06-03 16:12:30 +02:00
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.
2021-06-03 16:08:54 +02:00
joseLuís
812a29e219 [rust] add ncdirectf functions; fix build
- ncdirectf_from_file, ncdirectf_geom, ncdirectf_render, ncdirectf_free
2021-06-03 14:34:45 +02:00
joseLuís
1c6a50e047 [rust] add example for issue #1716 2021-06-03 14:25:20 +02:00
joseLuís
18446034e4 [rust] add ncblit functions
- ncblit_rgba, ncblit_bgrx, ncblit_rgb_packed, ncblit_rgb_loose
2021-06-03 14:24:42 +02:00
nick black
507d2c8d8e
v2.3.2 2021-06-03 02:29:13 -04:00
joseLuís
47c794050a [rust] update example #1699 2021-06-01 10:18:37 +02:00
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.
2021-06-01 02:25:11 -04:00
joseLuís
8fa70935fe [rust] update issue-1699 example 2021-05-30 17:42:18 +02:00
joseLuís
e839a95c2b [rust] fix build, remove raqote 2021-05-30 17:35:27 +02:00
joseLuís
7e51f04111 [rust] new example issue-1699; issue #1700
- add raqote 2D graphics library as a dev-dependency
2021-05-30 17:08:58 +02:00
joseLuís
bc2acf0ce8 [rust] bump bindgen version to 0.57 #1339 2021-05-24 14:24:31 +02:00
nick black
739c96032d
v2.3.1 2021-05-18 04:03:27 -04:00
nick black
ea4c593455
v2.3.0 2021-05-09 18:54:22 -04:00
nick black
dc9db79100
v2.2.11 2021-05-08 18:25:13 -04:00
nick black
8025beb6d8
[rust] fix issue-1559 example, i think #1559 2021-05-08 15:28:31 -04:00
joseLuís
95fa72c3e7 [rust] update mergedown doc comment
- fix more warnings
2021-05-06 21:22:22 +02:00
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.
2021-05-06 14:44:51 +02:00
joseLuís
5f3b2f79cf [rust] fix bindgen imports
- update blacklist rules
- use ffi `__va_list_tags`
2021-05-06 14:40:12 +02:00
joseLuís
c52e9c5a47 [rust] add NCVISUAL_OPTION_CHILDPLANE
- update docs
2021-05-06 14:31:31 +02:00
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`
2021-05-06 14:10:46 +02:00
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
2021-05-06 13:39:30 +02:00
joseLuís
81f63f0e3b [rust] fix docs 2021-05-06 13:08:21 +02:00
joseLuís
87f92546db [rust] remove raw_wrap macro 2021-05-06 13:01:56 +02:00
joseLuís
aa0e242a7a [rust] bugfix & a couple of minor updates 2021-05-05 20:34:04 +02:00
joseLuís
b7bfbb0f90 [rust] fix hundreds of clippy warnings 2021-05-05 20:28:51 +02:00
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
2021-05-05 19:33:00 +02:00
nick black
2d6bdd3b5b
v2.2.10 2021-05-05 05:18:57 -04:00
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
2021-05-04 00:42:12 +02:00