NeoMutt
2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
wdata.h
Go to the documentation of this file.
1
23
#ifndef MUTT_PROGRESS_WDATA_H
24
#define MUTT_PROGRESS_WDATA_H
25
26
#include <stdbool.h>
27
#include <stdint.h>
28
#include <stdio.h>
29
30
struct
MuttWindow
;
31
35
struct
ProgressWindowData
36
{
37
struct
MuttWindow
*
win
;
38
39
// Settings for the Progress Bar
40
char
msg
[1024];
41
char
pretty_size
[24];
42
size_t
size
;
43
size_t
size_inc
;
44
size_t
time_inc
;
45
bool
is_bytes
;
46
47
// Current display
48
size_t
display_pos
;
49
int
display_percent
;
50
uint64_t
display_time
;
51
char
pretty_pos
[24];
52
53
// Updates waiting for display
54
size_t
update_pos
;
55
int
update_percent
;
56
uint64_t
update_time
;
57
};
58
59
void
progress_wdata_free
(
struct
MuttWindow
*win,
void
**ptr);
60
struct
ProgressWindowData
*
progress_wdata_new
(
void
);
61
62
#endif
/* MUTT_PROGRESS_WDATA_H */
progress_wdata_free
void progress_wdata_free(struct MuttWindow *win, void **ptr)
Free Progress Bar Window data - Implements MuttWindow::wdata_free() -.
Definition:
wdata.c:45
progress_wdata_new
struct ProgressWindowData * progress_wdata_new(void)
Create new Progress Bar Window Data.
Definition:
wdata.c:37
MuttWindow
Definition:
mutt_window.h:122
ProgressWindowData
Progress Bar Window Data.
Definition:
wdata.h:36
ProgressWindowData::update_percent
int update_percent
Updated percentage complete.
Definition:
wdata.h:55
ProgressWindowData::msg
char msg[1024]
Message to display.
Definition:
wdata.h:40
ProgressWindowData::size
size_t size
Total expected size.
Definition:
wdata.h:42
ProgressWindowData::pretty_pos
char pretty_pos[24]
Pretty string for the position.
Definition:
wdata.h:51
ProgressWindowData::time_inc
size_t time_inc
Time increment.
Definition:
wdata.h:44
ProgressWindowData::update_time
uint64_t update_time
Time of last update.
Definition:
wdata.h:56
ProgressWindowData::display_percent
int display_percent
Displayed percentage complete.
Definition:
wdata.h:49
ProgressWindowData::display_pos
size_t display_pos
Displayed position.
Definition:
wdata.h:48
ProgressWindowData::size_inc
size_t size_inc
Size increment.
Definition:
wdata.h:43
ProgressWindowData::is_bytes
bool is_bytes
true if measuring bytes
Definition:
wdata.h:45
ProgressWindowData::update_pos
size_t update_pos
Updated position.
Definition:
wdata.h:54
ProgressWindowData::win
struct MuttWindow * win
Window to draw on.
Definition:
wdata.h:37
ProgressWindowData::display_time
uint64_t display_time
Time of last display.
Definition:
wdata.h:50
ProgressWindowData::pretty_size
char pretty_size[24]
Pretty string for size.
Definition:
wdata.h:41