Commit Graph

133 Commits (489ad88954bec815a400d3a62e15734397c628cb)

Author SHA1 Message Date
joseLuís 62e9c28a0a rust: update types info 4 years ago
joseLuís 8c2ed36c3a rust: update types info 4 years ago
joseLuís 9ff74c393a rust: improve types info 4 years ago
joseLuís d9596883d3 rust: make examples no_std compatible too 4 years ago
joseLuís 5ba618d6a8 rust: several fixes
- rename Alpha to AlphaBits
- fix pixel alpha mask
- fix syntax errors
4 years ago
joseLuís 55ad6153d2 rust: add a lot of info about types 4 years ago
joseLuís d3d8051f36 rust: fix channel tests 4 years ago
joseLuís d0f691af5f rust: +8 plane functions; fix headers; minor fixes 4 years ago
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.
4 years ago
joseLuís e1cfe9394f +2 plane functions; fix comments 4 years ago
joseLuís 4ac4f1b09e rust: clean root, move build files inside folder 4 years ago
joseLuís e22232774d rust: add direct-image example 4 years ago
nick black adcabfae52
rust: assimilate #883 4 years ago
nick black 9704f5cbe7
v1.6.12 4 years ago
nick black 1ada631e94 purge rust/notcurses 4 years ago
joseLuís efdb4ba4f1 pass rustfmt & fix typos 4 years ago
joseLuís 03f2e7c871 rust: implement palette functions 4 years ago
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.
4 years ago
joseLuís 6424e453aa rust: add test modules skeletons 4 years ago
joseLuís ec92d13306 rust: improve info headers 4 years ago
joseLuís da34965fcd rust: implement pixel functions 4 years ago
joseLuís 7790913d2f fix typos & improve comments 4 years ago
joseLuís 8b01f26730 rust: improve info headers for maximum consistency
and implement 1 palette fuction
4 years ago
joseLuís 70adc5645b rust: reimplement keys fns & consts 4 years ago
joseLuís a29fa0395d add handy cargo aliases 4 years ago
joseLuís ba660aa69b make rust bindings no_std compatible, fixes #872 4 years ago
joseLuís 0362a11f63 make it compatible with no_std environment 4 years ago
joseLuís 799407f98c prepare modules for pending work 4 years ago
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
4 years ago
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
4 years ago
joseLuís e9bf400a7e tidy up & update crate deps, categories & keywords 4 years ago
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`.
4 years ago
joseLuís de643589b1 export all new channel functions 4 years ago
José Luis Cruz 8368380b66
Merge pull request #867
Remove warnings about improper_ctypes
4 years ago
joseLuís 590fbf4f1f move channels.rs to libnotcurses-sys crate 4 years ago
joseLuís 2842ffb751 add remaining channel functions 4 years ago
joseLuís 2e640d4146 rewriting the channels inline functions in Rust 4 years ago
José Luis Cruz 9366028919
Remove warnings about improper_ctypes
Fixes: #856
4 years ago
joseLuís 1caba6ac29 refactor test module
- new function for creating the notcurses options for tests
- hide the initial statistics for cleaner test output
- reformat file with rustfmt
4 years ago
nick black df25fc99b9 rust: generate direct mode bindings
When we split direct.h out from notcurses.h, I forgot to add
the new header file to the bindgen-rs includes. I've added
it, and also added a simple directmode unit test.

Closes #853. Thanks @joseluis for reporting this issue!
4 years ago
nick black fa76f5a432
v1.6.11 4 years ago
nick black 8cfd1677c4
v1.6.10 4 years ago
nick black d126c71dd6
v1.6.9 4 years ago
nick black f8c16ceb79
v1.6.8 4 years ago
nick black 4f8673b0e9
v1.6.7 4 years ago
nick black f6d1aa74fc
serial_test seems sufficient? 4 years ago
nick black a1c68b78cb
serial_test seems sufficient? 4 years ago
nick black 17f1323c20
v1.6.6 4 years ago
nick black 308b49da5a
v1.6.5 4 years ago
nick black b2e924319b
v1.6.4 4 years ago