s/notcurses_cansixel/notcurses_canpixel/g #200

This commit is contained in:
nick black 2021-02-25 02:20:16 -05:00 committed by Nick Black
parent 901ccc2d28
commit 7724f6301e
7 changed files with 11 additions and 11 deletions

View File

@ -298,8 +298,8 @@ bool notcurses_canchangecolor(const struct notcurses* nc);
// Is our encoding UTF-8? Requires LANG being set to a UTF-8 locale.
bool notcurses_canutf8(const struct notcurses* nc);
// Can we blit to Sixel? Without NCOPTION_VERIFY_SIXEL, this always returns false.
bool notcurses_cansixel(const struct notcurses* nc);
// Can we blit pixel graphics?
bool notcurses_canpixel(const struct notcurses* nc);
// Can we draw sextants? This requires Unicode 13.
bool notcurses_cansextants(const struct notcurses* nc);

View File

@ -94,7 +94,7 @@ bool notcurses_canchangecolor(const struct notcurses* nc);
bool notcurses_canopen_images(const struct notcurses* nc);
bool notcurses_canopen_videos(const struct notcurses* nc);
bool notcurses_canutf8(const struct notcurses* nc);
bool notcurses_cansixel(const struct notcurses* nc);
bool notcurses_canpixel(const struct notcurses* nc);
int notcurses_mouse_enable(struct notcurses* n);
int notcurses_mouse_disable(struct notcurses* n);
int ncplane_destroy(struct ncplane* ncp);

View File

@ -676,7 +676,7 @@ pub use ffi::{
notcurses_canopen_images,
notcurses_canopen_videos,
notcurses_cansextant,
notcurses_cansixel,
notcurses_canpixel,
notcurses_cantruecolor,
notcurses_canutf8,
notcurses_cursor_disable,

View File

@ -200,9 +200,9 @@ impl Notcurses {
///
/// See [NCBLIT_PIXEL][crate::NCBLIT_PIXEL].
///
/// *C style function: [notcurses_cansixel()][crate::notcurses_cansixel].*
pub fn cansixel(&self) -> bool {
unsafe { crate::notcurses_cansixel(self) }
/// *C style function: [notcurses_canpixel()][crate::notcurses_canpixel].*
pub fn canpixel(&self) -> bool {
unsafe { crate::notcurses_canpixel(self) }
}
/// Returns true if we can reliably use Unicode 13 sextants.

View File

@ -30,7 +30,7 @@
// fmt notcurses_canfade
// fmt notcurses_canopen_images
// fmt notcurses_canopen_videos
// fmt notcurses_cansixel
// fmt notcurses_canpixel
// fmt notcurses_cansextant
// fmt notcurses_cantruecolor
// fmt notcurses_canutf8

View File

@ -67,10 +67,10 @@ fn notcurses_canopen_videos() {
#[test]
#[serial]
fn notcurses_cansixel() {
fn notcurses_canpixel() {
unsafe {
let nc = notcurses_init_test();
let res = crate::notcurses_cansixel(nc);
let res = crate::notcurses_canpixel(nc);
notcurses_stop(nc);
print!("[{}] ", res);
}

View File

@ -2072,7 +2072,7 @@ bool notcurses_canchangecolor(const notcurses* nc){
return true;
}
bool notcurses_cansixel(const notcurses* nc){
bool notcurses_canpixel(const notcurses* nc){
return nc->tcache.sixel;
}