mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
rust/python: ncblit_sixel -> ncblit_pixel
This commit is contained in:
parent
7aacc7b40e
commit
901ccc2d28
2
USAGE.md
2
USAGE.md
@ -2859,7 +2859,7 @@ typedef enum {
|
|||||||
NCBLIT_4x1, // four vertical levels █▆▄▂
|
NCBLIT_4x1, // four vertical levels █▆▄▂
|
||||||
NCBLIT_BRAILLE, // 4 rows, 2 cols (braille) ⡀⡄⡆⡇⢀⣀⣄⣆⣇⢠⣠⣤⣦⣧⢰⣰⣴⣶⣷⢸⣸⣼⣾⣿
|
NCBLIT_BRAILLE, // 4 rows, 2 cols (braille) ⡀⡄⡆⡇⢀⣀⣄⣆⣇⢠⣠⣤⣦⣧⢰⣰⣴⣶⣷⢸⣸⣼⣾⣿
|
||||||
NCBLIT_8x1, // eight vertical levels █▇▆▅▄▃▂▁
|
NCBLIT_8x1, // eight vertical levels █▇▆▅▄▃▂▁
|
||||||
NCBLIT_SIXEL, // not yet implemented
|
NCBLIT_PIXEL, // pixel graphics
|
||||||
} ncblitter_e;
|
} ncblitter_e;
|
||||||
|
|
||||||
// Lex a blitter.
|
// Lex a blitter.
|
||||||
|
@ -126,7 +126,7 @@ typedef enum {
|
|||||||
NCBLIT_4x1,
|
NCBLIT_4x1,
|
||||||
NCBLIT_BRAILLE,
|
NCBLIT_BRAILLE,
|
||||||
NCBLIT_8x1,
|
NCBLIT_8x1,
|
||||||
NCBLIT_SIXEL,
|
NCBLIT_PIXEL,
|
||||||
} ncblitter_e;
|
} ncblitter_e;
|
||||||
const char* notcurses_str_blitter(ncblitter_e blitter);
|
const char* notcurses_str_blitter(ncblitter_e blitter);
|
||||||
int notcurses_lex_blitter(const char* op, ncblitter_e* blitter);
|
int notcurses_lex_blitter(const char* op, ncblitter_e* blitter);
|
||||||
|
@ -102,7 +102,7 @@ pub use ffi::{
|
|||||||
// ncblitter_e_NCBLIT_8x1,
|
// ncblitter_e_NCBLIT_8x1,
|
||||||
// ncblitter_e_NCBLIT_BRAILLE,
|
// ncblitter_e_NCBLIT_BRAILLE,
|
||||||
// ncblitter_e_NCBLIT_DEFAULT,
|
// ncblitter_e_NCBLIT_DEFAULT,
|
||||||
// ncblitter_e_NCBLIT_SIXEL,
|
// ncblitter_e_NCBLIT_PIXEL,
|
||||||
|
|
||||||
// ncbox -----------------------------------------------------------------------
|
// ncbox -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -196,9 +196,9 @@ impl Notcurses {
|
|||||||
unsafe { crate::notcurses_canopen_videos(self) }
|
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].*
|
/// *C style function: [notcurses_cansixel()][crate::notcurses_cansixel].*
|
||||||
pub fn cansixel(&self) -> bool {
|
pub fn cansixel(&self) -> bool {
|
||||||
|
@ -267,7 +267,7 @@ pub type NcFdPlaneOptions = crate::bindings::ffi::ncfdplane_options;
|
|||||||
/// - [`NCBLIT_8x1`]
|
/// - [`NCBLIT_8x1`]
|
||||||
/// - [`NCBLIT_BRAILLE`]
|
/// - [`NCBLIT_BRAILLE`]
|
||||||
/// - [`NCBLIT_DEFAULT`]
|
/// - [`NCBLIT_DEFAULT`]
|
||||||
/// - [`NCBLIT_SIXEL`]
|
/// - [`NCBLIT_PIXEL`]
|
||||||
///
|
///
|
||||||
pub type NcBlitter = crate::bindings::ffi::ncblitter_e;
|
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)
|
/// [`NcBlitter`] mode (not yet implemented)
|
||||||
///
|
///
|
||||||
/// See [Sixel in Wikipedia](https://en.wikipedia.org/wiki/Sixel).
|
/// 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;
|
||||||
|
@ -31,7 +31,7 @@ int main(int argc, char** argv){
|
|||||||
// NCBLIT_4x1, // four vert/horz levels
|
// NCBLIT_4x1, // four vert/horz levels
|
||||||
NCBLIT_BRAILLE, // 4 rows, 2 cols (braille)
|
NCBLIT_BRAILLE, // 4 rows, 2 cols (braille)
|
||||||
// NCBLIT_8x1, // eight vert/horz levels
|
// NCBLIT_8x1, // eight vert/horz levels
|
||||||
// NCBLIT_SIXEL, // not yet implemented
|
NCBLIT_PIXEL, // pixel graphics
|
||||||
-1,
|
-1,
|
||||||
};
|
};
|
||||||
for(const int* blitter = blitters ; *blitter >= 0 ; ++blitter){
|
for(const int* blitter = blitters ; *blitter >= 0 ; ++blitter){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user