MiniGUI API Reference (MiniGUI-Processes)
v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Macros | |
#define | GetBkColor(hdc) GetDCAttr (hdc, DC_ATTR_BK_COLOR) |
Get the background color of a DC. More... | |
#define | GetBkMode(hdc) GetDCAttr (hdc, DC_ATTR_BK_MODE) |
Get the background mode of a DC. More... | |
#define | GetPenColor(hdc) GetDCAttr (hdc, DC_ATTR_PEN_COLOR) |
Get the pen color of a DC. More... | |
#define | GetBrushColor(hdc) GetDCAttr (hdc, DC_ATTR_BRUSH_COLOR) |
Get the brush color of a DC. More... | |
#define | GetTextColor(hdc) GetDCAttr (hdc, DC_ATTR_TEXT_COLOR) |
Get the text color of a DC. More... | |
#define | GetTabStop(hdc) GetDCAttr (hdc, DC_ATTR_TAB_STOP) |
Get the tabstop value of a DC. More... | |
#define | SetBkColor(hdc, color) SetDCAttr (hdc, DC_ATTR_BK_COLOR, (DWORD) color) |
Set the background color of a DC to a new value. More... | |
#define | SetBkMode(hdc, mode) SetDCAttr (hdc, DC_ATTR_BK_MODE, (DWORD) mode) |
Set the background color of a DC to a new mode. More... | |
#define | SetPenColor(hdc, color) SetDCAttr (hdc, DC_ATTR_PEN_COLOR, (DWORD) color) |
Set the pen color of a DC to a new value. More... | |
#define | SetBrushColor(hdc, color) SetDCAttr (hdc, DC_ATTR_BRUSH_COLOR, (DWORD) color) |
Set the brush color of a DC to a new value. More... | |
#define | SetTextColor(hdc, color) SetDCAttr (hdc, DC_ATTR_TEXT_COLOR, (DWORD) color) |
Set the text color of a DC to a new value. More... | |
#define | SetTabStop(hdc, value) SetDCAttr (hdc, DC_ATTR_TAB_STOP, (DWORD) value) |
Set the tabstop of a DC to a new value. More... | |
Functions | |
MG_EXPORT Uint32 GUIAPI | GetDCAttr (HDC hdc, int attr) |
Get a specified attribute value of a DC. More... | |
MG_EXPORT Uint32 GUIAPI | SetDCAttr (HDC hdc, int attr, Uint32 value) |
Set a specified attribute value of a DC. More... | |
MG_EXPORT int GUIAPI | GetRasterOperation (HDC hdc) |
Get the raster operation of a DC. More... | |
MG_EXPORT int GUIAPI | SetRasterOperation (HDC hdc, int rop) |
Set the raster operation of a DC to a new value. More... | |
#define GetBkColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_BK_COLOR) |
Get the background color of a DC.
hdc | The device context. |
#define GetBkMode | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_BK_MODE) |
Get 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) |
Get the brush color of a DC.
hdc | The device context. |
#define GetPenColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_PEN_COLOR) |
Get the pen color of a DC.
hdc | The device context. |
#define GetTabStop | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_TAB_STOP) |
Get the tabstop value of a DC.
hdc | The device context. |
#define GetTextColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_TEXT_COLOR) |
Get the text color of a DC.
hdc | The device context. |
Set the background color of a DC to a new value.
hdc | The device context. |
color | The new background color (pixel value). |
Set 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. |
Set the brush color of a DC to a new value.
hdc | The device context. |
color | The new brush color (pixel value). |
Set the pen color of a DC to a new value.
hdc | The device context. |
color | The new pen color (pixel value). |
Set the tabstop of a DC to a new value.
hdc | The device context. |
value | The new tabstop value in pixels. |
Set the text color of a DC to a new value.
hdc | The device context. |
color | The new text color (pixel value). |
Get 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 Inter-character spacing for the DC. - DC_ATTR_WORD_EXTRA\n Inter-word 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. - DC_ATTR_BIDI_FLAGS\n BIDI flags. |
int GUIAPI GetRasterOperation | ( | HDC | hdc | ) |
Get 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. |
Set 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 | ||
) |
Set 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. |