File indexing completed on 2024-04-14 15:32:06
0001 /* ply-text-progress-bar.h - simple text based pulsing animation 0002 * 0003 * SPDX-FileCopyrightText: 2008 Red Hat Inc. 0004 * SPDX-FileContributor: Adam Jackson <ajax@redhat.com> 0005 * SPDX-FileContributor: Bill Nottingham <notting@redhat.com> 0006 * SPDX-FileContributor: Ray Strode <rstrode@redhat.com> 0007 * SPDX-FileContributor: Soeren Sandmann <sandmann@redhat.com> 0008 * 0009 * SPDX-License-Identifier: GPL-2.0-or-later 0010 */ 0011 #ifndef BREEZE_TEXT_PROGRESS_BAR_H 0012 #define BREEZE_TEXT_PROGRESS_BAR_H 0013 0014 #include <stdbool.h> 0015 #include <stdint.h> 0016 #include <unistd.h> 0017 0018 #include "ply-event-loop.h" 0019 #include "ply-text-display.h" 0020 0021 typedef struct _breeze_text_progress_bar breeze_text_progress_bar_t; 0022 0023 #ifndef PLY_HIDE_FUNCTION_DECLARATIONS 0024 breeze_text_progress_bar_t *breeze_text_progress_bar_new(void); 0025 void breeze_text_progress_bar_free(breeze_text_progress_bar_t *progress_bar); 0026 0027 void breeze_text_progress_bar_draw(breeze_text_progress_bar_t *progress_bar); 0028 void breeze_text_progress_bar_show(breeze_text_progress_bar_t *progress_bar, ply_text_display_t *display); 0029 void breeze_text_progress_bar_hide(breeze_text_progress_bar_t *progress_bar); 0030 0031 void breeze_text_progress_bar_set_percent_done(breeze_text_progress_bar_t *progress_bar, double percent_done); 0032 0033 double breeze_text_progress_bar_get_percent_done(breeze_text_progress_bar_t *progress_bar); 0034 0035 int breeze_text_progress_bar_get_number_of_rows(breeze_text_progress_bar_t *progress_bar); 0036 int breeze_text_progress_bar_get_number_of_columns(breeze_text_progress_bar_t *progress_bar); 0037 #endif 0038 0039 #endif /* BREEZE_TEXT_PULSER_H */ 0040 /* vim: set ts=4 sw=4 expandtab autoindent cindent cino={.5s,(0: */