|
mGPlus API Reference
v1.4.0
A MiniGUI component which provides support for advanced 2D graphics functions
|
Functions | |
| MGPLUS_EXPORT HPEN | MGPlusPenCreate (int width, ARGB rgba) |
| Create a pen. More... | |
| MGPLUS_EXPORT MPStatus | MGPlusPenSetColor (HPEN pen, ARGB rgba) |
| Set the pen color. More... | |
| MGPLUS_EXPORT MPStatus | MGPlusPenSetJoinStyle (HPEN pen, LINE_JOIN_E line_join) |
| Set the pen line join style. More... | |
| MGPLUS_EXPORT MPStatus | MGPlusPenSetCapStyle (HPEN pen, LINE_CAP_E line_cap) |
| Set the pen line cap style. More... | |
| MGPLUS_EXPORT MPStatus | MGPlusPenSetDashes (HPEN pen, int dash_phase, const unsigned char *dash_list, int dash_len) |
| Set the pen dashes. More... | |
| MGPLUS_EXPORT MPStatus | MGPlusPenSetWidth (HPEN pen, int width) |
| Set the pen width. More... | |
| MGPLUS_EXPORT MPStatus | MGPlusPenDelete (HPEN pen) |
| Delete a pen. More... | |
MGPlus maintains some pen defines and operations
Create a pen.
This function creates a pen.
| width | The width of the pen. |
| rgba | The rgba of the pen. |
Delete a pen.
This function deletes a pen.
| pen | The pen pointer. |
| MPStatus MGPlusPenSetCapStyle | ( | HPEN | pen, |
| LINE_CAP_E | line_join | ||
| ) |
Set the pen line cap style.
This function sets the pen line cap style.
| pen | The pen. |
| line_join | The line cap style of the pen. |
Set the pen color.
This function sets the pen color.
| pen | The pen. |
| rgba | The rgba of the pen. |
| MPStatus MGPlusPenSetDashes | ( | HPEN | pen, |
| int | dash_phase, | ||
| const unsigned char * | dash_list, | ||
| int | dash_len | ||
| ) |
Set the pen dashes.
This function sets the pen dash line style.
| pen | The pen. |
| dash_phase | The dash phase of pen. |
| dash_list | The dash vector value. |
| dash_len | The length of vector. |
| MPStatus MGPlusPenSetJoinStyle | ( | HPEN | pen, |
| LINE_JOIN_E | line_cap | ||
| ) |
Set the pen line join style.
This function sets the pen join style.
| pen | The pen. |
| line_cap | The line join style of the pen. |
Set the pen width.
This function sets the pen width.
| pen | The pen. |
| width | The width of the pen. |
1.8.11