Commit Graph

150 Commits

Author SHA1 Message Date
joseLuís
154d3ef312 rust: +14 cell functions
WIP: cell_prime & cells_load_box
2020-08-18 15:33:26 +02:00
joseLuís
5eb9dc37d4 rust: finish channel functions
remove channels_blend()
2020-08-18 15:31:33 +02:00
nick black
05da44b06b
hide blending functions #917 2020-08-18 08:41:55 -04:00
joseLuís
a4d5817940 rust: cargo clippy alias 2020-08-18 13:09:39 +02:00
joseLuís
18f90e394c rust: +22 cell functions 2020-08-18 00:01:47 +02:00
joseLuís
6cfd3d6ad7 rust: fix clippy compat with bindgen
and fix a couple of lints in plane.rs
2020-08-17 18:21:37 +02:00
joseLuís
b1b8400165 rust: +8 plane functions; refactor 2020-08-17 17:54:43 +02:00
joseLuís
a5fecf021e rust: update cells code 2020-08-17 17:54:17 +02:00
joseLuís
4382487652 rust: update example 2020-08-17 17:54:07 +02:00
joseLuís
8eefeb2a73 rust: fix builder rerun condition 2020-08-16 21:58:29 +02:00
nick black
49ae79341d
v1.6.15 2020-08-16 11:04:43 -04:00
joseLuís
ccac3d033e rust: update types 2020-08-16 16:22:58 +02:00
joseLuís
59546eaf40 rust: update dependency cstr_core; fixes #898 2020-08-16 16:20:48 +02:00
nick black
dc99d56ac1
v1.6.14 2020-08-16 10:06:33 -04:00
nick black
e897de3700
v1.6.13 2020-08-16 08:54:22 -04:00
nick black
202b88615f
kill ncplane_styles(), duplicates ncplane_attrs() 2020-08-16 07:26:16 -04:00
nick black
8b072c0b5f rust: attrword -> stylemask, u32 -> u16 2020-08-16 01:44:36 -04:00
joseLuís
62e9c28a0a rust: update types info 2020-08-14 11:09:38 +02:00
joseLuís
8c2ed36c3a rust: update types info 2020-08-14 10:40:37 +02:00
joseLuís
9ff74c393a rust: improve types info 2020-08-13 22:15:36 +02:00
joseLuís
d9596883d3 rust: make examples no_std compatible too 2020-08-13 22:14:00 +02:00
joseLuís
5ba618d6a8 rust: several fixes
- rename Alpha to AlphaBits
- fix pixel alpha mask
- fix syntax errors
2020-08-13 17:28:59 +02:00
joseLuís
55ad6153d2 rust: add a lot of info about types 2020-08-13 17:23:13 +02:00
joseLuís
d3d8051f36 rust: fix channel tests 2020-08-13 09:13:50 +02:00
joseLuís
d0f691af5f rust: +8 plane functions; fix headers; minor fixes 2020-08-13 00:47:00 +02:00
joseLuís
4720f23b12 rust: improve some channel functions & comments
Functions `channel_set_alpha()`, `channels_set_fg_alpha()` &
`channels_set_bg_alpha()` don't return an error anymore. Instead
of failing when the alpha value has others bits set, it gets
cleaned of other possible bits with bitmasking.

And in case of trying to use high contrast for the background
alpha gets reset to a default opaque.
2020-08-13 00:19:16 +02:00
joseLuís
e1cfe9394f +2 plane functions; fix comments 2020-08-12 18:13:03 +02:00
joseLuís
4ac4f1b09e rust: clean root, move build files inside folder 2020-08-12 18:10:18 +02:00
joseLuís
e22232774d rust: add direct-image example 2020-08-12 17:53:50 +02:00
nick black
adcabfae52
rust: assimilate #883 2020-08-12 10:46:59 -04:00
nick black
9704f5cbe7
v1.6.12 2020-08-12 09:37:59 -04:00
nick black
1ada631e94 purge rust/notcurses 2020-08-12 08:42:22 -04:00
joseLuís
efdb4ba4f1 pass rustfmt & fix typos 2020-08-11 18:31:18 +02:00
joseLuís
03f2e7c871 rust: implement palette functions 2020-08-11 18:29:49 +02:00
joseLuís
dbec390fac rust: improve some channel functions
Functions `channel_set()`, `channels_set_fg()`, `channels_set_bg()`
don't return an error anymore. Instead of failing when the rgb value
has any of the last 8 bits set, now it just ignores those bits.
2020-08-11 16:41:18 +02:00
joseLuís
6424e453aa rust: add test modules skeletons 2020-08-11 14:31:57 +02:00
joseLuís
ec92d13306 rust: improve info headers 2020-08-11 14:25:40 +02:00
joseLuís
da34965fcd rust: implement pixel functions 2020-08-11 12:27:40 +02:00
joseLuís
7790913d2f fix typos & improve comments 2020-08-11 11:38:30 +02:00
joseLuís
8b01f26730 rust: improve info headers for maximum consistency
and implement 1 palette fuction
2020-08-11 11:31:29 +02:00
joseLuís
70adc5645b rust: reimplement keys fns & consts 2020-08-11 10:50:51 +02:00
joseLuís
a29fa0395d add handy cargo aliases 2020-08-10 23:56:57 +02:00
joseLuís
ba660aa69b make rust bindings no_std compatible, fixes #872 2020-08-10 23:56:09 +02:00
joseLuís
0362a11f63 make it compatible with no_std environment 2020-08-10 23:48:56 +02:00
joseLuís
799407f98c prepare modules for pending work 2020-08-10 23:44:40 +02:00
joseLuís
2f1b4074eb fix & refactor Rust bindings
- move types functions out of lib.rs into their own modules
- add modules types, and for cell & plane functions
- change error handling for consistency with the underlying lib
- reformat the code
2020-08-09 16:48:26 +02:00
José Luis Cruz
92350b4694
turn off doctests
Fixes bindgen errors due to invalid Rust comments imported from functions `ncmultiselector_options` and `ncselector_item`.

Related:
- https://github.com/rust-lang/rust-bindgen/issues/426
- https://github.com/rust-lang/rust-bindgen/issues/1749
2020-08-09 16:24:58 +02:00
joseLuís
e9bf400a7e tidy up & update crate deps, categories & keywords 2020-08-09 13:36:43 +02:00
joseLuís
84c637d3e8 copy all comments as doc Rust comments
In principle it would be better to write the comments intented
for documentation as `///` (or `/** */` for multi-line), but
this way it works mostly, without having to change them all.

There are two comments that are not valid Rust doc-comments,
and arerendered badly: The are the ones in:
`ncmultiselector_options` and `ncselector_item`.
2020-08-08 18:32:45 +02:00
joseLuís
de643589b1 export all new channel functions 2020-08-08 18:04:00 +02:00