Function libnotcurses_sys::ncplane_translate_abs[][src]

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

Fed absolute ‘y’/‘x’ coordinates, determine whether that coordinate is within the ncplane ‘n’. If not, return false. If so, return true. Either way, translate the absolute coordinates relative to ‘n’. If the point is not within ‘n’, these coordinates will not be within the dimensions of the plane.