McfGdi.h
2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef _mcfgdi_h_
#define _mcfgdi_h_
#include "McfCommon.h"
MColor McfGDI_GetTextColor(MVOID);
MINT McfGdi_SetTextColor(MBYTE nR, MBYTE nG, MBYTE nB);
MINT McfGdi_SetTextColor_Int(MColor rgb);
MColor McfGdi_MakeMColorFromRGB(MBYTE nR, MBYTE nG, MBYTE nB);
MINT McfGdi_GetRGBFromMColor(MBYTE *pR, MBYTE *pG, MBYTE *pB, MColor nColor);
MINT McfGdi_SetFont(MINT nFontSize, MINT nFontAttr);
MINT McfGdi_GetCharWidth(MVOID);
MINT McfGdi_GetCharHeight(MVOID);
MINT McfGdi_GetTextWidth(MWCHAR* pText);
MINT McfGdi_GetNTextWidth(MWCHAR* pText, MINT n);
MVOID McfGdi_GetTextWidthHeight(MWCHAR *pText, MINT* pWidth, MINT* pHeight);
MVOID McfGdi_GetNTextWidthHeight(MWCHAR *pText, MINT nCount, MINT* pWidth, MINT* pHeight);
MINT McfGdi_DrawText(MINT nX, MINT nY, const MWCHAR* pcwszStr);
MINT McfGdi_DrawTextN(MINT nX, MINT nY, const MWCHAR* pcwszStr, MINT nLen);
MVOID McfGdi_DrawPoint(MINT nX, MINT nY, MColor pixel_color);
MVOID McfGdi_DrawRect(MINT nX1, MINT nY1, MINT nX2, MINT nY2,MColor frame_color);
MVOID McfGdi_FillRect(MINT nX1, MINT nY1, MINT nX2, MINT nY2, MColor rect_color);
MVOID McfGdi_DrawFrameRect(MINT nX1, MINT nY1, MINT nX2, MINT nY2, MColor rect_color, MColor frame_color);
MVOID McfGdi_DrawLine(MINT nX1, MINT nY1, MINT nX2, MINT nY2, MColor line_color);
MINT McfGdi_GetScrWidth(MVOID);
MINT McfGdi_GetScrHeight(MVOID);
MVOID McfGdi_BeginDraw(MVOID);
MVOID McfGdi_EndDraw(MVOID);
MBYTE* McfGdi_GetBufferPtr(MVOID);
MColor McfGdi_GetPixel(MINT nX, MINT nY);
MVOID McfGdi_PushClip(MVOID);
MVOID McfGdi_PopClip(MVOID);
MVOID McfGdi_SetClip(MINT nX1, MINT nY1, MINT nX2, MINT nY2);
MINT McfGdi_GetClip(MINT* pX, MINT* pY, MINT* pX2, MINT* pY2);
MVOID McfGdi_ResetClip(MVOID);
MINT McfGdi_DrawImage(MINT nX, MINT nY, const MBYTE* pImgData, MUINT nDataSize);
MINT McfGdi_GetImageInfo(const MBYTE* pImageData, MUINT nDataSize, MImageInfo* pMImageInfo);
MVOID McfGdi_DisplayWarnning(MWCHAR *pMessage);
MVOID McfGdi_DisplayPopUp(MWCHAR *pMessage, MINT nTime);
MVOID McfGdi_StopDisplayPopUp(MVOID);
MBOOL McfGdi_IsTouchScreen(MVOID);
#endif //_MCR_GDI_H