69 #define _calc (*((D4D_ICON_TMP_VAL*)d4d_scratchPad))
162 if(pData->
index == index)
172 pData->
index = index;
212 #if D4D_ICON_ENABLE_ANIMATION == D4D_TRUE
292 #if D4D_ICON_ENABLE_ANIMATION == D4D_TRUE
312 #if D4D_ICON_ENABLE_ANIMATION == D4D_TRUE
D4D_COLOR D4D_ObjectGetBckgColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current background color.
D4D_COLOR D4D_ObjectGetForeColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current fore color.
void D4D_IconOnMessage(D4D_MESSAGE *pMsg)
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_ICON_ON_CHANGE OnValueChanged
#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.
#define D4D_DrawTextRect(ppt, psz, buffText, colorText, colorBkgd)
Function that draw text into defined rectangle on the screen.
Byte D4D_BMP_PROPERTIES
D4D_BMP_PROPERTIES type of image properties.
D4D_FONT fontId
index of used font
Time Tick Occur message - is send with each time tick to object.
#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_OBJECT_FLAGS flags
runtime object flags
#define D4D_OBJECT_DRAWFLAGS_COMPLETE
Draw complete flag.
const D4D_ICON_BMPS *const * pBmpX
D4D Driver private header file.
#define D4D_GET_ICON(pObj)
#define D4D_DEFSTR(str)
Macro that helps declare the strings in eGUI.
D4D_COOR cx
Size in axis X (width)
void D4D_IconAnimationStart(D4D_OBJECT_PTR pThis)
Function starts the animation of icon.
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.
static void D4D_IconValue2Coor(D4D_OBJECT *pThis)
D4D_TCHAR * pText
pointer to text array
D4D_COOR y
Coordination in axis Y.
#define D4D_OBJECT_F_NOTINIT
D4D_MSGID nMsgId
Type of message.
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).
D4D_ICON_INDEX D4D_IconGetIndex(D4D_OBJECT_PTR pThis)
Function returns current visible bitmap index.
#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.
Byte D4D_ICON_INDEX
This is icon index variable, it used in API functions to choose the active icon in the list...
D4D_COOR D4D_GetTextWidth(D4D_FONT ix, D4D_TCHAR *pText)
The function returns width of text in pixels.
D4D_STRING * D4D_IconGetTextBuffer(D4D_OBJECT *pThis)
D4D_BOOL animationEnabled
D4D_OBJECT_DRAWFLAGS draw
Contains draw flags - is valid with D4D_MSG_DRAW and D4D_MSG_DRAWDONE message.
void D4D_EnableTimeTicks(D4D_OBJECT_PTR pObj, D4D_BOOL bEnable)
Function enable or diasble receiving timeticks for an OBJECT.
void D4D_IconAnimationStop(D4D_OBJECT_PTR pThis)
Function stops the animation of icon.
#define D4D_ICON_ANIMATION_TICK_COUNTER
This is icon animation time tick timeout (in ticks of eGUI time ticks - D4D_TimeTickPut), it can be changed in runtime. If not defined, it sets to ( 4 ) as a default.
static void D4D_IconOnDraw(D4D_MESSAGE *pMsg)
Type definition of eGUI geometry structure.
#define D4D_ALIGN_V_TOP_MASK
The vertical top aligment option mask (for texts and also bitmaps).
D4D_ICON_INDEX D4D_IconGetBmpCount(D4D_OBJECT_PTR pThis)
Function returns the icon bitmap count.
const D4D_OBJECT_SYS_FUNCTION d4d_iconSysFunc
void D4D_InvalidateObject(D4D_OBJECT_PTR pObject, D4D_BOOL bComplete)
Function invalidate object to redraw on screen.
Byte D4D_OBJECT_DRAWFLAGS
Drawing object flags type, handled to object in D4D_MSG_DRAW events.
void D4D_IconSetIndex(D4D_OBJECT_PTR pThis, D4D_ICON_INDEX index)
Function sets the new bitmap of icon by icon index.
LWord D4D_COLOR
Type definition of eGUI color variables.
void D4D_IconAnimationSetCounts(D4D_OBJECT_PTR pThis, Word cnt)
Function sets the time tick tresholds for animation speed.
struct D4D_SCREEN_S * pScreen
Pointer to screen who is receiver of this message.
void D4D_IconChangeIndex(D4D_OBJECT_PTR pThis, sByte incr)
Function sets the new bitmap of icon by icon index difference.
D4D_FONT_SIZE D4D_GetFontHeight(D4D_FONT ix)
unsigned short Word
Type definition of Word (unsigned 16-bit).
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.