Commit Graph

106 Commits

Author SHA1 Message Date
joseLuís
06b0b2360a [rust] fix poc-menu example 2021-07-10 20:17:08 +02:00
joseLuís
b372a492ad [rust] rename macros & update docs
- rename psleep to prs
- rename rsleep to nrs
- deprecate and hide docs for fsleep, psleep, prsleep, rsleep.
- update examples
2021-07-09 11:33:23 +02:00
joseLuís
f1f97aeee7 [rust] continue solving bugs for #1339
also update `example-1832.rs` & run rustfmt
2021-07-06 14:19:54 +02:00
joseLuís
fc4757289b [rust] hide some macro docs intended for internal use
- and improve `issue-1832` example a little
2021-06-27 22:24:56 +02:00
joseLuís
f8747ea3e9 [rust] add example for issue #1832 2021-06-27 16:33:03 +02:00
nick black
2ee6e23071
rust: no more NCSTYLE_STANDOUT 2021-06-23 22:22:11 -04:00
joseLuís
42d0feb265 [rust] delete uneeded examples for closed issues 2021-06-22 12:31:20 +02:00
joseLuís
bbc9f0e595 [rust] update example 2021-06-22 02:16:35 +02:00
joseLuís
7d5e800eb3 [rust] new example issue-rgb_packed #1806 2021-06-21 21:06:01 +02:00
joseLuís
90a2ff6fca [rust] fix pixel-cell example
- fix some docs and parameter names.
2021-06-20 13:48:26 +02:00
joseLuís
1ea663229a [rust] refactor NcDirect
- add missing method `cansextant`.
- rename several cursor functions for consistency.
- fix & update poc-direct example.
- update docs.
2021-06-18 15:52:20 +02:00
joseLuís
3e9b2c1fe4 [rust] rename NcChannelPair to NcChannels
- deprecate `NcChannelPair`
2021-06-17 00:00:31 +02:00
joseLuís
48876b42fb [rust] rename several constructor methods
For semantic consistency with the Rust API guidelines.

- rename most `NcChannel` & `NcCell` methods starting with `with_`* to `from_`*.
- update examples.
2021-06-16 20:39:35 +02:00
joseLuís
bcd09be7d3 [rust] deprecate Notcurses use and rename it to Nc.
In order to be consistent with the rest of the naming scheme, and in order to avoid conflicts with the higher level rust wrappers, which will be using `Notcurses` for the wrapper struct from now on.

- also deprecate `NotcursesOptions` and rename it to `NcOptions`.
- update examples, docs and readme.
2021-06-15 21:00:52 +02:00
joseLuís
2c8a364f3a [rust] fix pixel-cell example
- fix column and row order in visual resize methods
2021-06-13 22:39:11 +02:00
joseLuís
3d830f5e73 [rust] updates against 2.3.4
- remove ncvisual_inflate and add ncvisual_resize_noninterpolative & fix example.
- add notcurses_detected_terminal & ncdirect_detected_terminal.
- take into account new static functions pending to implement:
  ncdirect_light_box, ncdirect_heavy_box, nccells_light_box, nccells_heavy_box, nccells_ascii_box.
- update module info headers notation.
2021-06-13 13:07:00 +02:00
joseLuís
007af7f9af [rust] delete example issue #1753 2021-06-11 23:51:25 +02:00
joseLuís
640a2b138e [rust] add example for issue #1753 2021-06-11 11:55:40 +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
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
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
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
1c6a50e047 [rust] add example for issue #1716 2021-06-03 14:25:20 +02:00
joseLuís
47c794050a [rust] update example #1699 2021-06-01 10:18:37 +02: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
nick black
8025beb6d8
[rust] fix issue-1559 example, i think #1559 2021-05-08 15:28:31 -04: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
joseLuís
dcfb368b21 [rust] remove example for issue #1575; fix warning
- delete file issue-1573.rs (wrongly named)
- fix warning in example issue-1559
2021-05-03 18:22:04 +02:00
Nick Black
ba6088578d
Sixel unit tests #1580 (#1586)
Two unit tests on Sixel round trips, one with wipes #1580.
2021-04-24 01:51:26 -04:00
joseLuís
9e2add4e46 [rust] update capabilities, support new functions.
- add new Notcurses methods: `canhalfblock()` and `canquadrant()`.
- add doc links to NCBLIT_* flags from the capabilities methods.
- update the full-capabilites example to include `canhalfblock`, `canquadrant`,
  `canchangecolor` and `canfade` functions.
- rustfmt
2021-04-22 12:25:24 +02:00
joseLuís
5c216c2f9b [rust] blitter related updates
- move blitter type, NCBLIT_* constants and NcPixelGeometry from the plane module to the visual module.
- add information about blitter graceful degradation the NcBlitter type.
- add cross linking from/to the NCVISUAL_OPTION_NODEGRADE flag.
- update the full-capabilites example to include braille.
2021-04-22 02:12:08 +02:00
joseLuís
a3017033a6 [rust] new example issue-1573 #1573 2021-04-22 01:44:59 +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
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
08a3edb71f [rust] update pixel-cell example; #1546 2021-04-18 11:33:58 +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
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