Type Alias libnotcurses_sys::NcFadeCtx
source · pub type NcFadeCtx = ncfadectx;
Expand description
Context for a palette fade operation
Aliased Type§
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.