Struct libnotcurses_sys::c_api::ncfadectx
source · pub struct ncfadectx { /* private fields */ }Implementations§
source§impl ncfadectx
impl ncfadectx
sourcepub fn setup(plane: &mut NcPlane) -> &mut NcFadeCtx
pub fn setup(plane: &mut NcPlane) -> &mut NcFadeCtx
NcFadeCtx constructor.
Rather than the simple ncplane_fade{in/out}(), ncfadectx_setup() can be paired with a loop over ncplane_fade{in/out}_iteration() + ncfadectx_free().
sourcepub fn iterations(&self) -> u32
pub fn iterations(&self) -> u32
Returns the number of iterations through which will fade.