1#ifndef __NCPP_PROGBAR_HH
2#define __NCPP_PROGBAR_HH
18 if (
opts ==
nullptr) {
23 if (progbar ==
nullptr) {
24 throw init_error (
"Notcurses failed to create ncprogbar");
30 if (!is_notcurses_stopped ()) {
42 return Plane::map_plane (ret);
double get_progress() const noexcept
Progbar(Plane &n, const ncprogbar_options *opts)
Plane * get_plane() const noexcept
void set_progress(double p) const noexcept
const struct ncplane_options * opts
ncprogbar * ncprogbar_create(ncplane *n, const ncprogbar_options *opts)
ncplane * ncprogbar_plane(ncprogbar *n)
void ncprogbar_destroy(ncprogbar *n)
int ncprogbar_set_progress(ncprogbar *n, double p)
double ncprogbar_progress(const ncprogbar *n)