360 if(pFocused == pObject)
368 if(pObject == pFocused)
394 tmp_size = pParent->
size;
461 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
521 if(pObjects[i] == pObject)
630 if(pObjects[i] == pObject)
725 {
while(*(pChild + 1))
729 pLocObject = *pChild;
#define D4D_OBJECT_F_TOUCHENABLE
Object has enabled touch screen capability.
D4D_BOOL D4D_IsMineFocus(D4D_OBJECT *pObject)
Function find out if the object (including compounded objects) is focused.
D4D_OBJECT * D4D_GetParentObject(D4D_OBJECT *pObject)
D4D_OBJECT * d4d_pKeysCapturer
void D4D_InvalidateScreen(const D4D_SCREEN *pScreen, D4D_BOOL bComplete)
The function mark the screen and its abject as "redraw pending".
void D4D_EnableTabStop(D4D_OBJECT_PTR pObj, D4D_BOOL bEnable)
Function enables TabStop on the object.
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.
const D4D_OBJECT *const * pObjects
NULL-terminated array of objects (may lay in ROM)
D4D_COOR left
Margin of left side.
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_OBJECT * D4D_FindPreviousSiblingObject(D4D_OBJECT *pObject)
#define D4D_FALSE
This is definition of boolean operation value in eGUI - FALSE.
#define D4D_OBJECT_F_TABSTOP
Object can be focused.
#define D4D_OBJECT_F_REDRAWSTATE
D4D_OBJECT * D4D_GetLastObject(D4D_SCREEN *pScreen)
The function returns the pointer to last object in the screen.
D4D_OBJECT * D4D_FindNextParentSiblingObject(D4D_OBJECT *pObject)
#define D4D_LOG_EXOR(a, b)
Macro that do logical EX-OR on the input variables.
#define D4D_OBJECT_F_TIMETICK
Object will gets the time tick events.
#define D4D_OBJECT_F_ENABLED
Object after initialization is enabled.
#define D4D_TRUE
This is definition of boolean operation value in eGUI - TRUE.
D4D_BOOL D4D_ObjectCheckCoordinates(D4D_OBJECT *pThis, D4D_POINT point)
D4D_SCREEN_FLAGS flags
Screen behaviour flags.
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.
#define D4D_OBJECT_F_REDRAW
D4D_COOR D4D_GetScrHeaderSize(D4D_SCREEN *pScreen)
D4D_OBJECT_FLAGS flags
runtime object flags
D4D_OBJECT * D4D_FindNextSiblingObject(D4D_OBJECT *pObject)
D4D_OBJECT * D4D_FindNextObjectOnScreen(D4D_OBJECT *pObject)
D4D Driver private header file.
void D4D_SetObjectFlags(D4D_OBJECT *pObject, D4D_OBJECT_FLAGS flagsMask, D4D_BOOL alsoChildren)
void D4D_FocusNextObject(const D4D_SCREEN *pScreen, D4D_BOOL bInitialSearch)
The function change focus to the next object in the given screen.
void D4D_EnableObject(D4D_OBJECT_PTR pObj, D4D_BOOL bEnable)
Function enables object.
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_OBJECT * D4D_FindPreviousObjectOnScreen(D4D_OBJECT *pObject)
LWord D4D_OBJECT_FLAGS
The object flags type. The masks are described here D4D OBJECT Defines masks of object behaviour flag...
#define D4D_OBJECT_USR_DATA_CHILD_IX
The relations object index to relation array for first child object.
D4D_COOR bottom
Margin of bottom side.
void D4D_ObjOnMessage(D4D_MESSAGE *pMsg)
void D4D_ShowObject(D4D_OBJECT_PTR pObject, D4D_BOOL bShow)
Function control visibility of object on screen.
D4D_COOR right
Margin of right side.
Byte d4d_scratchPad[D4D_SCRATCHPAD_SIZE]
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_OBJECT_USR_DATA userData
The pointer on user data container (user pointer and optionaly parent/children).
unsigned long LWord
Type definition of LWord (unsigned 32-bit).
D4D_COOR y
Coordination in axis Y.
D4D_SCREEN * D4D_GetActiveScreen(void)
Returns pointer to current active screen.
#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_SIZE size
Screen size (standard screen has full size of physical screen)
D4D_MSGID nMsgId
Type of message.
D4D_BOOL D4D_HasObjectChildren(D4D_OBJECT *pObject)
D4D_SIZE size
Size of the object.
D4D_OBJECT * D4D_FindPreviousParentSiblingObject(D4D_OBJECT *pObject)
#define D4D_OBJECT_USR_DATA_PARENT_IX
The relations object index to relation array for parent object.
D4D_BOOL D4D_IsVisible(D4D_OBJECT *pObject)
Function find out if the object is visible or not.
The object main structure type definition.
void D4D_CaptureKeys(D4D_OBJECT_PTR pObj)
Function switch on capturing the keys to objects.
#define D4D_BEVEL_WIDTH
D4D_BEVEL_WIDTH constant declaration - can't be changed!
void D4D_SetObjectScreenPointer(D4D_OBJECT *pObject, D4D_SCREEN *pScreen)
D4D_COOR cy
Size in axis Y (height)
void * D4D_GetUserPointer(D4D_OBJECT *pThis)
Function return the object user data.
D4D_OBJECT_RELATIONS pRelations
Relationship between the objects.
#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...
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.
Type definition of eGUI size structure.
D4D_OBJECT * D4D_FindNextObject(D4D_OBJECT *pObject, D4D_BOOL childrenAlso)
Kill Capture message - is send when the object is losing capture keys status.
void D4D_EnableTimeTicks(D4D_OBJECT_PTR pObj, D4D_BOOL bEnable)
Function enable or diasble receiving timeticks for an OBJECT.
The screen structure type. The main screen structure that contains all needed data to run the eGUI sc...
Set Capture message - is send when the object is getting capture keys status.
void D4D_InvalidateObject(D4D_OBJECT_PTR pObject, D4D_BOOL bComplete)
Function invalidate object to redraw on screen.
#define D4D_OBJECT_F_REDRAWC
D4D_MARGIN * pMargin
Object inner margin.
void D4D_SendMessage(D4D_MESSAGE *pMsg)
#define D4D_SCR_FINT_CHECKOBJECTS
void D4D_EnableTouchScreen(D4D_OBJECT_PTR pObj, D4D_BOOL bEnable, D4D_BOOL bFastTouch)
Function enables touchs screen capability and sets also mode of touch event.
struct D4D_SCREEN_S * pScreen
Pointer to screen who is receiver of this message.
#define D4D_SCR_F_BEVEL
The screen has bevel.
D4D_SIZE D4D_GetClientScreenSize(D4D_OBJECT *pObject)
The function return the real client size of object.
#define D4D_SCR_F_OUTLINE
The screen has out line.
D4D_COOR top
Margin of top side.
D4D_COOR x
Coordination in axis X.
D4D_BOOL D4D_IsEnabled(D4D_OBJECT *pObject)
Function find out if the object is enabled or not.
D4D_OBJECT * D4D_FindPreviousObject(D4D_OBJECT *pObject, D4D_BOOL childrenAlso)
D4D_OBJECT * D4D_GetCapturedObject(void)
Function returns the current keys capturing object pointer.