mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
s/notcurses_cansixel/notcurses_canpixel/g #200
This commit is contained in:
parent
901ccc2d28
commit
7724f6301e
4
USAGE.md
4
USAGE.md
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user