50 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
81 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
89 void D4D_ExtImgSetWorkPath(
D4D_CHAR* pPath)
101 D4D_CHAR* D4D_ExtImgGetWorkPath(
void)
148 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
168 #if (D4D_BMP_EXTSRC_SUPPORT_D4D == D4D_TRUE) && (D4D_EXTSRC_FILE_ENABLE == D4D_TRUE)
173 #if (D4D_BMP_EXTSRC_SUPPORT_BMP == D4D_TRUE) && (D4D_EXTSRC_FILE_ENABLE == D4D_TRUE)
189 #pragma mark Interface Bitmap Functions
214 if(d4d_extImgFunc[imgType].D4D_ImgDecDraw)
218 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
221 if(d4d_extImgFunc[imgType].D4D_ImgDecDraw)
249 tmp_size.
cx = tmp_bmpWidth;
252 tmp_size.
cy = tmp_bmpHeight;
255 if ((tmp_size.
cy < tmp_bmpHeight) || (tmp_size.
cx < tmp_bmpWidth))
268 tmp_pos.
y += (
D4D_COOR)(tmp_size.
cy - tmp_bmpHeight);
272 tmp_pos.
y += (
D4D_COOR)((tmp_size.
cy - tmp_bmpHeight) / 2);
280 tmp_pos.
x += (
D4D_COOR)(tmp_size.
cx - tmp_bmpWidth);
284 tmp_pos.
x += (
D4D_COOR)((tmp_size.
cx - tmp_bmpWidth) / 2);
288 if(tmp_size.
cx > tmp_bmpWidth)
303 if(tmp_size.
cy > tmp_bmpHeight)
324 #if D4D_ROUND_CORNER_ENABLE != D4D_FALSE
357 if ((tmp_size.
cy < tmp_bmpHeight) || (tmp_size.
cx < tmp_bmpWidth))
368 tmp_pos.
y = (
D4D_COOR)(ppt->
y + (tmp_size.
cy - tmp_bmpHeight));
372 tmp_pos.
y = (
D4D_COOR)(ppt->
y + ((tmp_size.
cy - tmp_bmpHeight) / 2));
385 tmp_pos.
x = (
D4D_COOR)(ppt->
x + (tmp_size.
cx - tmp_bmpWidth));
389 tmp_pos.
x = (
D4D_COOR)(ppt->
x + ((tmp_size.
cx - tmp_bmpWidth) / 2));
400 if((psz->
cx != tmp_bmpWidth) || (psz->
cy != tmp_bmpHeight))
427 if(d4d_extImgFunc[imgType].D4D_ImgDecGetSize)
431 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
434 if(d4d_extImgFunc[imgType].D4D_ImgDecGetSize)
459 if(d4d_extImgFunc[imgType].D4D_ImgDecGetWidth)
463 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
466 if(d4d_extImgFunc[imgType].D4D_ImgDecGetWidth)
490 if(d4d_extImgFunc[imgType].D4D_ImgDecGetHeight)
494 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
497 if(d4d_extImgFunc[imgType].D4D_ImgDecGetHeight)
521 if(d4d_extImgFunc[imgType].D4D_ImgDecGetHeader)
525 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
528 if(d4d_extImgFunc[imgType].D4D_ImgDecGetHeader)
D4D_COOR D4D_ImgDecIntD4DGetHeight(D4D_CHAR *pFileName)
#define D4D_ALIGN_V_CENTER_MASK
The vertical center aligment option mask (for texts and also bitmaps).
D4D_CHAR * D4D_StrCopy(register D4D_CHAR *sd, register const D4D_CHAR *ss)
The function copy string one string to other one (terminated by zero)
void D4D_FillRect(D4D_POINT *ppt, D4D_SIZE *psz, D4D_COLOR color)
Function draw filled rectangle on the screen.
const D4D_BMP d4d_mouseNoCursor
Type definition of eGUI point structure.
void D4D_ImgDecIntD4DDraw(D4D_COOR x, D4D_COOR y, D4D_CHAR *pFileName, D4D_BOOL greyScale, D4D_COOR radius)
void D4D_FillRectXY(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_COLOR color)
Function draw filled rectangle on the screen.
int D4D_GetBmpHeader(D4D_BMP *pBmp, void *pBuff, int max_size)
Function gets image file header.
#define D4D_ALIGN_H_RIGHT_MASK
The horizontal right aligment option mask (for texts and also bitmaps).
Byte D4D_BMP_PROPERTIES
D4D_BMP_PROPERTIES type of image properties.
D4D_COOR D4D_ImgDecExtD4DGetHeight(D4D_CHAR *pFileName)
D4D_COOR D4D_ImgDecBmpGetWidth(D4D_CHAR *pFileName)
void D4D_ImgDecBmpDraw(D4D_COOR x, D4D_COOR y, D4D_CHAR *pFileName, D4D_BOOL greyScale, D4D_COOR radius)
External memory eGUI format of image.
D4D_COOR D4D_ImgDecIntD4DGetWidth(D4D_CHAR *pFileName)
D4D Driver main header file.
D4D_CHAR * D4D_GetFileExtension(D4D_CHAR *pFileName)
D4D_COOR D4D_GetBmpHeight(const D4D_BMP *pBmp)
Function gets information about bitmap height.
void D4D_DrawBmpRect(D4D_POINT *ppt, D4D_SIZE *psz, const D4D_BMP *pBmp, D4D_BMP_PROPERTIES bmpProp, D4D_COLOR colorBkgd, D4D_BOOL greyScale)
Function draw the bitmap on the specify coordination into rectangle.
D4D_EXTIMG_FUNC API structure for eGUI image decoders.
int D4D_ImgDecExtD4DGetHeader(D4D_CHAR *pFileName, void *pBuff, int max_size)
void(* D4D_ImgDecDraw)(D4D_COOR x, D4D_COOR y, D4D_CHAR *pFileName, D4D_BOOL greyScale, D4D_COOR radius)
Image draw function.
D4D_EXTIMG_TYPE D4D_GetImgSrcType(D4D_BMP *pBmp)
Function returns the type of image source.
#define D4D_FileOpen
Macro used as short cut to used File Open function defined by D4D_DECLARE_FILE_FUNCTIONS.
const D4D_SIZE d4d_size_zero
static const D4D_EXTIMG_FUNC d4d_extImgFunc[D4D_EXTIMG_ITEMS_CNT]
D4D Driver private header file.
D4D_COOR(* D4D_ImgDecGetWidth)(D4D_CHAR *pFileName)
Get image width function.
D4D_COOR cx
Size in axis X (width)
Byte D4D_COOR
Type definition of eGUI coordination variables.
D4D_COOR radius
Screen corner radius.
Just last item where is stored the count of the image decoder. Keep it on last position.
#define D4D_ALIGN_H_LEFT_MASK
The horizontal left aligment option mask (for texts and also bitmaps).
#define D4D_DrawRBmpRect(ppt,psz, pBmp, bmpProp, colorBkgd, greyScale, radius)
const void * pParam
Pointer to pallete to internal memory. In case of external source of image is used as a pointer to fi...
D4D_EXTIMG_TYPE
D4D_EXTIMG_TYPE eGUI supported image type enumeration.
D4D_COOR D4D_ImgDecBmpGetHeight(D4D_CHAR *pFileName)
D4D_SIZE(* D4D_ImgDecGetSize)(D4D_CHAR *pFileName)
Get image size function.
#define D4D_ALIGN_H_MASK
The horizontal aligment option mask (for texts and also bitmaps).
#define D4D_EXTSRC_BUFF_SIZE
This macro is used to specify size of buffer that is using when external file support is enabled...
D4D_COOR D4D_ImgDecExtD4DGetWidth(D4D_CHAR *pFileName)
#define NULL
Type definition of null pointer.
D4D_SIZE D4D_ImgDecIntD4DGetSize(D4D_CHAR *pFileName)
D4D_SIZE D4D_ImgDecBmpGetSize(D4D_CHAR *pFileName)
D4D_COOR(* D4D_ImgDecGetHeight)(D4D_CHAR *pFileName)
Get image height function.
D4D_COOR y
Coordination in axis Y.
D4D_BMP eGUI main image structure.
void D4D_DrawRBmpXY(D4D_COOR x, D4D_COOR y, const D4D_BMP *pBmp, D4D_BOOL greyScale, D4D_COOR radius)
Function draw the bitmap on the specify coordination.
Uknown image format - do nothing.
void D4D_ImgDecExtD4DDraw(D4D_COOR x, D4D_COOR y, D4D_CHAR *pFileName, D4D_BOOL greyScale, D4D_COOR radius)
int D4D_ImgDecBmpGetHeader(D4D_CHAR *pFileName, void *pBuff, int max_size)
#define D4D_IMG_WORK_PATH_DEFAULT
D4D_IMG_WORK_PATH_DEFAULT constant default declaration ("a:\\")
#define D4D_ALIGN_V_BOTTOM_MASK
The vertical bottom aligment option mask (for texts and also bitmaps).
int(* D4D_ImgDecGetHeader)(D4D_CHAR *pFileName, void *pBuff, int max_size)
Get image header function.
int D4D_ImgDecIntD4DGetHeader(D4D_CHAR *pFileName, void *pBuff, int max_size)
D4D_COOR D4D_GetBmpWidth(const D4D_BMP *pBmp)
Function gets information about bitmap width.
D4D_SIZE D4D_ImgDecExtD4DGetSize(D4D_CHAR *pFileName)
#define D4D_ALIGN_H_CENTER_MASK
The horizontal center aligment option mask (for texts and also bitmaps).
D4D_COOR cy
Size in axis Y (height)
#define D4D_ALIGN_V_MASK
The vertical aligment option mask (for texts and also bitmaps).
D4D_CHAR * D4D_StrCat(register D4D_CHAR *sd, register const D4D_CHAR *ss)
The function concatenate strings (terminated by zero)
const void * pData
Pointer to data to internal memory. In case of external source of image this must be NULL...
LWord D4D_BOOL
Type definition of eGUI boolean.
Internal memory eGUI format of image.
char D4D_CHAR
Type definition of eGUI ASCII character.
Type definition of eGUI size structure.
void D4D_ToUpper(D4D_CHAR *s)
The function convert all small alpha characters to upper in string(terminated by zero) ...
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.
int D4D_CompareStrings(const D4D_CHAR *s1, const D4D_CHAR *s2)
The function copare two strings (terminated by zero)
#define D4D_BMP_EXTSRC_SUPPORT_D4D_EXT
D4D_BMP_EXTSRC_SUPPORT_D4D_EXT constant default declaration.
External memory MicroSoft BMP format of image.
#define D4D_ALIGN_V_TOP_MASK
The vertical top aligment option mask (for texts and also bitmaps).
Byte d4d_extsrcBuffer[D4D_EXTSRC_BUFF_SIZE]
D4D driver - resistive touch screen driver function header file.
LWord D4D_COLOR
Type definition of eGUI color variables.
D4D_BOOL D4D_FileIsAbsolutePath(D4D_CHAR *pFileName)
void * D4D_FILEPTR
Type definition of eGUI file pointer.
D4D_COOR x
Coordination in axis X.
int D4D_StrLen(register const D4D_CHAR *s)
The function returns length of string terminated by zero.