joseLuís
0760223fb5
[rust] add NCOPTION_PRESERVE_CURSOR
2021-06-26 12:50:32 +02:00
joseLuís
8cc32fd065
[rust] bring back NCSTYLE_BLINK
2021-06-26 12:42:07 +02:00
joseLuís
cadca69138
[rust] fix the NcEgc
mess.
...
- An `EGC` is an UTF-8 string of length 1, not a unicode code point (char).
- remove the `NcEgc` type and use `&str` and `String`, instead (for now).
- update some docs.
- rustfmt.
2021-06-26 12:33:04 +02:00
nick black
9d7f07771b
GTFO NCSTYLE_DIM, NCSTYLE_REVERSE #1818
2021-06-24 02:13:57 -04:00
nick black
383678da4e
move remainder of debug_caps into notcurses-info #1793
2021-06-23 21:46:08 -04:00
nick black
8fc2a32990
remove NCSTYLE_{INVIS,BLINK,STANDOUT} #1818
2021-06-23 21:23:12 -04:00
joseLuís
a3c593eed9
[rust] fix some docs
2021-06-23 18:36:27 +02:00
joseLuís
fe275447fb
[rust] rename NcPixelGeometry
fields
2021-06-22 18:13:20 +02:00
joseLuís
3fed537854
[rust] remove NcDirectV type alias, use NcPlane instead
2021-06-21 19:44:55 +02:00
joseLuís
a693455916
[rust] rename cell style methods
...
- on_styles → styles_on, off_styles → styles_on, set_stypes → styles_set
- improve some docs and fix doclinks.
2021-06-20 18:39:17 +02:00
joseLuís
d6e724190a
[rust] update readme
2021-06-20 17:16:52 +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
e5092ad4eb
[rust] add ncvisual_from_rgb_* functions and methods
...
- update some docs.
2021-06-19 13:04:45 +02:00
joseLuís
4a16ccc78a
[rust] temporary fix for bindgen warnings
2021-06-19 09:55:14 +02:00
joseLuís
d38a63ca04
[rust] add NCDIRECT_OPTION[_VERY]_VERBOSE consts
2021-06-19 09:49:48 +02:00
joseLuís
391c58e4ed
[rust]
...
- add ncdirect_canget_cursor
- made ncplane_notcurses require a non-mutable reference.
2021-06-19 08:42:04 +02:00
nick black
bd633d697a
[rust] idiot
2021-06-19 00:20:40 -04:00
nick black
b3ed98b686
rust: adapt to non-const ncdirect_get_{xy}() #1789
2021-06-19 00:11:36 -04:00
joseLuís
8f234368d8
make ncplane_pixelgeom
require a const reference
2021-06-18 15:53:25 +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
e74e2e3f67
[rust] add NcCapabilities & related NcDirect functions
2021-06-18 12:17:45 +02:00
joseLuís
7249ecccc1
[rust] add NCSTYLE_UNDERCURL
2021-06-18 10:09:09 +02:00
joseLuís
c822aa345e
[rust] remove duplicated method NcChannel.set_rgb
2021-06-17 16:53:07 +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
4c0268997c
[rust] rename NcColor
to NcComponent
.
...
- fix docs.
2021-06-16 20:26:36 +02:00
joseLuís
2ba4777443
[rust] rename NCCELL_
* constants to NCALPHA_
*
...
- move `NCALPHA_`* constants to the channel module where `NcAlphaBits`
is defined.
- fix several docs and doclinks.
- rustfmt.
2021-06-16 19:16:09 +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
d07071246b
[rust] update docs
...
- add more NcPlane docs.
- minor fixes.
2021-06-15 19:20:16 +02:00
joseLuís
e95f540c02
[rust] rename NcStyleMask to NcStyle
2021-06-15 18:22:48 +02:00
joseLuís
85cfca8df8
make check_pixel_support
require a const reference
...
- fix rust bindings
- related #1766
2021-06-15 13:08:00 +02:00
joseLuís
e14f77433f
[rust]
...
- improve docs.
- fix some doclinks.
2021-06-15 13:06:13 +02:00
joseLuís
48c85d5220
[rust] rustfmt; fix docs
2021-06-15 00:36:39 +02:00
nick black
ca4a1c7fd8
roll back wayward sed on rust
2021-06-13 18:21:14 -04:00
nick black
cadd4aefee
s/CELL_ALPHA_/NCCELL_ALPHA_/g
2021-06-13 18:21:14 -04: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
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
ad7b67ec5b
[rust] fix docs
2021-06-11 12:14:43 +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
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
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
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
18446034e4
[rust] add ncblit functions
...
- ncblit_rgba, ncblit_bgrx, ncblit_rgb_packed, ncblit_rgb_loose
2021-06-03 14:24:42 +02:00