gwenhywfar  5.10.1
cprogress_l.h
Go to the documentation of this file.
1 
2 
3 
4 #ifndef GWENHYWFAR_GUI_CPROGRESS_H
5 #define GWENHYWFAR_GUI_CPROGRESS_H
6 
7 #include <gwenhywfar/list.h>
8 #include <gwenhywfar/gui.h>
9 #include <gwenhywfar/buffer.h>
10 #include <gwenhywfar/logger.h>
11 
12 
13 
16 
17 
19  uint32_t id,
20  uint32_t progressFlags,
21  const char *title,
22  const char *text,
23  uint64_t total);
25 
26 
29 const char *GWEN_Gui_CProgress_GetTitle(const GWEN_GUI_CPROGRESS *cp);
30 const char *GWEN_Gui_CProgress_GetText(const GWEN_GUI_CPROGRESS *cp);
33 
37 
38 
39 int GWEN_Gui_CProgress_Advance(GWEN_GUI_CPROGRESS *cp, uint64_t progress);
40 
42  GWEN_LOGGER_LEVEL level,
43  const char *text);
44 
46 
47 
48 
49 #endif
50 
const char * GWEN_Gui_CProgress_GetText(const GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:112
const char * GWEN_Gui_CProgress_GetLogBuf(const GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:144
GWEN_LOGGER_LEVEL
Definition: logger.h:64
int GWEN_Gui_CProgress_Advance(GWEN_GUI_CPROGRESS *cp, uint64_t progress)
Definition: cprogress.c:164
uint64_t GWEN_Gui_CProgress_GetCurrent(const GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:136
void GWEN_Gui_CProgress_SetTotal(GWEN_GUI_CPROGRESS *cp, uint64_t i)
Definition: cprogress.c:128
#define GWEN_LIST_FUNCTION_DEFS(t, pr)
Definition: list1.h:357
uint64_t GWEN_Gui_CProgress_GetTotal(const GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:120
uint32_t GWEN_Gui_CProgress_GetId(const GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:96
int GWEN_Gui_CProgress_GetAborted(const GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:153
const char * GWEN_Gui_CProgress_GetTitle(const GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:104
int GWEN_Gui_CProgress_Log(GWEN_GUI_CPROGRESS *cp, GWEN_LOGGER_LEVEL level, const char *text)
Definition: cprogress.c:239
struct GWEN_GUI GWEN_GUI
Definition: gui.h:176
void GWEN_Gui_CProgress_free(GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:75
struct GWEN_GUI_CPROGRESS GWEN_GUI_CPROGRESS
Definition: cprogress_l.h:14
GWEN_GUI * GWEN_Gui_CProgress_GetGui(const GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:88
GWEN_GUI_CPROGRESS * GWEN_Gui_CProgress_new(GWEN_GUI *gui, uint32_t id, uint32_t progressFlags, const char *title, const char *text, uint64_t total)
Definition: cprogress.c:28
int GWEN_Gui_CProgress_End(GWEN_GUI_CPROGRESS *cp)
Definition: cprogress.c:272