MiniGUI API Reference (MiniGUI-Threads)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Macros | |
#define | GetBkColor(hdc) GetDCAttr (hdc, DC_ATTR_BK_COLOR) |
Gets the background color of a DC. More... | |
#define | GetBkMode(hdc) GetDCAttr (hdc, DC_ATTR_BK_MODE) |
Gets the background mode of a DC. More... | |
#define | GetPenColor(hdc) GetDCAttr (hdc, DC_ATTR_PEN_COLOR) |
Gets the pen color of a DC. More... | |
#define | GetBrushColor(hdc) GetDCAttr (hdc, DC_ATTR_BRUSH_COLOR) |
Gets the brush color of a DC. More... | |
#define | GetTextColor(hdc) GetDCAttr (hdc, DC_ATTR_TEXT_COLOR) |
Gets the text color of a DC. More... | |
#define | GetTabStop(hdc) GetDCAttr (hdc, DC_ATTR_TAB_STOP) |
Gets the tabstop value of a DC. More... | |
#define | SetBkColor(hdc, color) SetDCAttr (hdc, DC_ATTR_BK_COLOR, (DWORD) color) |
Sets the background color of a DC to a new value. More... | |
#define | SetBkMode(hdc, mode) SetDCAttr (hdc, DC_ATTR_BK_MODE, (DWORD) mode) |
Sets the background color of a DC to a new mode. More... | |
#define | SetPenColor(hdc, color) SetDCAttr (hdc, DC_ATTR_PEN_COLOR, (DWORD) color) |
Sets the pen color of a DC to a new value. More... | |
#define | SetBrushColor(hdc, color) SetDCAttr (hdc, DC_ATTR_BRUSH_COLOR, (DWORD) color) |
Sets the brush color of a DC to a new value. More... | |
#define | SetTextColor(hdc, color) SetDCAttr (hdc, DC_ATTR_TEXT_COLOR, (DWORD) color) |
Sets the text color of a DC to a new value. More... | |
#define | SetTabStop(hdc, value) SetDCAttr (hdc, DC_ATTR_TAB_STOP, (DWORD) value) |
Sets the tabstop of a DC to a new value. More... | |
Functions | |
MG_EXPORT Uint32 GUIAPI | GetDCAttr (HDC hdc, int attr) |
Gets a specified attribute value of a DC. More... | |
MG_EXPORT Uint32 GUIAPI | SetDCAttr (HDC hdc, int attr, Uint32 value) |
Sets a specified attribute value of a DC. More... | |
MG_EXPORT int GUIAPI | GetRasterOperation (HDC hdc) |
Gets the raster operation of a DC. More... | |
MG_EXPORT int GUIAPI | SetRasterOperation (HDC hdc, int rop) |
Sets the raster operation of a DC to a new value. More... | |
#define GetBkColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_BK_COLOR) |
Gets the background color of a DC.
hdc | The device context. |
#define GetBkMode | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_BK_MODE) |
Gets the background mode of a DC.
hdc | The device context. |
BM_TRANSPARENT | Indicate that reserve the background untouched when drawing text. |
BM_OPAQUE | Indicate that erase the background with background color when drawing text. |
#define GetBrushColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_BRUSH_COLOR) |
Gets the brush color of a DC.
hdc | The device context. |
#define GetPenColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_PEN_COLOR) |
Gets the pen color of a DC.
hdc | The device context. |
#define GetTabStop | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_TAB_STOP) |
Gets the tabstop value of a DC.
hdc | The device context. |
#define GetTextColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_TEXT_COLOR) |
Gets the text color of a DC.
hdc | The device context. |
Sets the background color of a DC to a new value.
hdc | The device context. |
color | The new background color (pixel value). |
Sets the background color of a DC to a new mode.
hdc | The device context. |
mode | The new background mode, be can one of the following values: - BM_TRANSPARENT\n Indicate that reserve the background untouched when drawing text. - BM_OPAQUE\n Indicate that erase the background with background color when drawing text. |
Sets the brush color of a DC to a new value.
hdc | The device context. |
color | The new brush color (pixel value). |
Sets the pen color of a DC to a new value.
hdc | The device context. |
color | The new pen color (pixel value). |
Sets the tabstop of a DC to a new value.
hdc | The device context. |
value | The new tabstop value in pixels. |
Sets the text color of a DC to a new value.
hdc | The device context. |
color | The new text color (pixel value). |
Gets a specified attribute value of a DC.
This function retrieves a specified attribute value of the DC hdc.
hdc | The device context. |
attr | The attribute to be retrieved, can be one of the following values: - DC_ATTR_BK_COLOR\n Background color. - DC_ATTR_BK_MODE\n Background mode. - DC_ATTR_PEN_TYPE\n Pen type. - DC_ATTR_PEN_CAP_STYLE\n Cap style of pen. - DC_ATTR_PEN_JOIN_STYLE\n Join style of pen. - DC_ATTR_PEN_COLOR\n Pen color. - DC_ATTR_BRUSH_TYPE\n Brush type. - DC_ATTR_BRUSH_COLOR\n Brush color. - DC_ATTR_TEXT_COLOR\n Text color. - DC_ATTR_TAB_STOP\n Tabstop width. - DC_ATTR_CHAR_EXTRA\n Intercharacter spacing for the DC. - DC_ATTR_ALINE_EXTRA\n Spacing above line for the DC. - DC_ATTR_BLINE_EXTRA\n Spacing bellow line for the DC. - DC_ATTR_MAP_MODE\n mode of a DC. - DC_ATTR_TEXT_ALIGN\n Text-alignment flags of a DC. |
int GUIAPI GetRasterOperation | ( | HDC | hdc | ) |
Gets the raster operation of a DC.
This function gets the raster operation of the DC hdc.
hdc | The device context. |
ROP_SET | Set to the new pixel value, erase original pixel on the surface. |
ROP_AND | AND'd the new pixel value with the original pixel on the surface. |
ROP_OR | OR'd the new pixel value with the original pixel on the surface. |
ROP_XOR | XOR'd the new pixel value with the original pixel on the surface. |
ROP_COMPOSITE | call default color composition the new pixel value with the original pixel on the surface. |
ROP_COMP_USER | User defined color composition operations. |
Sets a specified attribute value of a DC.
This function sets a specified attribute value of the DC hdc.
hdc | The device context. |
attr | The attribute to be set. |
value | The attribute value. |
int GUIAPI SetRasterOperation | ( | HDC | hdc, |
int | rop | ||
) |
Sets the raster operation of a DC to a new value.
This function sets the raster operation of the DC hdc to the new value rop.
hdc | The device context. |
rop | The new raster operation, can be one of the following values: - ROP_SET\n Set to the new pixel value, erase original pixel on the surface. - ROP_AND\n AND'd the new pixel value with the original pixel on the surface. - ROP_OR\n OR'd the new pixel value with the original pixel on the surface. - ROP_XOR\n XOR'd the new pixel value with the original pixel on the surface. - ROP_COMPOSITE\n call default color composition operators the new pixel value with the original pixel on the surface. - ROP_COMP_USER\n call user defined color composition operators the new pixel value with the original pixel on the surface. |