Progress Bar Window. More...
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
Functions | |
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_window_set_message (struct MuttWindow *win, const char *fmt, va_list ap) |
Set the progress message. | |
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. | |
Progress Bar Window.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file window.h.
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.
size | Expected number of records or size of traffic |
size_inc | Size increment (step size) |
time_inc | Time increment |
is_bytes | true if measuring bytes |
ptr | New Progress Window |
Definition at line 311 of file window.c.
void progress_window_set_message | ( | struct MuttWindow * | win, |
const char * | fmt, | ||
va_list | ap | ||
) |
void progress_window_set_size | ( | struct MuttWindow * | win, |
size_t | size | ||
) |
Set the progress size.
win | Window to draw on |
size | New size |
Definition at line 363 of file window.c.
bool progress_window_update | ( | struct MuttWindow * | win, |
size_t | pos, | ||
int | percent | ||
) |
Update the Progress Bar Window.
win | Window to draw on |
pos | Position, or count |
percent | Percentage complete |
true | Screen update is needed |
Definition at line 274 of file window.c.