Function libnotcurses_sys::ncplane_polyfill_yx[][src]

pub unsafe extern "C" fn ncplane_polyfill_yx(
    n: *mut ncplane,
    y: c_int,
    x: c_int,
    c: *const nccell
) -> c_int
Expand description

Starting at the specified coordinate, if its glyph is different from that of ‘c’, ‘c’ is copied into it, and the original glyph is considered the fill target. We do the same to all cardinally-connected cells having this same fill target. Returns the number of cells polyfilled. An invalid initial y, x is an error. Returns the number of cells filled, or -1 on error.