46 #ifndef __D4D_PROGRESS_BAR_H
47 #define __D4D_PROGRESS_BAR_H
68 #define D4D_PRGRS_BAR_F_BAR_AUTOCOLOR 0x0100
69 #define D4D_PRGRS_BAR_F_TEXT_AUTOCOLOR 0x0200
70 #define D4D_PRGRS_BAR_F_BAR_SCALECOLOR 0x0400
72 #define D4D_PRGRS_BAR_F_AUTOCOLOR (D4D_PRGRS_BAR_F_BAR_AUTOCOLOR | D4D_PRGRS_BAR_F_TEXT_AUTOCOLOR)
77 #ifndef D4D_PRGRS_BAR_F_DEFAULT
78 #define D4D_PRGRS_BAR_F_DEFAULT (D4D_OBJECT_F_VISIBLE | D4D_OBJECT_F_ENABLED | D4D_PRGRS_BAR_F_BAR_AUTOCOLOR | D4D_PRGRS_BAR_F_BAR_SCALECOLOR)
83 #ifndef D4D_PRGRS_BAR_BAR_OFF
84 #define D4D_PRGRS_BAR_BAR_OFF 3
89 #ifndef D4D_COLOR_PRGRS_BAR_BAR_FORE
90 #define D4D_COLOR_PRGRS_BAR_BAR_FORE D4D_COLOR_DARK_GREEN
95 #ifndef D4D_COLOR_PRGRS_BAR_BAR_END
96 #define D4D_COLOR_PRGRS_BAR_BAR_END D4D_COLOR_YELLOW
101 #ifndef D4D_COLOR_PRGRS_BAR_BAR_BCKG
102 #define D4D_COLOR_PRGRS_BAR_BAR_BCKG D4D_COLOR_BRIGHT_GREY
107 #ifndef D4D_COLOR_PRGRS_BAR_MAX_VAL
108 #define D4D_COLOR_PRGRS_BAR_MAX_VAL 100
152 #define D4D_GET_PROGRESS_BAR(pObj) ((D4D_PROGRESS_BAR*)((pObj)->pParam))
181 #define _D4D_DECLARE_PROGRESS_BAR(type, name, x, y, cx, cy, radius, pMargin, pRelations, flags, pScheme, pUser, pOnUsrMsg) \
182 static D4D_PROGRESS_BAR_DATA name##_data = { 0, 0, D4D_COLOR_PRGRS_BAR_BAR_FORE}; \
183 static type D4D_PROGRESS_BAR name##_params = \
188 D4D_DECLARE_OBJECT(type, name, x, y, cx, cy, radius, pMargin, pRelations, pOnUsrMsg, &d4d_progress_barSysFunc, &(name##_params), flags, pUser, pScheme)
209 #define D4D_DECLARE_PROGRESS_BAR(name, x, y, cx, cy, radius, flags, pScheme, pUser, pOnUsrMsg) \
210 _D4D_DECLARE_PROGRESS_BAR(D4D_CONST, name, x, y, cx, cy, radius, NULL, NULL, flags, pScheme, pUser, pOnUsrMsg)
226 #define D4D_DECLARE_STD_PROGRESS_BAR(name, x, y, cx, cy, radius) \
227 D4D_DECLARE_PROGRESS_BAR(name, x, y, cx, cy, radius, (D4D_PRGRS_BAR_F_DEFAULT), NULL, NULL, NULL)
234 #define D4D_DECLARE_PROGRESS_BAR_INRAM(name, x, y, cx, cy, radius, flags, pScheme, pUser, pOnUsrMsg) \
235 _D4D_DECLARE_PROGRESS_BAR( D4D_NO_CONST, name, x, y, cx, cy, radius, NULL, NULL, flags, pScheme, pUser, pOnUsrMsg)
240 #define D4D_DECLARE_STD_PROGRESS_BAR_INRAM(name, x, y, cx, cy, radius) \
241 D4D_DECLARE_PROGRESS_BAR_INRAM(name, x, y, cx, cy, radius, (D4D_PRGRS_BAR_F_DEFAULT), NULL, NULL, NULL)
void D4D_PrgrsBarSetValue(D4D_OBJECT_PTR pThis, D4D_PROGRESS_BAR_VALUE value)
Byte D4D_PROGRESS_BAR_VALUE
Type definition of progress bar value type - this is standard type used for progress bar data input...
const D4D_OBJECT_SYS_FUNCTION d4d_progress_barSysFunc
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
D4D_PROGRESS_BAR_VALUE D4D_PrgrsBarGetValue(D4D_OBJECT_PTR pThis)
void D4D_PrgrsBarChangeValue(D4D_OBJECT_PTR pThis, D4D_PROGRESS_BAR_VALUE incr)
D4D_PROGRESS_BAR_DATA * pData
The object main structure type definition.
The object system function needed for each object - this is part of D4D_OBJECT main structure...
LWord D4D_BOOL
Type definition of eGUI boolean.
D4D_COLOR D4D_PrgrsBarGetBarColor(D4D_OBJECT_PTR pThis)
LWord D4D_COLOR
Type definition of eGUI color variables.
void D4D_PrgrsBarSetBarColor(D4D_OBJECT_PTR pThis, D4D_COLOR color)
D4D_PROGRESS_BAR_VALUE value