MiniGUI API Reference (MiniGUI-Processes)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Data Structures | |
struct | _STIPPLE |
struct | _ARC |
Macros | |
#define | GetPenType(hdc) GetDCAttr (hdc, DC_ATTR_PEN_TYPE) |
Gets the pen type of a DC. More... | |
#define | SetPenType(hdc, type) SetDCAttr (hdc, DC_ATTR_PEN_TYPE, (DWORD) type) |
Sets the pen type of a DC to a new type. More... | |
#define | GetPenCapStyle(hdc) GetDCAttr (hdc, DC_ATTR_PEN_CAP_STYLE) |
Gets the pen cap style of a DC. More... | |
#define | SetPenCapStyle(hdc, style) SetDCAttr (hdc, DC_ATTR_PEN_CAP_STYLE, (DWORD) style) |
Sets the pen type of a DC to a new type. More... | |
#define | GetPenJoinStyle(hdc) GetDCAttr (hdc, DC_ATTR_PEN_JOIN_STYLE) |
Gets the pen join style of a DC. More... | |
#define | SetPenJoinStyle(hdc, style) SetDCAttr (hdc, DC_ATTR_PEN_JOIN_STYLE, (DWORD) style) |
Sets the pen type of a DC to a new type. More... | |
#define | GetPenWidth(hdc) GetDCAttr (hdc, DC_ATTR_PEN_WIDTH) |
Gets the pen width of a DC. More... | |
#define | SetPenWidth(hdc, width) SetDCAttr (hdc, DC_ATTR_PEN_WIDTH, (DWORD) width) |
Sets the pen width of a DC to a new width. More... | |
#define | GetBrushType(hdc) GetDCAttr (hdc, DC_ATTR_BRUSH_TYPE) |
Gets the brush type of a DC. More... | |
#define | SetBrushType(hdc, type) SetDCAttr (hdc, DC_ATTR_BRUSH_TYPE, (DWORD) type) |
Sets the brush type of a DC to a new type. More... | |
Typedefs | |
typedef struct _STIPPLE | STIPPLE |
typedef struct _ARC | ARC |
Enumerations |
Functions | |
MG_EXPORT void GUIAPI | SetPenDashes (HDC hdc, int dash_offset, const unsigned char *dash_list, int n) |
Sets the way dashed-lines are drawn. More... | |
MG_EXPORT void GUIAPI | SetBrushInfo (HDC hdc, const BITMAP *tile, const STIPPLE *stipple) |
Set the tile or stipple with the DC. More... | |
MG_EXPORT void GUIAPI | SetBrushOrigin (HDC hdc, int x, int y) |
Set the origin when using tiles or stipples with the DC. More... | |
MG_EXPORT void GUIAPI | LineEx (HDC hdc, int x1, int y1, int x2, int y2) |
Draws a line with the current pen in the DC hdc. More... | |
MG_EXPORT void GUIAPI | ArcEx (HDC hdc, int x, int y, int width, int height, int ang1, int ang2) |
Draws an arc with the current pen in a DC. More... | |
MG_EXPORT void GUIAPI | FillArcEx (HDC hdc, int x, int y, int width, int height, int ang1, int ang2) |
Fills an arc with the current brush in a DC. More... | |
MG_EXPORT void GUIAPI | PolyLineEx (HDC hdc, const POINT *pts, int nr_pts) |
Draws a polyline with the current pen in a DC. More... | |
MG_EXPORT void GUIAPI | PolyArcEx (HDC hdc, const ARC *arcs, int nr_arcs) |
Draws a polyarc with the current pen in a DC. More... | |
MG_EXPORT void GUIAPI | PolyFillArcEx (HDC hdc, const ARC *arcs, int nr_arcs) |
Fill a polyarc with the current brush in a DC. More... | |
MG_EXPORT BOOL GUIAPI | RoundRect (HDC hdc, int x0, int y0, int x1, int y1, int cw, int ch) |
Draw and fill a rectangle with rounded corners in a DC. More... | |
#define GetBrushType | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_BRUSH_TYPE) |
Gets the brush type of a DC.
hdc | The device context. |
#define GetPenCapStyle | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_PEN_CAP_STYLE) |
Gets the pen cap style of a DC.
hdc | The device context. |
#define GetPenJoinStyle | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_PEN_JOIN_STYLE) |
Gets the pen join style of a DC.
hdc | The device context. |
#define GetPenType | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_PEN_TYPE) |
Gets the pen type of a DC.
hdc | The device context. |
#define GetPenWidth | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_PEN_WIDTH) |
Gets the pen width of a DC.
hdc | The device context. |
Sets the brush type of a DC to a new type.
hdc | The device context. |
type | The new brush type. |
Sets the pen type of a DC to a new type.
hdc | The device context. |
style | The new pen cap style. |
Sets the pen type of a DC to a new type.
hdc | The device context. |
style | The new pen join style. |
Sets the pen type of a DC to a new type.
hdc | The device context. |
type | The new pen type. |
Sets the pen width of a DC to a new width.
hdc | The device context. |
width | The new pen width. |
enum BrushType |
DC brush types. Solid: Tiled: Stippled: OpaqueStippled:
enum PenType |
DC Line styles
enum PTCapStyle |
DC Line cap styles
enum PTJoinStyle |
void GUIAPI ArcEx | ( | HDC | hdc, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | ang1, | ||
int | ang2 | ||
) |
Draws an arc with the current pen in a DC.
This function draws an arc with the current pen in the DC hdc. The coordinates of the upper-left corner of the bounding rectanglecenter of the arc is (x, y), the bounding box of the arc is width wide and height high, and the degree of start angle and end angle are ang1 and ang2 respectively.
hdc | The device context. |
x | The x coordinate of the left edge of the bounding rectangle. |
y | The y coordinate of the left edge of the bounding rectangle. |
width | The width of the bounding box of the arc. |
height | The height of the bounding box of the arc. |
ang1 | The start angle of the arc, relative to the 3 o'clock position, counter-clockwise, in 1/64ths of a degree. |
ang2 | The end angle of the arc, relative to angle1, in 1/64ths of a degree. |
void GUIAPI FillArcEx | ( | HDC | hdc, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | ang1, | ||
int | ang2 | ||
) |
Fills an arc with the current brush in a DC.
This function fills an arc with the current brush in the DC hdc. The coordinates of the upper-left corner of the bounding rectanglecenter of the arc is (x, y), the bounding box of the arc is width wide and height high, and the degree of start angle and end angle are ang1 and ang2 respectively.
hdc | The device context. |
x | The x coordinate of the left edge of the bounding rectangle. |
y | The y coordinate of the left edge of the bounding rectangle. |
width | The width of the bounding box of the arc. |
height | The height of the bounding box of the arc. |
ang1 | The start angle of the arc, relative to the 3 o'clock position, counter-clockwise, in 1/64ths of a degree. |
ang2 | The end angle of the arc, relative to angle1, in 1/64ths of a degree. |
void GUIAPI LineEx | ( | HDC | hdc, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Draws a line with the current pen in the DC hdc.
This function draws a line with the current pen in the DC hdc. The line draws from (x1, y1) to (x2, y2).
hdc | The device context. |
x1 | x1,y1: The start point of the line. |
y1 | x1,y1: The start point of the line. |
x2 | x2,y2: The end point of the line. |
y2 | x2,y2: The end point of the line. |
Draws a polyarc with the current pen in a DC.
This function draws a polyarc with the current pen in the DC hdc.
hdc | The device context. |
arcs | The pointer to an ARC array which defines the arcs. |
nr_arcs | The number of the arcs. |
Fill a polyarc with the current brush in a DC.
This function fill a polyarc with the current brush in the DC hdc.
hdc | The device context. |
arcs | The pointer to an ARC array which defines the arcs. |
nr_arcs | The number of the arcs. |
Draws a polyline with the current pen in a DC.
This function draws a polyline with the current pen in the DC hdc.
hdc | The device context. |
pts | The pointer to the vertex array of the polyline. |
nr_pts | The number of the vertices. |
Draw and fill a rectangle with rounded corners in a DC.
This function draws a rectangle with rounded corners. The rectangle is outlined by using the current pen and filled by using the current brush in the DC hdc.
hdc | The device context. |
x0 | The x-coordinate of the upper-left corner of the rectangle. |
y0 | The y-coordinate of the upper-left corner of the rectangle. |
x1 | The x-coordinate of the lower-right corner of the rectangle. |
y1 | The y-coordinate of the lower-right corner of the rectangle. |
rw | The x-radius of the rounded corners. |
rh | The y-radius of the rounded corners. |
Set the tile or stipple with the DC.
hdc | The device context. |
tile | The tile bitmap. |
stipple | The stipple bitmap. |
void GUIAPI SetBrushOrigin | ( | HDC | hdc, |
int | x, | ||
int | y | ||
) |
Set the origin when using tiles or stipples with the DC.
Set the origin when using tiles or stipples with the DC. The tile or stipple will be aligned such that the upper left corner of the tile or stipple will coincide with this point.
hdc | The device context. |
x | The x-coordinate of the origin. |
y | The y-coordinate of the origin. |
void SetPenDashes | ( | HDC | hdc, |
int | dash_offset, | ||
const unsigned char * | dash_list, | ||
int | n | ||
) |
Sets the way dashed-lines are drawn.
Sets the way dashed-lines are drawn. Lines will be drawn with alternating on and off segments of the lengths specified in dash_list. The manner in which the on and off segments are drawn is determined by the pen type of the DC. (This can be changed with SetPenType function.)
hdc | The device context. |
dash_offset | The offset in the dash list. |
dash_list | The dash list. |
n | The lenght of the dash list. |