📄 group__region__fns.htm
字号:
<p>This function copies the region pointed to by <em>pSrcRgn</em> to the region pointed to by <em>pDstRgn</em>.<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>pDstRgn</em> </td><td>The destination region. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pSrcRgn</em> </td><td>The source region.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, otherwise FALSE.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>This function will empty the region <em>pDstRgn</em> first.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga5">EmptyClipRgn</a>, <a class="el" href="group__region__fns.htm#ga9">ClipRgnIntersect</a>, <a class="el" href="group__region__fns.htm#ga20">UnionRegion</a>, <a class="el" href="group__region__fns.htm#ga21">SubtractRegion</a>, <a class="el" href="group__region__fns.htm#ga22">XorRegion</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga9" doxytag="gdi.h::ClipRgnIntersect"></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"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI ClipRgnIntersect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> </td> <td class="mdname" nowrap> <em>pRstRgn</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> * </td> <td class="mdname" nowrap> <em>pRgn1</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> * </td> <td class="mdname" nowrap> <em>pRgn2</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Intersects two region. <p>This function gets the intersection of two regions pointed to by <em>pRgn1</em> and <em>pRgn2</em> respectively and puts the result to the region pointed to by <em>pRstRgn</em>.<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>pRstRgn</em> </td><td>The intersected result region. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pRgn1</em> </td><td>The first region. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pRgn2</em> </td><td>The second region.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, otherwise FALSE.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>If <em>pRgn1</em> does not intersected with <em>pRgn2</em>, the result region will be a emgty region.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga5">EmptyClipRgn</a>, <a class="el" href="group__region__fns.htm#ga8">ClipRgnCopy</a>, <a class="el" href="group__region__fns.htm#ga20">UnionRegion</a>, <a class="el" href="group__region__fns.htm#ga21">SubtractRegion</a>, <a class="el" href="group__region__fns.htm#ga22">XorRegion</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga6" doxytag="gdi.h::CreateClipRgn"></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"><a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> GUIAPI CreateClipRgn </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a clipping region. <p><dl compact><dt><b>Returns:</b></dt><dd>The pointer to the clip region.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga4">InitClipRgn</a>, <a class="el" href="group__region__fns.htm#ga5">EmptyClipRgn</a>, <a class="el" href="group__region__fns.htm#ga7">DestroyClipRgn</a>. </dd></dl> </td> </tr></table><a class="anchor" name="ga7" doxytag="gdi.h::DestroyClipRgn"></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">void GUIAPI DestroyClipRgn </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> </td> <td class="mdname1" valign="top" nowrap> <em>pRgn</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Empties and destroys a clipping region. <p>This function empties and destroys a clipping region pointed to by <em>pRgn</em>.<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>pRgn</em> </td><td>The pointer to the region.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga4">InitClipRgn</a>, <a class="el" href="group__region__fns.htm#ga6">CreateClipRgn</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga5" doxytag="gdi.h::EmptyClipRgn"></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">void GUIAPI EmptyClipRgn </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> </td> <td class="mdname1" valign="top" nowrap> <em>pRgn</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Empties a clipping region. <p>This function empties a clipping region pointed to by <em>pRgn</em>.<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>pRgn</em> </td><td>The pointer to the region.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga4">InitClipRgn</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga10" doxytag="gdi.h::GetClipRgnBoundRect"></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">void GUIAPI GetClipRgnBoundRect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> </td> <td class="mdname" nowrap> <em>pRgn</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="struct__RECT.htm">PRECT</a> </td> <td class="mdname" nowrap> <em>pRect</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the bounding rectangle of a region. <p>This function gets the bounding rect of the region pointed to by <em>pRgn</em>, and returns the rect in the rect pointed to by <em>pRect</em>.<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>pRgn</em> </td><td>The pointer to the region. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pRect</em> </td><td>The pointer to the result rect.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga12">IsEmptyClipRgn</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga23" doxytag="gdi.h::InitCircleRegion"></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"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI InitCircleRegion </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> </td> <td class="mdname" nowrap> <em>dst</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>r</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Initializes a region to be an enclosed circle. <p><dl compact><dt><b>Parameters:</b></dt><dd>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -