54 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
78 } D4D_SCRLBAR_TMP_VAL;
80 #define _calc (*((D4D_SCRLBAR_TMP_VAL*)d4d_scratchPad))
109 _calc.scrollSize.cy -= 2;
135 _calc.scrollSize.cx -= 2;
149 if(
_calc.scrollRadius)
184 tmp_point =
_calc.contentGeom.pnt;
191 tmp_size.
cx = tmp_size.
cy =
_calc.contentGeom.sz.cy;
209 tmp_size.
cx = tmp_size.
cy =
_calc.contentGeom.sz.cx;
254 for(i = 0; i < size; i++)
266 tmp_pointReal = tmp_point;
268 tmp_pointReal.
x += ppt->
x;
269 tmp_pointReal.
y += ppt->
y;
275 tmp_point.
x += (i+1) * 2;
280 tmp_pointReal = tmp_point;
282 tmp_pointReal.
x += ppt->
x;
283 tmp_pointReal.
y += ppt->
y;
291 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
374 if(maximum < minimum)
436 else if(position < pData->minimum)
509 #if defined(D4D_LLD_TCH) || defined(D4D_LLD_MOUSE)
525 D4D_ScrlBrOnTouch(pMsg, &touchClickPoint);
541 D4D_ScrlBrOnTouch(pMsg, &touchClickPoint);
D4D_COLOR D4D_ObjectGetBckgColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current background color.
Word D4D_MulDivUU16(Word u1, Word u2, Word d)
Simple proportion unsigned calculation - 16 bit.
#define D4D_KEY_SCANCODE_RIGHT
This macro is used to specify Key Scan Code RIGHT. If not defined, it sets to 0x4D as a default...
D4D_COLOR D4D_ObjectGetForeColor(D4D_OBJECT *pObj, D4D_OBJECT_DRAWFLAGS draw)
Function return object current fore color.
#define D4D_KEY_SCANCODE_UP
This macro is used to specify Key Scan Code UP. If not defined, it sets to 0x51 as a default...
void D4D_FillRect(D4D_POINT *ppt, D4D_SIZE *psz, D4D_COLOR color)
Function draw filled rectangle on the screen.
Type definition of eGUI point structure.
D4D object messages structure.
D4D_OBJECT_DATA_PTR pData
Pointer on runtime object data.
Mouse Whell Move Down message - is send in case that mouse whell move down is detected on this object...
#define D4D_FALSE
This is definition of boolean operation value in eGUI - FALSE.
#define D4D_OBJECT_F_TABSTOP
Object can be focused.
D4D_POINT D4D_SwapCoor(D4D_POINT point)
Function swap the point coordination.
D4D_POINT D4D_GetTouchScreenCoordinates(D4D_OBJECT *pObject)
Set Focus message - is send when the object is getting focus.
#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
Auto Touched message - is send when the object is still keep touch by touch screen driver ...
#define D4D_GetMouseCoordinates(pObject)
#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_KEY_SCANCODE_DOWN
This macro is used to specify Key Scan Code DOWN. If not defined, it sets to 0x50 as a default...
#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.
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_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.
void D4D_PutPixel(D4D_POINT *ppt, D4D_LINETYPE type, D4D_COLOR color)
Function puts one pixel on the 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.
D4D_DIRECTION
Type definition of eGUI direction type.
#define D4D_KEY_SCANCODE_LEFT
This macro is used to specify Key Scan Code LEFT. If not defined, it sets to 0x4B as a default...
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.
void D4D_CaptureKeys(D4D_OBJECT_PTR pObj)
Function switch on capturing the keys to objects.
Draw message - is send when the object should be redrawed.
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.
Type definition of eGUI size structure.
sLWord D4D_INDEX_DELTA
Type definition of eGUI general index variables for signed offsets.
Kill Capture message - is send when the object is losing capture keys status.
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.
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.
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.
void D4D_LineTo(D4D_POINT *ppt, D4D_LINETYPE ltype, D4D_COLOR color)
Function draw line on the screen.
LWord D4D_COLOR
Type definition of eGUI color variables.
struct D4D_SCREEN_S * pScreen
Pointer to screen who is receiver of this message.
Mouse Whell Move Up message - is send in case that mouse whell move up is detected on this object...
void D4D_MoveTo(D4D_POINT *ppt)
Function move logic cursor to new position.
unsigned short Word
Type definition of Word (unsigned 16-bit).
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_SCRLBR_ON_CHANGE OnChange