72 #define _calc (*((D4D_BTN_TMP_VAL*)d4d_scratchPad))
105 #if (D4D_ROUND_CORNER_ENABLE != D4D_FALSE) //if Round corners
141 #if (D4D_ROUND_CORNER_ENABLE != D4D_FALSE) //if Round corners
307 *pStatus &= ~D4D_BUTTON_STATUS_PRESSED_MASK;
330 *pStatus &= ~D4D_BUTTON_STATUS_PRESSED_MASK;
341 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
375 *pStatus &= ~D4D_BUTTON_STATUS_PRESSED_MASK;
405 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
428 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
433 D4D_BtnTouched(pMsg);
443 *(pBtn->
pStatus) |= D4D_BUTTON_STATUS_PRESSED_MASK;
455 *(pBtn->
pStatus) &= ~D4D_BUTTON_STATUS_PRESSED_MASK;
463 D4D_BtnUnTouched(pMsg);
D4D_COLOR D4D_ObjectGetBckgColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current background color.
UnTouched message - is send when the screen is untouched.
#define D4D_OBJECT_F_FOCUSRECT
Object has an outlined rectangle.
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.
Mouse Left Button Click message - is send in case that mouse left click is detected on this object...
#define D4D_ALIGN_V_CENTER_MASK
The vertical center aligment option mask (for texts and also bitmaps).
D4D_BUTTON_STATUS * pStatus
void D4D_FillRect(D4D_POINT *ppt, D4D_SIZE *psz, D4D_COLOR color)
Function draw filled rectangle on the screen.
const D4D_BMP * pBmpNormal
Type definition of eGUI point structure.
#define D4D_OBJECT_F_BEVEL_RAISED
Object bevel border raised mask.
D4D_BTN_ON_CLICK OnClicked
D4D object messages structure.
D4D_OBJECT_DATA_PTR pData
Pointer on runtime object data.
const D4D_BMP * pBmpFocus
#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_OBJECT_INITFLAGS initFlags
The initializations object flags.
#define D4D_OBJECT_F_TABSTOP
Object can be focused.
Byte D4D_BMP_PROPERTIES
D4D_BMP_PROPERTIES type of image properties.
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 ...
Third quadrant <180-270)
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
Auto Touched message - is send when the object is still keep touch by touch screen driver ...
#define D4D_OBJECT_DRAWFLAGS_COMPLETE
Draw complete flag.
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_DEFSTR(str)
Macro that helps declare the strings in eGUI.
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.
#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)
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.
#define NULL
Type definition of null pointer.
D4D_TCHAR * pText
pointer to text array
D4D_STR_PROPERTIES * str_properties
pointer to string properties
D4D_COOR y
Coordination in axis Y.
D4D_BMP eGUI main image structure.
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.
void D4D_RRect(D4D_POINT *ppt, D4D_SIZE *psz, D4D_LINETYPE ltype, D4D_COLOR color, D4D_COOR radius)
Function draw rectangle on the screen with round corners.
#define D4D_FNT_PRTY_TRANSPARENT_MASK
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.
The object main structure type definition.
#define D4D_BEVEL_WIDTH
D4D_BEVEL_WIDTH constant declaration - can't be changed!
Draw message - is send when the object should be redrawed.
Lost Touch message - is send when the screen is still touch but the coordination leaves the original ...
Second quadrant <90-180)
#define D4D_OBJECT_F_BEVEL_DENTED
Object bevel border dented mask.
Fourth quadrant <270-360)
#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...
#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.
void D4D_FillQuadrant(D4D_POINT *pCenter, D4D_COOR radius, D4D_COLOR color, D4D_QUADRANT quadrant)
Function draw fill quadrant of circle on the screen.
Type definition of eGUI size structure.
Mouse Cursor Enter message - is send in case that mouse cursor enter to object area.
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.
#define D4D_OBJECT_F_BEVEL_MASK
Object bevel border mask.
Key Down message - is send when the object get new Key Down event.
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_COOR x
Coordination in axis X.
Kill Focus message - is send when the object is losing focus.
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.
Mouse Cursor Leave message - is send in case that mouse cursor leave the object area.
void D4D_DrawTextRRectTab(D4D_POINT *ppt, D4D_SIZE *psz, D4D_STRING *buffText, D4D_TAB *pTab, D4D_COLOR colorText, D4D_COLOR colorBkgd, D4D_COOR radius)
Function draw text with TAB function in rectangle with round corners.