mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
[docs] correct definition of ncprogbar_options #2639
This commit is contained in:
parent
2e112ffb22
commit
b292bba6df
8
USAGE.md
8
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;
|
||||
|
||||
|
@ -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;
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user