Function libnotcurses_sys::ncdirect_render_frame[][src]

pub unsafe extern "C" fn ncdirect_render_frame(
    n: *mut ncdirect,
    filename: *const c_char,
    blitter: ncblitter_e,
    scale: ncscale_e,
    maxy: c_int,
    maxx: c_int
) -> *mut ncdirectv
Expand description

Render an image using the specified blitter and scaling, but do not write the result. The image may be arbitrarily many rows – the output will scroll – but will only occupy the column of the cursor, and those to the right. To actually write (and free) this, invoke ncdirect_raster_frame(). ‘maxx’ and ‘maxy’ (cell geometry, not pixel), if greater than 0, are used for scaling; the terminal’s geometry is otherwise used.