diff --git a/USAGE.md b/USAGE.md index c1321e015..86e1b8b6a 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2830,10 +2830,10 @@ struct ncprogbar* ncprogbar_create(struct ncplane* n, const ncprogbar_options* o #define NCPROGBAR_OPTION_RETROGRADE 0x0001u // proceed left/down typedef struct ncprogbar_options { - // channels for the maximum and minimum points. linear interpolation will be - // applied across the domain between these two. - uint64_t maxchannels; - uint64_t minchannels; + uint32_t ulchannel; // upper-left channel. in the context of a progress bar, + uint32_t urchannel; // "up" is the direction we are progressing towards, and + uint32_t blchannel; // "bottom" is the direction of origin. for monochromatic + uint32_t brchannel; // bar, all four channels ought be the same. uint64_t flags; } ncprogbar_options; diff --git a/doc/man/man3/notcurses_progbar.3.md b/doc/man/man3/notcurses_progbar.3.md index 25e0f8228..27394bd62 100644 --- a/doc/man/man3/notcurses_progbar.3.md +++ b/doc/man/man3/notcurses_progbar.3.md @@ -16,8 +16,10 @@ struct ncprogbar; #define NCPROGBAR_OPTION_RETROGRADE 0x0001u // proceed left/down typedef struct ncprogbar_options { - uint64_t maxchannels; - uint64_t minchannels; + uint32_t ulchannel; // upper-left channel. in the context of a progress bar, + uint32_t urchannel; // "up" is the direction we are progressing towards, and + uint32_t blchannel; // "bottom" is the direction of origin. for monochromatic + uint32_t brchannel; // bar, all four channels ought be the same. uint64_t flags; } ncprogbar_options; ```