68 } D4D_CHECKBOX_TMP_VAL;
70 #define _calc (*((D4D_CHECKBOX_TMP_VAL*)d4d_scratchPad))
87 if(!sizeBmpEnabled.
cx || !sizeBmpEnabled.
cy)
92 _calc.BmpGeom.sz = sizeBmpEnabled;
95 _calc.BmpGeom.pnt.x += tmp_BorderOffset;
96 _calc.BmpGeom.pnt.y += tmp_BorderOffset;
104 #if D4D_ROUND_CORNER_ENABLE != D4D_FALSE
109 #if D4D_ROUND_CORNER_ENABLE != D4D_FALSE
155 if(tmp_size.
cy - 2 > 0)
226 *pStatus &= ~D4D_CHECKBOX_STATUS_PRESSED_MASK;
229 *pStatus &= ~D4D_CHECKBOX_STATUS_CHECKED_MASK;
258 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
269 *pStatus &= ~D4D_CHECKBOX_STATUS_CHECKED_MASK;
308 *pStatus &= ~D4D_CHECKBOX_STATUS_CHECKED_MASK;
372 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
377 D4D_CheckBoxTouched(pMsg);
D4D_COLOR D4D_ObjectGetBckgColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current background color.
void D4D_RBox(D4D_POINT *ppt, D4D_SIZE *psz, D4D_LINETYPE ltype, D4D_COLOR colorLine, D4D_COLOR colorFill, D4D_COOR radius)
Function draw filled rectangle with outline on the screen with round corners.
D4D_COLOR D4D_ObjectGetBckgFillColor(D4D_OBJECT *pObj)
Function return object current fill background color.
void D4D_CheckBoxOnMessage(D4D_MESSAGE *pMsg)
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).
D4D_CLR_SCHEME_OBJ objectDepend
Sub structure of object non standard colors.
Type definition of eGUI point structure.
void D4D_CheckBoxSetValue(D4D_OBJECT_PTR pThis, D4D_BOOL value)
Function Sets the the check box value.
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.
static void D4D_CheckBoxOnKeyUp(D4D_MESSAGE *pMsg)
#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_GET_CHECKBOX_STATUS(pObj)
#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.
#define D4D_GET_CHECKBOX(pObj)
#define D4D_CHECKBOX_STATUS_PRESSED_MASK
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.
static void D4D_CheckBoxOnKeyDown(D4D_MESSAGE *pMsg)
#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)
D4D_CHCKBX_ON_CHANGE OnChange
Byte D4D_COOR
Type definition of eGUI coordination variables.
#define D4D_CHECKBOX_STATUS_CHECKED_MASK
D4D_POINT position
Position on the screen/object.
const D4D_BMP * pBmpChecked
#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_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_COOR y
Coordination in axis Y.
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.
const D4D_OBJECT_SYS_FUNCTION d4d_checkBoxSysFunc
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.
static void D4D_CheckBoxOnDraw(D4D_MESSAGE *pMsg)
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.
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).
D4D_STRING * D4D_CheckBoxGetTextBuffer(D4D_OBJECT *pThis)
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_POINT position
Screen coordination on physical screen (standard screen has {0,0})
const D4D_BMP * pBmpUnChecked
#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.
static void D4D_CheckBoxKillFocus(D4D_MESSAGE *pMsg)
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.
void D4D_InvalidateObject(D4D_OBJECT_PTR pObject, D4D_BOOL bComplete)
Function invalidate object to redraw on screen.
static void D4D_CheckBoxValue2Coor(D4D_OBJECT *pThis)
D4D_BOOL D4D_CheckBoxGetValue(D4D_OBJECT_PTR pThis)
Function Gets the the check box value.
#define D4D_CHECKBOX_F_ICON_RECTANGLE
Enable the check box icon rectangle.
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_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.