71 } D4D_RADIOBUTTON_TMP_VAL;
73 #define _calc (*((D4D_RADIOBUTTON_TMP_VAL*)d4d_scratchPad))
89 if(!sizeBmpEnabled.
cx || !sizeBmpEnabled.
cy)
94 _calc.BmpGeom.sz = sizeBmpEnabled;
97 _calc.BmpGeom.pnt.x += tmp_BorderOffset;
98 _calc.BmpGeom.pnt.y += tmp_BorderOffset;
106 #if D4D_ROUND_CORNER_ENABLE != D4D_FALSE
222 *pStatus &= ~D4D_RADIOBUTTON_STATUS_PRESSED_MASK;
227 if(*pStatus & D4D_RADIOBUTTON_STATUS_CHECKED_MASK)
228 *pStatus &= ~D4D_RADIOBUTTON_STATUS_CHECKED_MASK;
256 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
257 static void D4D_RadioButtonTouched(
D4D_MESSAGE* pMsg)
268 if(*pStatus & D4D_RADIOBUTTON_STATUS_CHECKED_MASK)
269 *pStatus &= ~D4D_RADIOBUTTON_STATUS_CHECKED_MASK;
307 *pStatus &= ~D4D_RADIOBUTTON_STATUS_CHECKED_MASK;
353 if(pObjects[ix]->pObjFunc->strName == d4d_radioButtonSysFunc.
strName)
354 if(pObjects[ix] != pThis)
405 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
410 D4D_RadioButtonTouched(pMsg);
D4D_COLOR D4D_ObjectGetBckgColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current background color.
D4D_OBJECT * D4D_GetParentObject(D4D_OBJECT *pObject)
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).
struct D4D_SCREEN_S * pScreen
pointer to object screen owner - it is placed in RAM bacause one object could be used in multiply scr...
D4D_CLR_SCHEME_OBJ objectDepend
Sub structure of object non standard colors.
Type definition of eGUI point structure.
const D4D_OBJECT *const * pObjects
NULL-terminated array of objects (may lay in ROM)
D4D object messages structure.
#define D4D_GetMouseHoverObject()
D4D_OBJECT_DATA_PTR pData
Pointer on runtime object data.
#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.
#define D4D_DrawTextRect(ppt, psz, buffText, colorText, colorBkgd)
Function that draw text into defined rectangle on the screen.
#define D4D_CHECKBOX_TEXT_OFFSET
This is pixel count of check box text border offset. If not defined, it sets to 4 pixel as a default...
Byte D4D_BMP_PROPERTIES
D4D_BMP_PROPERTIES type of image properties.
D4D_CLR_SCHEME_CHECKB checkBox
The non standard colors of check box 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 ...
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
D4D_COLOR iconBckg
The checkbox background of icon.
#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.
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)
const D4D_BMP * pBmpChecked
Byte D4D_COOR
Type definition of eGUI coordination variables.
D4D_POINT position
Position on the screen/object.
#define D4D_OBJECT_USR_DATA_CHILD_IX
The relations object index to relation array for first child 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_Circle(D4D_POINT *pCenter, D4D_COOR r, D4D_LINETYPE ltype, D4D_COLOR color)
Function draw circle on the screen.
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.
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_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_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_RDBTN_ON_CHANGE OnChange
D4D_SIZE size
Size of the object.
const D4D_BMP * pBmpUnChecked
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.
Draw message - is send when the object should be redrawed.
#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...
D4D_OBJECT_RELATIONS pRelations
Relationship between the objects.
#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.
Type definition of eGUI size structure.
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.
D4D_SIZE D4D_GetBmpSize(const D4D_BMP *pBmp)
Function gets information about bitmap size.
Type definition of eGUI geometry structure.
D4D_TCHAR * strName
Object type (widget) name, it also could be used as a identifier of object type.
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.
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.
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.