rust/python: ncblit_sixel -> ncblit_pixel

This commit is contained in:
nick black 2021-02-25 02:15:05 -05:00 committed by Nick Black
parent 7aacc7b40e
commit 901ccc2d28
6 changed files with 8 additions and 8 deletions

View File

@ -2859,7 +2859,7 @@ typedef enum {
NCBLIT_4x1, // four vertical levels █▆▄▂
NCBLIT_BRAILLE, // 4 rows, 2 cols (braille) ⡀⡄⡆⡇⢀⣀⣄⣆⣇⢠⣠⣤⣦⣧⢰⣰⣴⣶⣷⢸⣸⣼⣾⣿
NCBLIT_8x1, // eight vertical levels █▇▆▅▄▃▂▁
NCBLIT_SIXEL, // not yet implemented
NCBLIT_PIXEL, // pixel graphics
} ncblitter_e;
// Lex a blitter.

View File

@ -126,7 +126,7 @@ typedef enum {
NCBLIT_4x1,
NCBLIT_BRAILLE,
NCBLIT_8x1,
NCBLIT_SIXEL,
NCBLIT_PIXEL,
} ncblitter_e;
const char* notcurses_str_blitter(ncblitter_e blitter);
int notcurses_lex_blitter(const char* op, ncblitter_e* blitter);

View File

@ -102,7 +102,7 @@ pub use ffi::{
// ncblitter_e_NCBLIT_8x1,
// ncblitter_e_NCBLIT_BRAILLE,
// ncblitter_e_NCBLIT_DEFAULT,
// ncblitter_e_NCBLIT_SIXEL,
// ncblitter_e_NCBLIT_PIXEL,
// ncbox -----------------------------------------------------------------------

View File

@ -196,9 +196,9 @@ impl Notcurses {
unsafe { crate::notcurses_canopen_videos(self) }
}
/// Returns true if sixel blitting is supported.
/// Returns true if pixel graphics are supported.
///
/// See [NCBLIT_SIXEL][crate::NCBLIT_SIXEL].
/// See [NCBLIT_PIXEL][crate::NCBLIT_PIXEL].
///
/// *C style function: [notcurses_cansixel()][crate::notcurses_cansixel].*
pub fn cansixel(&self) -> bool {

View File

@ -267,7 +267,7 @@ pub type NcFdPlaneOptions = crate::bindings::ffi::ncfdplane_options;
/// - [`NCBLIT_8x1`]
/// - [`NCBLIT_BRAILLE`]
/// - [`NCBLIT_DEFAULT`]
/// - [`NCBLIT_SIXEL`]
/// - [`NCBLIT_PIXEL`]
///
pub type NcBlitter = crate::bindings::ffi::ncblitter_e;
@ -304,4 +304,4 @@ pub const NCBLIT_DEFAULT: NcBlitter = crate::bindings::ffi::ncblitter_e_NCBLIT_D
/// [`NcBlitter`] mode (not yet implemented)
///
/// See [Sixel in Wikipedia](https://en.wikipedia.org/wiki/Sixel).
pub const NCBLIT_SIXEL: NcBlitter = crate::bindings::ffi::ncblitter_e_NCBLIT_SIXEL;
pub const NCBLIT_PIXEL: NcBlitter = crate::bindings::ffi::ncblitter_e_NCBLIT_PIXEL;

View File

@ -31,7 +31,7 @@ int main(int argc, char** argv){
// NCBLIT_4x1, // four vert/horz levels
NCBLIT_BRAILLE, // 4 rows, 2 cols (braille)
// NCBLIT_8x1, // eight vert/horz levels
// NCBLIT_SIXEL, // not yet implemented
NCBLIT_PIXEL, // pixel graphics
-1,
};
for(const int* blitter = blitters ; *blitter >= 0 ; ++blitter){