Commit Graph

431 Commits

Author SHA1 Message Date
joseLuís
a38ccc4025 [rust] re-license with dual MIT OR Apache 2.0 2021-04-21 18:09:44 +02:00
joseLuís
292383f4fb [rust] include files explicitly; add some links 2021-04-20 22:30:35 +02:00
joseLuís
b618e991e5 [rust] update dependencies' version constraints 2021-04-20 22:08:22 +02:00
joseLuís
de51e3a86d [rust] update readme 2021-04-20 21:51:45 +02:00
joseLuís
bc123fbba8 undo prev. ncvisual_resize related changes #1559 2021-04-18 22:03:17 +02:00
joseLuís
0ec15fa920 update doc for ncvisual_resize; fix #1559 2021-04-18 21:38:25 +02:00
nick black
d5b58d9f58
v2.2.8 2021-04-18 13:24:24 -04:00
nick black
eefc4fb91f
v2.2.7 2021-04-18 12:34:41 -04:00
joseLuís
6ab072c953 [rust] update example pixel-cell & remove poc-planebase 2021-04-18 17:14:28 +02:00
joseLuís
1e69b48bbd [rust] add example issue-1559 #1559 2021-04-18 15:46:53 +02:00
joseLuís
c7f1c32f7f [rust] update pixel-cell example; #1546 2021-04-18 13:56:49 +02:00
joseLuís
8209bc6841 [rust] use deprecated blacklist_function; #1339 2021-04-18 12:08:14 +02:00
joseLuís
08a3edb71f [rust] update pixel-cell example; #1546 2021-04-18 11:33:58 +02:00
joseLuís
88c89f2d30 [rust] add ncvisual_inflate; update function-summary; fixes
- add ncvisual_inflate function
- update function-summary script & related data
- update cell inner comments.
- fix several doc inner links.
2021-04-18 11:15:33 +02:00
joseLuís
eaee89c99f [rust] renamed FullMode & DirectMode to Nc & NcD
- improve pixel-cell example.
- rustfmt
2021-04-17 22:13:43 +02:00
nick black
e1d97bfb62
[rust] cell_ -> nccell_ drudgery #1532 2021-04-15 22:41:48 -04:00
nick black
b070b69eb2
get last remaining cell_ functions -> nccell_ #1532 2021-04-15 22:29:53 -04:00
joseLuís
452b7cd535 [rust] renamed cell_* functions to nccell_* 2021-04-15 20:45:08 +02:00
Nick Black
e591ec2e98
cell -> nccell throughout much of remaining API (#1535)
cell -> nccell throughout much of the API #1532
2021-04-14 06:42:14 -04:00
nick black
e017dcba89
v2.2.6 2021-04-12 05:01:58 -04:00
joseLuís
5f96acc9e3 [rust] refacture NcVisual module
- separate the methods into its own module.
- add constants NCVISUAL_OPTION_ADDALPHA, NCVISUAL_OPTION_HORALIGNED, NCVISUAL_OPTION_VERALIGNED
- add NcRgba type.
- update the docs.
2021-04-10 20:19:13 +02:00
joseLuís
48ab7e0945 [rust] fix #1509
- fix bugs in macros: error, error_ref & error_ref_mut
- remove issue-1509 example
- minor improvements
- rustfmt
2021-04-10 19:26:55 +02:00
nick black
76241f81d2 [rust] adapt pixel-cell.rs 2021-04-10 12:02:58 -04:00
nick black
bb0d6c2e80 [rust] update fullsize_pixel_without_plane() 2021-04-10 12:02:58 -04:00
nick black
bac7d634d9 [visual] pipe transcolor through, use it everywhere #1518 2021-04-10 12:02:58 -04:00
joseLuís
932f4c1b7c [rust] simplify issue-1509 example 2021-04-10 15:54:38 +02:00
nick black
33929cf91e
[rust] update to nccell 2021-04-10 09:33:01 -04:00
joseLuís
bc80350384 [rust] several fixes
- fix after renaming cell functions.
- fix some NcVisual method names and docs
- fix some rustdoc warnings
2021-04-10 15:29:55 +02:00
nick black
849ec2748f
[rust] nccell updates 2021-04-10 09:23:42 -04:00
nick black
ff76dba6ed
cell_strdup -> nccell_strdup 2021-04-10 09:21:52 -04:00
joseLuís
1afe6f162e rust: add new pixel geometry functionality
- add NcPlane method .pixelgeom.
- upgrade full-capabilities example.
- fix NcVisual method .blitter_geom docs.
- rustfmt
2021-04-10 15:09:02 +02:00
joseLuís
66d4f323e8 rust: fix .gitignore; remove issue example
- make .gitignore just ignore the *root* build dir
- remove unneeded rust/.gitignore
- remove no longer needed issue-rgba.rs
2021-04-10 13:03:54 +02:00
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()).
2021-04-10 04:04:02 -04:00
joseLuís
429ca673d3 rust: several fixes; add example for issue #1509
- fix method name: NcPlane.at_yx_cell().
- tell bidngen derive more traits when it can
- update .gitignore so it doesn't ignore rust/build
2021-04-08 14:48:16 +02:00
joseLuís
7d51756a12 rust: new poc-planebase example; doc improvements
- improve NcVisual.from_rgba documentation.
- fix Notcurses.term_dim_yx documentation.
- new example `poc-planebase` to help find the bug.
- improve full-capabilities example a little.
2021-04-08 13:11:06 +02:00
joseLuís
60c874f835 rust: impl ncplane_as_rgba; refactor macros
- rename and refactor NcPlane method rgba() to as_rgba().
- add example `issue-rgba` that shows a problem when the plane has text.
- refactor `error_ref` & `error_ref_mut` macros to allow custom return values
2021-04-08 11:07:04 +02:00
joseLuís
4996bebad0 rust: add constant NCOPTION_NO_CLEAR_BITMAPS 2021-04-08 09:22:56 +02:00
joseLuís
7c6083ee1a rust: add missing functions & constants; refactor
- implement methods for ncplane_resize_marginalized & notcurses_debug_caps.
- add constants NCPLANE_OPTION_MARGINALIZED & NCPLANE_OPTION_VERALIGNED.
- signature updates for NcChannel* & NcPixel trait methods.
- minor improvements.
2021-04-08 08:35:35 +02:00
joseLuís
36a7355cd8 rust: minor examples updates 2021-04-07 21:27:10 +02:00
joseLuís
ae2af14281 rust: new methods, refactor methods and planes example
- add NcChannelPair constructors.
- change some NcChannel methods to return Self: set(), set_alpha()
- add NcPlane methods move_rel() & resize_simple_rel().
- add example full-planes (WIP).
- remove proto-example full-basics.
- small update of poc-menu example.
2021-04-07 20:32:46 +02:00
joseLuís
435b8cb6a7 rust: refactor examples & palette_size method
- refactor Notcurses.palette_size() to return an NcResult.
- refactor & rename example direct-text.rs to direct-capabilities.rs.
- new example full-capabilities.rs
2021-04-07 14:49:44 +02:00
joseLuís
1e274287f6 rust: add NcTree widget.
- created all methods except .goto().
- WIP callback types.
- minor updates.
- rustfmt.
2021-04-07 14:19:13 +02:00
joseLuís
aa9bf7a0e7 rust: add ncplane_abs_yx, ncplane_abs_y, ncplane_abs_x
- minor updates
2021-04-07 11:47:05 +02:00
joseLuís
29ac41440c rust: add NcPlane methods resize_maximize & rgba; fix #1508 2021-04-06 19:29:03 +02:00
joseLuís
8cf52672cb rust: rustfmt 2021-04-06 12:31:19 +02:00
joseLuís
63d8645f04 rust: improve pixel-cell example 2021-04-06 12:30:32 +02:00
joseLuís
89e38c11f3 rust: add ncvisual methods & pixel-cell example 2021-04-05 23:55:24 +02:00
joseLuís
1c5ee9eb8c rust: add more functions and methods
- add functions: ncdirect_core_init & notcurses_core_init (methods pending)
- add functions & methods: ncdirect_readline & notcurses_can_braille
- minor fixes
2021-04-05 19:34:39 +02:00
joseLuís
5492119263 rust: add *_check_pixel_support functions + example 2021-04-05 11:16:34 +02:00
nick black
6760929f91
rust: s/blacklist/blocklist/g 2021-04-04 14:30:05 -04:00