⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__draw__adv__2d__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Advanced 2-Dimension graphics functions.</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>Advanced 2-Dimension graphics functions.<br><small>[<a class="el" href="group__draw__fns.htm">General drawing functions</a>]</small></h1><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct__STIPPLE.htm">_STIPPLE</a><li>struct <a class="el" href="struct__ARC.htm">_ARC</a></ul><h2>Defines</h2><ul><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga12">GetPenType</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_TYPE)<dl class="el"><dd class="mdescRight">Gets the pen type of a DC.  <a href="#ga12"></a><br></dl><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga13">SetPenType</a>(hdc, type)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_PEN_TYPE, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) type)<dl class="el"><dd class="mdescRight">Sets the pen type of a DC to a new type.  <a href="#ga13"></a><br></dl><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga14">GetPenCapStyle</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_CAP_STYLE)<dl class="el"><dd class="mdescRight">Gets the pen cap style of a DC.  <a href="#ga14"></a><br></dl><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga15">SetPenCapStyle</a>(hdc, style)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_PEN_CAP_STYLE, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) style)<dl class="el"><dd class="mdescRight">Sets the pen type of a DC to a new type.  <a href="#ga15"></a><br></dl><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga16">GetPenJoinStyle</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_JOIN_STYLE)<dl class="el"><dd class="mdescRight">Gets the pen join style of a DC.  <a href="#ga16"></a><br></dl><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga17">SetPenJoinStyle</a>(hdc, style)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_PEN_JOIN_STYLE, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) style)<dl class="el"><dd class="mdescRight">Sets the pen type of a DC to a new type.  <a href="#ga17"></a><br></dl><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga18">GetPenWidth</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_WIDTH)<dl class="el"><dd class="mdescRight">Gets the pen width of a DC.  <a href="#ga18"></a><br></dl><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga19">SetPenWidth</a>(hdc, width)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_PEN_WIDTH, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) width)<dl class="el"><dd class="mdescRight">Sets the pen width of a DC to a new width.  <a href="#ga19"></a><br></dl><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga20">GetBrushType</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_BRUSH_TYPE)<dl class="el"><dd class="mdescRight">Gets the brush type of a DC.  <a href="#ga20"></a><br></dl><li>#define <a class="el" href="group__draw__adv__2d__fns.htm#ga21">SetBrushType</a>(hdc, type)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_BRUSH_TYPE, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) type)<dl class="el"><dd class="mdescRight">Sets the brush type of a DC to a new type.  <a href="#ga21"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="struct__STIPPLE.htm">_STIPPLE</a> <a class="el" href="group__draw__adv__2d__fns.htm#ga0">STIPPLE</a><li>typedef <a class="el" href="struct__ARC.htm">_ARC</a> <a class="el" href="group__draw__adv__2d__fns.htm#ga1">ARC</a></ul><h2>Enumerations</h2><ul><li>enum <a class="el" href="group__draw__adv__2d__fns.htm#ga22">PenType</a> { <a class="el" href="group__draw__adv__2d__fns.htm#gga22a445">PT_SOLID</a>, <a class="el" href="group__draw__adv__2d__fns.htm#gga22a446">PT_ON_OFF_DASH</a>, <a class="el" href="group__draw__adv__2d__fns.htm#gga22a447">PT_DOUBLE_DASH</a> }<li>enum <a class="el" href="group__draw__adv__2d__fns.htm#ga23">PTCapStyle</a> { <a class="el" href="group__draw__adv__2d__fns.htm#gga23a448">PT_CAP_BUTT</a>, <a class="el" href="group__draw__adv__2d__fns.htm#gga23a449">PT_CAP_ROUND</a>, <a class="el" href="group__draw__adv__2d__fns.htm#gga23a450">PT_CAP_PROJECTING</a> }<li>enum <a class="el" href="group__draw__adv__2d__fns.htm#ga24">PTJoinStyle</a> { <a class="el" href="group__draw__adv__2d__fns.htm#gga24a451">PT_JOIN_MITER</a>, <a class="el" href="group__draw__adv__2d__fns.htm#gga24a452">PT_JOIN_ROUND</a>, <a class="el" href="group__draw__adv__2d__fns.htm#gga24a453">PT_JOIN_BEVEL</a> }<li>enum <a class="el" href="group__draw__adv__2d__fns.htm#ga25">BrushType</a> { <a class="el" href="group__draw__adv__2d__fns.htm#gga25a454">BT_SOLID</a>, <a class="el" href="group__draw__adv__2d__fns.htm#gga25a455">BT_TILED</a>, <a class="el" href="group__draw__adv__2d__fns.htm#gga25a456">BT_STIPPLED</a>, <a class="el" href="group__draw__adv__2d__fns.htm#gga25a457">BT_OPAQUE_STIPPLED</a> }</ul><h2>Functions</h2><ul><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga2">SetPenDashes</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int dash_offset, const unsigned char *dash_list, int n)<dl class="el"><dd class="mdescRight">Sets the way dashed-lines are drawn.  <a href="#ga2"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga3">SetBrushInfo</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *tile, const <a class="el" href="struct__STIPPLE.htm">STIPPLE</a> *stipple)<dl class="el"><dd class="mdescRight">Set the tile or stipple with the DC.  <a href="#ga3"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga4">SetBrushOrigin</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y)<dl class="el"><dd class="mdescRight">Set the origin when using tiles or stipples with the DC.  <a href="#ga4"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga5">LineEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x1, int y1, int x2, int y2)<dl class="el"><dd class="mdescRight">Draws a line with the current pen in the DC <em>hdc</em>.  <a href="#ga5"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga6">ArcEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, int width, int height, int ang1, int ang2)<dl class="el"><dd class="mdescRight">Draws an arc with the current pen in a DC.  <a href="#ga6"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga7">FillArcEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, int width, int height, int ang1, int ang2)<dl class="el"><dd class="mdescRight">Fills an arc with the current brush in a DC.  <a href="#ga7"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga8">PolyLineEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__POINT.htm">POINT</a> *pts, int nr_pts)<dl class="el"><dd class="mdescRight">Draws a polyline with the current pen in a DC.  <a href="#ga8"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga9">PolyArcEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__ARC.htm">ARC</a> *arcs, int nr_arcs)<dl class="el"><dd class="mdescRight">Draws a polyarc with the current pen in a DC.  <a href="#ga9"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga10">PolyFillArcEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__ARC.htm">ARC</a> *arcs, int nr_arcs)<dl class="el"><dd class="mdescRight">Fill a polyarc with the current brush in a DC.  <a href="#ga10"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__draw__adv__2d__fns.htm#ga11">RoundRect</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x0, int y0, int x1, int y1, int cw, int ch)<dl class="el"><dd class="mdescRight">Draw and fill a rectangle with rounded corners in a DC.  <a href="#ga11"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga20" doxytag="gdi.h::GetBrushType"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define GetBrushType          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_BRUSH_TYPE)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the brush type of a DC. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>hdc</em>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The brush type of the DC <em>hdc</em>.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCAttr</em> for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__draw__adv__2d__fns.htm#ga25">BrushType</a>, <a class="el" href="group__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__draw__adv__2d__fns.htm#ga21">SetBrushType</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l03636">3636</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga14" doxytag="gdi.h::GetPenCapStyle"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define GetPenCapStyle          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_CAP_STYLE)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the pen cap style of a DC. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>hdc</em>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The pen cap style of the DC <em>hdc</em>.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCAttr</em> for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__draw__adv__2d__fns.htm#ga23">PTCapStyle</a>, <a class="el" href="group__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__draw__adv__2d__fns.htm#ga15">SetPenCapStyle</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l03497">3497</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga16" doxytag="gdi.h::GetPenJoinStyle"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define GetPenJoinStyle          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_JOIN_STYLE)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the pen join style of a DC. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>hdc</em>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The pen join style of the DC <em>hdc</em>.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCAttr</em> for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__draw__adv__2d__fns.htm#ga24">PTJoinStyle</a>, <a class="el" href="group__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__draw__adv__2d__fns.htm#ga17">SetPenJoinStyle</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l03546">3546</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga12" doxytag="gdi.h::GetPenType"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define GetPenType          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_TYPE)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the pen type of a DC. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>hdc</em>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The pen type of the DC <em>hdc</em>.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCAttr</em> for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__draw__adv__2d__fns.htm#ga22">PenType</a>, <a class="el" href="group__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__draw__adv__2d__fns.htm#ga13">SetPenType</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l03424">3424</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga18" doxytag="gdi.h::GetPenWidth"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define GetPenWidth          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_WIDTH)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the pen width of a DC. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>hdc</em>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The width of the current pen in the DC <em>hdc</em>.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCAttr</em> for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__draw__adv__2d__fns.htm#ga19">SetPenWidth</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l03574">3574</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -