124 if (win_pop != *wptr)
156 return (
struct Progress *) win;
179 char msg[1024] = { 0 };
180 vsnprintf(msg,
sizeof(msg), fmt, ap);
short cs_subset_number(const struct ConfigSubset *sub, const char *name)
Get a number config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
bool OptNoCurses
(pseudo) when sending in batch mode
#define mutt_message(...)
Convenience wrapper for the gui headers.
void msgcont_push_window(struct MuttWindow *win)
Add a window to the Container Stack.
struct MuttWindow * msgcont_pop_window(void)
Remove the last Window from the Container Stack.
Convenience wrapper for the library headers.
bool notify_send(struct Notify *notify, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.
void mutt_clear_error(void)
Clear the message line (bottom line of screen)
void window_redraw(struct MuttWindow *win)
Reflow, recalc and repaint a tree of Windows.
void mutt_window_free(struct MuttWindow **ptr)
Free a Window and its children.
@ NT_RESIZE
Window has been resized.
ProgressType
What kind of operation is this progress tracking?
@ MUTT_PROGRESS_NET
Progress tracks bytes, according to $net_inc
@ MUTT_PROGRESS_READ
Progress tracks elements, according to $read_inc
@ MUTT_PROGRESS_WRITE
Progress tracks elements, according to $write_inc
void progress_window_set_size(struct MuttWindow *win, size_t size)
Set the progress size.
bool progress_window_update(struct MuttWindow *win, size_t pos, int percent)
Update the Progress Bar Window.
void progress_window_set_message(struct MuttWindow *win, const char *fmt, va_list ap)
Set the progress message.
struct MuttWindow * progress_window_new(size_t size, size_t size_inc, size_t time_inc, bool is_bytes)
Create a new Progress Bar Window.
void progress_set_message(struct Progress *progress, const char *fmt,...)
Set the progress message.
struct Progress * progress_new(enum ProgressType type, size_t size)
Create a new Progress Bar.
void progress_free(struct Progress **ptr)
Free a Progress Bar.
static size_t choose_increment(enum ProgressType type)
Choose the right increment given a ProgressType.
bool progress_update(struct Progress *progress, size_t pos, int percent)
Update the state of the progress bar.
void progress_set_size(struct Progress *progress, size_t size)
Set the progress size.
volatile sig_atomic_t SigWinch
true after SIGWINCH is received
enum MuttWindowSize size
Type of Window, e.g. MUTT_WIN_SIZE_FIXED.
Container for Accounts, Notifications.
struct Notify * notify_resize
Window resize notifications handler.
struct ConfigSubset * sub
Inherited config items.