Progress Bar Window. More...
#include <stdarg.h>#include <stdbool.h>#include <stddef.h>
Include dependency graph for window.h:
This graph shows which files directly or indirectly include this file: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 316 of file window.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void progress_window_set_message | ( | struct MuttWindow * | win, |
| const char * | fmt, | ||
| va_list | ap ) |
Set the progress message.
| win | Window to draw on |
| fmt | printf format string |
| ap | printf arguments |
Definition at line 355 of file window.c.
Here is the caller graph for this function:| 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 372 of file window.c.
Here is the caller graph for this function:| 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 279 of file window.c.
Here is the call graph for this function:
Here is the caller graph for this function: