70 } D4D_PROGRESS_BAR_TMP_VAL;
74 #define _calc (*((D4D_PROGRESS_BAR_TMP_VAL*)d4d_scratchPad))
106 #if D4D_ROUND_CORNER_ENABLE == D4D_TRUE
124 _calc.inner_radius = 0;
204 if(pData->
value == value)
207 if(pData->
value <= value)
213 pData->
value = value;
D4D_COLOR D4D_GetCrossColor(D4D_COLOR startColor, D4D_COLOR endColor, Byte value)
Compute cross color between two basic color in 256 steps.
void D4D_RBox(D4D_POINT *ppt, D4D_SIZE *psz, D4D_LINETYPE ltype, D4D_COLOR colorLine, D4D_COLOR colorFill, D4D_COOR radius)
Function draw filled rectangle with outline on the screen with round corners.
D4D_COLOR D4D_ObjectGetBckgFillColor(D4D_OBJECT *pObj)
Function return object current fill background color.
#define D4D_GET_PROGRESS_BAR(pObj)
D4D_COLOR D4D_ObjectGetForeColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current fore color.
void D4D_PrgrsBarSetValue(D4D_OBJECT_PTR pThis, D4D_PROGRESS_BAR_VALUE value)
D4D_CLR_SCHEME_OBJ objectDepend
Sub structure of object non standard colors.
Type definition of eGUI point structure.
On Init message - is send for first time when the object is inicialized.
D4D object messages structure.
D4D_OBJECT_DATA_PTR pData
Pointer on runtime object data.
D4D_COLOR barFore
The progress bar, bar fore start color for case that the D4D_PRGRS_BAR_F_BAR_SCALECOLOR flag is enabl...
#define D4D_FALSE
This is definition of boolean operation value in eGUI - FALSE.
D4D_OBJECT_INITFLAGS initFlags
The initializations object flags.
D4D_COLOR barEnd
The progress bar, bar fore end color for case that the D4D_PRGRS_BAR_F_BAR_SCALECOLOR flag is enabled...
static void D4D_PrgrsBarValue2Coor(D4D_OBJECT *pThis)
#define D4D_TRUE
This is definition of boolean operation value in eGUI - TRUE.
void D4D_DrawFrame(D4D_OBJECT *pObject, D4D_COLOR clrT, D4D_COLOR clrB)
Function draw standard object frame based on the object settings and current state.
Byte D4D_PROGRESS_BAR_VALUE
Type definition of progress bar value type - this is standard type used for progress bar data input...
struct D4D_OBJECT_S * pObject
Pointer to object who is receiver of this message. If the receiver is just screen this field must be ...
D4D Driver main header file.
#define D4D_PRGRS_BAR_BAR_OFF
This is offset value of active work area of progress bar. If not defined, it sets to 5 pixels as a de...
D4D_OBJECT_FLAGS flags
runtime object flags
D4D_COLOR barBckg
The progress bar, bar background color.
#define D4D_OBJECT_DRAWFLAGS_COMPLETE
Draw complete flag.
#define D4D_SCRATCHPAD_SIZE
Call back function raised by any new input event (touch, mouse, keys).
D4D Driver private header file.
#define D4D_DEFSTR(str)
Macro that helps declare the strings in eGUI.
void D4D_PrgrsBarOnMessage(D4D_MESSAGE *pMsg)
This is the main structure of the color scheme in the D4D. It contains all the necessary colors to ru...
Byte D4D_COOR
Type definition of eGUI coordination variables.
D4D_POINT position
Position on the screen/object.
const D4D_OBJECT_SYS_FUNCTION d4d_progress_barSysFunc
#define D4D_OBJECT_DRAWFLAGS_STATE
Draw just change of state flag.
D4D_COOR radius
Object corners radius.
void D4D_ObjOnMessage(D4D_MESSAGE *pMsg)
D4D_PROGRESS_BAR_VALUE D4D_PrgrsBarGetValue(D4D_OBJECT_PTR pThis)
#define NULL
Type definition of null pointer.
D4D_CLR_SCHEME * D4D_ObjectGetScheme(D4D_OBJECT *pObj)
Function return the pointer to current use object scheme of object.
#define D4D_OBJECT_F_NOTINIT
void D4D_PrgrsBarChangeValue(D4D_OBJECT_PTR pThis, D4D_PROGRESS_BAR_VALUE incr)
D4D_MSGID nMsgId
Type of message.
D4D_SIZE size
Size of the object.
D4D_PROGRESS_BAR_DATA * pData
Byte D4D_MulDivUU8(Byte u1, Byte u2, Byte d)
Simple proportion unsigned calculation - 8 bit.
D4D_POINT D4D_GetClientToScreenPoint(D4D_OBJECT *pObject, D4D_POINT *nClientPoint)
The function convert client point on the screen to the global screen point.
The object main structure type definition.
Draw message - is send when the object should be redrawed.
void D4D_FillRRectColorScaleXY(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_COLOR startColor, D4D_COLOR endColor, D4D_DIRECTION direction, D4D_COOR radius)
Function draw filled rectangle with round corners with changing color (cross color from start to end ...
static D4D_COLOR D4D_PrgrsBarComputeColorBar(D4D_OBJECT *pThis, D4D_PROGRESS_BAR_VALUE value)
void D4D_ComputeGeometry(D4D_GEOMETRY *pGeometry, D4D_OBJECT *pObject)
The object system function needed for each object - this is part of D4D_OBJECT main structure...
Type definition of eGUI size structure.
D4D_OBJECT_DRAWFLAGS draw
Contains draw flags - is valid with D4D_MSG_DRAW and D4D_MSG_DRAWDONE message.
static void D4D_PrgrsBarOnDraw(D4D_MESSAGE *pMsg)
Type definition of eGUI geometry structure.
void D4D_InvalidateObject(D4D_OBJECT_PTR pObject, D4D_BOOL bComplete)
Function invalidate object to redraw on screen.
D4D_COLOR D4D_PrgrsBarGetBarColor(D4D_OBJECT_PTR pThis)
void D4D_FillRRectXY(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_COLOR color, D4D_COOR radius)
Function draw filled rectangle on the screen with round corners.
#define D4D_PRGRS_BAR_F_BAR_SCALECOLOR
This option enable little bit different type of drawing bar, the color is gradually changed from fore...
D4D_CLR_SCHEME_PRGRS_BAR progressBar
The non standard colors of progerss bar object.
Byte D4D_OBJECT_DRAWFLAGS
Drawing object flags type, handled to object in D4D_MSG_DRAW events.
LWord D4D_COLOR
Type definition of eGUI color variables.
D4D_COLOR D4D_GetGreyScale(D4D_COLOR color)
Compute the grayscale color.
#define D4D_PRGRS_BAR_F_BAR_AUTOCOLOR
This flag specifies the behavior of the progress bar. If it is set, the color of a progress bar depen...
union D4D_MESSAGE_S::@0 prm
Additional data for some type of messages.
void D4D_PrgrsBarSetBarColor(D4D_OBJECT_PTR pThis, D4D_COLOR color)
D4D_BOOL D4D_IsEnabled(D4D_OBJECT *pObject)
Function find out if the object is enabled or not.
#define D4D_COLOR_PRGRS_BAR_MAX_VAL
This is progress bar maximal value definition. If not defined, it sets to 100 (to reflect standard pe...
D4D_PROGRESS_BAR_VALUE value