78 #define _calc (*((D4D_MENU_TMP_VAL*)d4d_scratchPad))
97 for(tmpB = 0; tmpB < itemsCnt; tmpB++)
132 #if D4D_ROUND_CORNER_ENABLE == D4D_TRUE
133 bar_height += pThis->
radius / 2;
248 #if D4D_ROUND_CORNER_ENABLE != D4D_FALSE
255 tmp_point.
y =
_calc.contentGeom.pnt.y;
286 #if D4D_ROUND_CORNER_ENABLE != D4D_FALSE
320 #if D4D_ROUND_CORNER_ENABLE != D4D_FALSE
484 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
507 if(tmp_y <=
_calc.titleBar_y)
510 tmp_y -=
_calc.titleBar_y;
521 if(tmp_y <
_calc.textOff)
536 tmp_y -=
_calc.textOff;
681 for(i=0;i< i_max;i++)
737 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
757 D4D_MenuOnTouch(pMsg, &touchClickPoint);
774 D4D_MenuOnTouch(pMsg, &touchClickPoint);
D4D_INDEX buffSize
size of text buffer array
D4D_WCHAR D4D_TCHAR
Type definition of eGUI character (it depends on UNICODE setting if this is D4D_CHAR or D4D_WCHAR)...
D4D_OBJECT * D4D_GetParentObject(D4D_OBJECT *pObject)
#define D4D_KEY_SCANCODE_ESC
This macro is used to specify Key Scan Code ESC. If not defined, it sets to 0x01 as a default...
D4D_COLOR D4D_ObjectGetBckgFillColor(D4D_OBJECT *pObj)
Function return object current fill background color.
#define D4D_KEY_SCANCODE_UP
This macro is used to specify Key Scan Code UP. If not defined, it sets to 0x51 as a default...
D4D_TEXT_PROPERTIES text_properties
Text properties structure.
D4D_INDEX printLen
Length of string that should be used (printed).
struct D4D_SCREEN_S * pScreen
pointer to object screen owner - it is placed in RAM bacause one object could be used in multiply scr...
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.
Mouse Whell Move Down message - is send in case that mouse whell move down is detected on this object...
#define D4D_FALSE
This is definition of boolean operation value in eGUI - FALSE.
The string type. This structure contains all properties about string in eGUI.
D4D_COLOR D4D_ObjectGetForeFillColor(D4D_OBJECT *pObj)
Function return object current fill fore color.
#define D4D_DrawRBmp(ppt, pBmp, greyScale, radius)
D4D_OBJECT_INITFLAGS initFlags
The initializations object flags.
#define D4D_OBJECT_F_TABSTOP
Object can be focused.
#define D4D_DrawTextRect(ppt, psz, buffText, colorText, colorBkgd)
Function that draw text into defined rectangle on the screen.
D4D_FONT fontId
index of used font
D4D_POINT D4D_GetTouchScreenCoordinates(D4D_OBJECT *pObject)
void D4D_MoveToXY(D4D_COOR x, D4D_COOR y)
Function move logic cursor to new position.
#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 ...
Key Up message - is send when the object get new Key Up event.
D4D Driver main header file.
#define D4D_KEY_SCANCODE_ENTER
This macro is used to specify Key Scan Code ENTER. If not defined, it sets to 0x1C as a default...
D4D_OBJECT_FLAGS flags
runtime object flags
The string properties type. This structure contains as Font as Text properties.
D4D_COOR D4D_GetBmpHeight(const D4D_BMP *pBmp)
Function gets information about bitmap height.
Auto Touched message - is send when the object is still keep touch by touch screen driver ...
#define D4D_GetMouseCoordinates(pObject)
#define D4D_OBJECT_DRAWFLAGS_COMPLETE
Draw complete flag.
#define D4D_SCRATCHPAD_SIZE
Call back function raised by any new input event (touch, mouse, keys).
Mouse Left Button Release message - is send in case that mouse left release is detected on this objec...
D4D Driver private header file.
#define D4D_KEY_SCANCODE_DOWN
This macro is used to specify Key Scan Code DOWN. If not defined, it sets to 0x50 as a default...
#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...
D4D_COOR cx
Size in axis X (width)
Byte D4D_COOR
Type definition of eGUI coordination variables.
D4D_POINT position
Position on the screen/object.
D4D_MENU_ON_CLICK OnClicked
#define D4D_OBJECT_DRAWFLAGS_STATE
Draw just change of state flag.
D4D_COOR radius
Object corners radius.
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
void D4D_ObjOnMessage(D4D_MESSAGE *pMsg)
void D4D_FocusSet(const D4D_SCREEN *pScreen, D4D_OBJECT_PTR pObject)
The function set the obejct focus to new object.
D4D_INDEX D4D_GetTextLength(D4D_TCHAR *pText)
The function returns lenght of text.
#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_STR_PROPERTIES * str_properties
pointer to string properties
D4D_COOR y
Coordination in axis Y.
D4D_COLOR bckgFocus
The object background color in focused state.
#define D4D_OBJECT_F_NOTINIT
D4D_OBJECT_PTR D4D_GetFocusedObject(const D4D_SCREEN *pScreen)
The function returns pointer to object that is focused in given screen.
D4D_MSGID nMsgId
Type of message.
D4D_SIZE size
Size of the object.
const D4D_MENU_ITEM * pItems
D4D_KEY_SCANCODE key
There will be stored only code of key without release / press information - is valid with D4D_MSG_KEY...
D4D_POINT D4D_GetClientToScreenPoint(D4D_OBJECT *pObject, D4D_POINT *nClientPoint)
The function convert client point on the screen to the global screen point.
LWord D4D_INDEX
Type definition of eGUI general index variables.
The object main structure type definition.
void D4D_CaptureKeys(D4D_OBJECT_PTR pObj)
Function switch on capturing the keys to objects.
Draw message - is send when the object should be redrawed.
D4D_COOR D4D_GetBmpWidth(const D4D_BMP *pBmp)
Function gets information about bitmap width.
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...
#define D4D_OBJECT_F_VISIBLE
Object after initialization is visible on the screen.
#define D4D_OBJECT_F_FASTTOUCH
Object has enabled fast touch screen capability. This option supports only a some objects (button...
Touched message - is send when the object is touched by touch screen driver.
LWord D4D_BOOL
Type definition of eGUI boolean.
#define D4D_UNUSED(x)
Macro used just for notify compiler that the input parameter is not used.
Byte D4D_SprintDecU8(Byte val, D4D_TCHAR *pText, D4D_TCHAR fill)
The function convert decimal unsigned 8 bit number to string.
Type definition of eGUI size structure.
D4D_FONT_SIZE D4D_GetFontWidth(D4D_FONT ix)
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.
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.
void D4D_InvalidateObject(D4D_OBJECT_PTR pObject, D4D_BOOL bComplete)
Function invalidate object to redraw on screen.
Key Down message - is send when the object get new Key Down event.
void D4D_LineToXY(D4D_COOR x, D4D_COOR y, D4D_LINETYPE ltype, D4D_COLOR color)
Function draw line on the screen.
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.
struct D4D_SCREEN_S * pScreen
Pointer to screen who is receiver of this message.
D4D_FONT_PROPERTIES font_properties
Font properties structure.
D4D_FONT_SIZE D4D_GetFontHeight(D4D_FONT ix)
Mouse Whell Move Up message - is send in case that mouse whell move up is detected on this object...
D4D_INDEX printOff
Offset of string that should be used (printed).
D4D_COLOR foreFocus
The object fore color in focused state.
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.
D4D_POINT D4D_GetScreenToClientPoint(D4D_OBJECT *pObject, D4D_POINT *nScreenPoint)
The function convert global screen point on the screen to the client point.
D4D_OBJECT * D4D_GetCapturedObject(void)
Function returns the current keys capturing object pointer.