Function libnotcurses_sys::ffi::ncplane_qrcode [−][src]
pub unsafe extern "C" fn ncplane_qrcode(
n: *mut ncplane,
ymax: *mut c_int,
xmax: *mut c_int,
data: *const c_void,
len: size_t
) -> c_int
Expand description
Draw a QR code at the current position on the plane. If there is insufficient room to draw the code here, or there is any other error, non-zero will be returned. Otherwise, the QR code “version” (size) is returned. The QR code is (version * 4 + 17) columns wide, and ⌈version * 4 + 17⌉ rows tall (the properly-scaled values are written back to ‘*ymax’ and ‘*xmax’).