64 typedef struct D4D_GAUGE_VAL2PT_S
74 #define _calc (*((D4D_GAUGE_VAL2PT*)d4d_scratchPad))
109 tmp_res =
_calc.hubXY;
179 if(!(draw & D4D_OBJECT_DRAWFLAGS_COMPLETE))
330 if(trend != pData->
trend)
333 pData->
trend = trend;
D4D_LINETYPE
Type definition of eGUI line type.
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_ALIGN_V_CENTER_MASK
The vertical center aligment option mask (for texts and also bitmaps).
#define D4D_GAUGE_F_REDRAW_TEXT
This flags force the redrawing gauge text after each redraw of new value. This is usable in case that...
D4D_CLR_SCHEME_OBJ objectDepend
Sub structure of object non standard colors.
D4D_COLOR pointer
The gauge pointer color.
Type definition of eGUI point structure.
D4D object messages structure.
D4D_CLR_SCHEME_GAUG gauge
The non standard colors of gauge object.
struct D4D_GAUGE_VAL2PT_S D4D_GAUGE_VAL2PT
D4D_STRING * D4D_GaugeGetTextBuffer(D4D_OBJECT *pThis)
#define D4D_FALSE
This is definition of boolean operation value in eGUI - FALSE.
void D4D_GaugSetDir(D4D_OBJECT_PTR pThis, D4D_TREND trend)
The function set the trend/direction of gauge.
The string type. This structure contains all properties about string in eGUI.
D4D_OBJECT_INITFLAGS initFlags
The initializations object flags.
#define D4D_DrawTextRect(ppt, psz, buffText, colorText, colorBkgd)
Function that draw text into defined rectangle on the screen.
D4D_GAUGE_ON_CHANGE OnValueChanged
The gauge limits structure that defines input value range and for this range specify the final angles...
Byte D4D_BMP_PROPERTIES
D4D_BMP_PROPERTIES type of image properties.
D4D_FONT fontId
index of used font
D4D_GAUGE_VALUE valueLast
void D4D_GaugOnMessage(D4D_MESSAGE *pMsg)
#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.
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.
D4D_GAUGE_ANGLE angleMin
line angle from 0x00 to 0xFF
static void D4D_GaugOnDraw(D4D_MESSAGE *pMsg)
D4D_TREND
Type definition of eGUI trend type.
#define D4D_OBJECT_DRAWFLAGS_COMPLETE
Draw complete flag.
sByte D4D_LimitS8(sByte val, sByte min, sByte max)
Calculation of limitation value (signed) - 8 bit.
#define D4D_SCRATCHPAD_SIZE
Call back function raised by any new input event (touch, mouse, keys).
D4D_GAUGE_VALUE D4D_GaugGetValue(D4D_OBJECT_PTR pThis)
The function gets the current value of gauge.
D4D_GAUGE_VALUE valueMin
minimal value (corresponds to angleMin)
D4D Driver private header file.
#define D4D_DEFSTR(str)
Macro that helps declare the strings in eGUI.
This is the main structure of the color scheme in the D4D. It contains all the necessary colors to ru...
static void D4D_GaugValue2Point(D4D_OBJECT *pThis)
D4D_COOR cx
Size in axis X (width)
const D4D_OBJECT_SYS_FUNCTION d4d_gaugeSysFunc
Byte D4D_COOR
Type definition of eGUI coordination variables.
D4D_POINT position
Position on the screen/object.
#define D4D_OBJECT_DRAWFLAGS_STATE
Draw just change of state flag.
D4D_COOR radius
Object corners radius.
#define D4D_DrawRBmpRect(ppt,psz, pBmp, bmpProp, colorBkgd, greyScale, radius)
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
void D4D_GaugSetLimits(D4D_OBJECT_PTR pThis, const D4D_GAUGE_LIMITS *pLimits)
The function sets the new limits values of gauge.
#define D4D_GAUGE_F_HUB
This flag enables draw of the HUB.
void D4D_ObjOnMessage(D4D_MESSAGE *pMsg)
void D4D_FillCircle(D4D_POINT *pCenter, D4D_COOR r, D4D_COLOR color)
Function draw filled circle on the screen.
sByte D4D_Sin(Byte x)
Sine calculation using lookup table.
void D4D_FocusSet(const D4D_SCREEN *pScreen, D4D_OBJECT_PTR pObject)
The function set the obejct focus to new object.
#define D4D_GAUGE_HUB_RADIUS
This is size of gauge hub in pixels. If not defined, it sets to 3 pixel 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.
D4D_TCHAR * pText
pointer to text array
D4D_COOR y
Coordination in axis Y.
void D4D_GaugSetValue(D4D_OBJECT_PTR pThis, D4D_GAUGE_VALUE value)
The function sets the new value of gauge.
D4D_MSGID nMsgId
Type of message.
D4D_SIZE size
Size of the object.
Byte D4D_MulDivUU8(Byte u1, Byte u2, Byte d)
Simple proportion unsigned calculation - 8 bit.
D4D_GAUGE_VALUE valueMax
maximal value (corresponds to angleMax)
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.
signed char sByte
Type definition of sByte (signed 8-bit).
#define D4D_ALIGN_H_CENTER_MASK
The horizontal center aligment option mask (for texts and also bitmaps).
void D4D_ComputeGeometry(D4D_GEOMETRY *pGeometry, D4D_OBJECT *pObject)
D4D_COOR cy
Size in axis Y (height)
The object system function needed for each object - this is part of D4D_OBJECT main structure...
Touched message - is send when the object is touched by touch screen driver.
LWord D4D_BOOL
Type definition of eGUI boolean.
Type definition of eGUI size structure.
sByte D4D_GAUGE_VALUE
The gauge value variable, is used to hadle inputs of gauga functions API.
D4D_COOR D4D_GetTextWidth(D4D_FONT ix, D4D_TCHAR *pText)
The function returns width of text in pixels.
D4D_OBJECT_DRAWFLAGS draw
Contains draw flags - is valid with D4D_MSG_DRAW and D4D_MSG_DRAWDONE message.
sByte D4D_Cos(Byte x)
Cosine calculation using lookup table.
void D4D_FillRRect(D4D_POINT *ppt, D4D_SIZE *psz, D4D_COLOR color, D4D_COOR radius)
Function draw filled rectangle on the screen with round corners.
Type definition of eGUI geometry structure.
D4D_GAUGE_ANGLE angleMax
line angle from 0x00 to 0xFF
D4D_COLOR hub
The gauge hub color.
void D4D_GaugGetLimits(D4D_OBJECT_PTR pThis, D4D_GAUGE_LIMITS *pLimits)
The function gets the values of gauge limit structure.
D4D_COLOR bckg
The object background color in standard state.
D4D_TREND D4D_GaugGetDir(D4D_OBJECT_PTR pThis)
The function gets the trend/direction of gauge object.
void D4D_InvalidateObject(D4D_OBJECT_PTR pObject, D4D_BOOL bComplete)
Function invalidate object to redraw on screen.
#define D4D_GET_GAUGE(pObj)
Byte D4D_OBJECT_DRAWFLAGS
Drawing object flags type, handled to object in D4D_MSG_DRAW events.
void D4D_LineTo(D4D_POINT *ppt, D4D_LINETYPE ltype, D4D_COLOR color)
Function draw line on the screen.
LWord D4D_COLOR
Type definition of eGUI color variables.
static D4D_POINT D4D_GaugeGetAnglePoint(D4D_GAUGE *pGaug, D4D_GAUGE_VALUE value)
struct D4D_SCREEN_S * pScreen
Pointer to screen who is receiver of this message.
D4D_COLOR D4D_GetGreyScale(D4D_COLOR color)
Compute the grayscale color.
D4D_FONT_SIZE D4D_GetFontHeight(D4D_FONT ix)
void D4D_MoveTo(D4D_POINT *ppt)
Function move logic cursor to new position.
D4D_COOR x
Coordination in axis X.
union D4D_MESSAGE_S::@0 prm
Additional data for some type of messages.
D4D_BOOL D4D_IsEnabled(D4D_OBJECT *pObject)
Function find out if the object is enabled or not.
#define D4D_GAUGE_F_THICK_POINTER
This flag switch the pointer to thick line.