📄 group__region__fns.htm
字号:
<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>heap</em> </td><td>The pointer to the initialized BLOCKHEAP structure. </td></tr> <tr><td valign="top"></td><td valign="top"><em>cr</em> </td><td>The pointer to the clipping rectangle to be freed.</td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>This macro is defined to call <em>BlockDataFree</em> function.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__block__heap__fns.htm#ga4">BlockDataFree</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l00664">664</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga29" doxytag="gdi.h::InitFreeClipRectList"></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 InitFreeClipRectList </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">heap, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>size </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> InitBlockDataHeap (heap, sizeof (<a class="el" href="struct__CLIPRECT.htm">CLIPRECT</a>), size)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Initializes the private block data heap used to allocate clipping rectangles. <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>heap</em> </td><td>The pointer to a BLOCKHEAP structure. </td></tr> <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>The size of the heap.</td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>This macro is defined to call <em>InitBlockDataHeap</em> function with <em>bd_size</em> set to <em>sizeof(CLIPRECT)</em>.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__block__heap__fns.htm#ga2">InitBlockDataHeap</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l00637">637</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga35" doxytag="gdi.h::IntersectRegion"></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 IntersectRegion ClipRgnIntersect </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Is an alias of <em>ClipRgnIntersect</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga9">ClipRgnIntersect</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l01018">1018</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga33" doxytag="gdi.h::UnionRectWithRegion"></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 UnionRectWithRegion AddClipRect </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Is an alias of <em>AddClipRect</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga13">AddClipRect</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l01004">1004</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="gdi.h::CLIPRECT"></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">typedef struct <a class="el" href="struct__CLIPRECT.htm">_CLIPRECT</a> <a class="el" href="struct__CLIPRECT.htm">CLIPRECT</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Clipping rectangle structure. </td> </tr></table><a class="anchor" name="ga2" doxytag="gdi.h::CLIPRGN"></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">typedef struct <a class="el" href="struct__CLIPRGN.htm">_CLIPRGN</a> <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Clipping region structure, alos used for general regions. </td> </tr></table><a class="anchor" name="ga3" doxytag="gdi.h::PCLIPRGN"></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">typedef <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> * <a class="el" href="struct__CLIPRGN.htm">PCLIPRGN</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Data type of the pointer to a CLIPRGN. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga2">CLIPRGN</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l00622">622</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga13" doxytag="gdi.h::AddClipRect"></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 AddClipRect </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>const <a class="el" href="struct__RECT.htm">RECT</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>Unions one rectangle to a region. <p>This function unions a rectangle to the 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> <tr><td valign="top"></td><td valign="top"><em>pRect</em> </td><td>The pointer to the rectangle.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, otherwise FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm#ga14">IntersectClipRect</a>, <a class="el" href="group__region__fns.htm#ga15">SubtractClipRect</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga8" doxytag="gdi.h::ClipRgnCopy"></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 ClipRgnCopy </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>pDstRgn</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>pSrcRgn</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>Copies one region to another.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -