Type Alias libnotcurses_sys::NcFadeCb

source ·
pub type NcFadeCb = Option<unsafe extern "C" fn(_: *mut Nc, _: *mut NcPlane, _: *const NcTime, _: *mut c_void) -> NcResult_i32>;
Expand description

Called for each fade iteration on a fading NcPlane.

If anything but 0 is returned, the fading operation ceases immediately, and that value is propagated out.

The recommended absolute display time target is passed in ‘tspec’.

Aliased Type§

enum NcFadeCb {
    None,
    Some(unsafe extern "C" fn(_: *mut notcurses, _: *mut ncplane, _: *const timespec, _: *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut notcurses, _: *mut ncplane, _: *const timespec, _: *mut c_void) -> i32)

Some value of type T.