93 return pSchemeDefault;
95 if(pScreen->clrScheme !=
NULL)
96 return pScreen->clrScheme;
98 return pSchemeDefault;
112 return pSchemeDefault;
135 return pSchemeDefault;
150 pSchemeDefault = pScheme;
174 return pScheme->
fore;
198 return pScheme->
bckg;
215 return pScheme->
fore;
232 return pScheme->
bckg;
297 absIntesity =
D4D_Abs(intensity);
335 Byte red, green, blue;
343 red = green = blue = (
Byte)((
Word)(red + green + blue) / 3);
D4D_COLOR D4D_GetCrossColor(D4D_COLOR startColor, D4D_COLOR endColor, Byte value)
Compute cross color between two basic color in 256 steps.
D4D_COLOR D4D_ObjectGetBckgColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current background color.
D4D_COLOR foreDis
The object fore color in disabled state.
D4D_OBJECT * D4D_GetParentObject(D4D_OBJECT *pObject)
D4D_COLOR D4D_ObjectGetBckgFillColor(D4D_OBJECT *pObj)
Function return object current fill background color.
D4D_COLOR D4D_ObjectGetForeColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current fore color.
#define D4D_OBJECT_DRAWFLAGS_FOCUSED
Draw fosused state flag.
#define D4D_COLOR_SCR_EXIT_BTN_BCKG
This is screen exit button background color. If not defined, it sets to D4D_COLOR_BRIGHT_RED as a def...
#define D4D_COLOR_GET_B(color)
struct D4D_SCREEN_S * pScreen
pointer to object screen owner - it is placed in RAM bacause one object could be used in multiply scr...
#define D4D_COLOR_SLDR_BAR_START
This is slider start fore color definition. If not defined, it sets to D4D_COLOR_GREEN as a default...
D4D_OBJECT_DATA_PTR pData
Pointer on runtime object data.
D4D_COLOR D4D_ObjectGetForeFillColor(D4D_OBJECT *pObj)
Function return object current fill fore color.
#define D4D_COLOR_BCKG_CAPTURE
This is background object color in captured state of object. If not defined, it sets to D4D_COLOR_GRE...
D4D_COLOR fore
The object fore color in standard state.
#define D4D_COLOR_SCR_DESKTOP
This is desktop screen color. If not defined, it sets to D4D_COLOR_WHITE as a default.
#define D4D_COLOR_RGB(R, G, B)
#define D4D_COLOR_SCR_EXIT_BTN_FORE
This is screen exit button fore color. If not defined, it sets to D4D_COLOR_WHITE as a default...
#define D4D_COLOR_PRGRS_BAR_BAR_BCKG
This is progress bar background color definition. If not defined, it sets to D4D_COLOR_BRIGHT_GREY as...
D4D Driver main header file.
struct D4D_CLR_SCHEME_S * clrScheme
Pointer on used color scheme.
D4D Driver private header file.
This is the main structure of the color scheme in the D4D. It contains all the necessary colors to ru...
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
D4D_CLR_SCHEME * D4D_ScreenGetScheme(D4D_SCREEN *pScreen)
D4D_COLOR D4D_ChangeColorIntesity(D4D_COLOR color, sByte intensity)
Compute change of color intesity.
#define D4D_COLOR_PRGRS_BAR_BAR_END
This is progress bar end color definition. If not defined, it sets to D4D_COLOR_YELLOW as a default...
#define D4D_COLOR_SLDR_BAR_BCKG
This is slider background color definition. If not defined, it sets to D4D_COLOR_BRIGHT_GREY as a def...
#define D4D_COLOR_SCR_TILTLETEXT
This is title text screen color. If not defined, it sets to D4D_COLOR_WHITE as a default.
#define D4D_OBJECT_DRAWFLAGS_CAPTURING
Draw capturing state flag.
#define D4D_COLOR_SCR_OUTLINE
This is outline screen color. If not defined, it sets to D4D_COLOR_LIGHT_GREY as a default...
#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_COLOR_SCR_TITLEBAR
This is title bar screen color. If not defined, it sets to D4D_COLOR_ORANGE as a default.
D4D_COLOR bckgFocus
The object background color in focused state.
void D4D_SetDefaultScheme(D4D_CLR_SCHEME *pScheme)
Function sets the new default color scheme.
#define D4D_COLOR_BCKG_DISABLED
This is background object color in disabled state of object. If not defined, it sets to D4D_COLOR_LIG...
signed short sWord
Type definition of sWord (signed 16-bit).
#define D4D_COLOR_FORE_CAPTURE
This is fore object color in captured state of object. If not defined, it sets to D4D_COLOR_BRIGHT_RE...
Byte D4D_MulDivUU8(Byte u1, Byte u2, Byte d)
Simple proportion unsigned calculation - 8 bit.
#define D4D_COLOR_GAUG_HUB
This is default gauge hub color definition. If not defined, it sets to D4D_COLOR_DARK_RED as a defaul...
#define D4D_COLOR_SLDR_BAR_FORE
This is slider fore color definition. If not defined, it sets to D4D_COLOR_DARK_BLUE as a default...
#define D4D_COLOR_GAUG_POINTER
This is default gauge pointer color definition. If not defined, it sets to D4D_COLOR_DARK_BLUE as a d...
D4D_CLR_SCHEME * D4D_GetDefaultScheme(void)
Function return the pointer to default color scheme.
The object main structure type definition.
signed char sByte
Type definition of sByte (signed 8-bit).
D4D_OBJECT_RELATIONS pRelations
Relationship between the objects.
#define D4D_COLOR_GRAPH_GRID
This is default graph grid color definition. If not defined, it sets to D4D_COLOR_LIGHT_GREY as a def...
#define D4D_COLOR_CHECKBOX_ICON_BCKG
This is check box icon background color definition. Is used for example if non-check icon is not defi...
#define D4D_DECLARE_CLR_SCHEME(name, scrDesktop, scrOutline, scrTitleBar, scrTitleText, scrExitBtnFore, scrExitBtnBckg, objBckg, objBckgDis, objBckgFocus, objBckgCapture, objFore, objForeDis, objForeFocus, objForeCapture, gaugHub, gaugPointer, sldrBarBckg, sldrBar, sldrBarStart, sldrBarEnd, iconBckg, graphGrid, prgrsBarBarBckg, prgrsBarBar, prgrsBarBarEnd)
The color scheme has a simple instantiation macro that specifies all colors for screens, common object colors, and object dependent colors. This is a full definition macro that allows setting of all colors in D4D color scheme.
#define D4D_COLOR_GET_G(color)
#define D4D_COLOR_FORE_NORM
This is fore object color in normal state of object. If not defined, it sets to D4D_COLOR_BLACK as a ...
Byte D4D_Abs(sByte num)
Calculation of absolute value - 8 bit.
#define D4D_COLOR_FORE_FOCUS
This is fore object color in focused state of object. If not defined, it sets to D4D_COLOR_RED as a d...
The screen structure type. The main screen structure that contains all needed data to run the eGUI sc...
D4D_COLOR bckg
The object background color in standard state.
D4D_COLOR bckgCapture
The object background color in captured state.
#define D4D_COLOR_FORE_DISABLED
This is fore object color in disabled state of object. If not defined, it sets to D4D_COLOR_GREY as a...
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.
#define D4D_COLOR_BCKG_FOCUS
This is background object color in focused state of object. If not defined, it sets to D4D_COLOR_LIGH...
#define D4D_COLOR_PRGRS_BAR_BAR_FORE
This is progress bar fore color definition. If not defined, it sets to D4D_COLOR_DARK_GREEN as a defa...
D4D_COLOR D4D_GetGreyScale(D4D_COLOR color)
Compute the grayscale color.
#define D4D_COLOR_BCKG_NORM
This is background object color in normal state of object. If not defined, it sets to D4D_COLOR_WHITE...
D4D_COLOR bckgDis
The object background color in disabled state.
unsigned short Word
Type definition of Word (unsigned 16-bit).
D4D_COLOR foreFocus
The object fore color in focused state.
#define D4D_COLOR_GET_R(color)
D4D_COLOR foreCapture
The object fore color in captured state.
D4D_BOOL D4D_IsEnabled(D4D_OBJECT *pObject)
Function find out if the object is enabled or not.
#define D4D_COLOR_SLDR_BAR_END
This is slider end color definition. If not defined, it sets to D4D_COLOR_RED as a default...