📄 group__clip__fns.htm
字号:
<!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: Clipping operations</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 Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Clipping operations<br><small>[<a class="el" href="group__gdi__fns.htm">GDI functions</a>]</small></h1><h2>Functions</h2><ul><li>MG_EXPORT void GUIAPI <a class="el" href="group__clip__fns.htm#ga0">ExcludeClipRect</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__RECT.htm">RECT</a> *prc)<dl class="el"><dd class="mdescRight">Excludes the specified rectangle from the current visible region of a DC. <a href="#ga0"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__clip__fns.htm#ga1">IncludeClipRect</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__RECT.htm">RECT</a> *prc)<dl class="el"><dd class="mdescRight">Includes the specified rectangle to the current visible region of a DC. <a href="#ga1"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__clip__fns.htm#ga2">PtVisible</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y)<dl class="el"><dd class="mdescRight">Checks whether a point is visible. <a href="#ga2"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__clip__fns.htm#ga3">ClipRectIntersect</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__RECT.htm">RECT</a> *prc)<dl class="el"><dd class="mdescRight">Intersects the specified rectangle with the visible region of the DC. <a href="#ga3"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__clip__fns.htm#ga4">SelectClipRect</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__RECT.htm">RECT</a> *prc)<dl class="el"><dd class="mdescRight">Sets the visible region of a DC to be a rectangle. <a href="#ga4"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__clip__fns.htm#ga5">SelectClipRegion</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *pRgn)<dl class="el"><dd class="mdescRight">Sets the visible region of a DC to be a region. <a href="#ga5"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__clip__fns.htm#ga6">GetBoundsRect</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__RECT.htm">RECT</a> *pRect)<dl class="el"><dd class="mdescRight">Retrieves the bounding rectangle of the current visible region of a DC. <a href="#ga6"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__clip__fns.htm#ga7">RectVisible</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__RECT.htm">RECT</a> *pRect)<dl class="el"><dd class="mdescRight">Checks whether the specified rectangle is visible. <a href="#ga7"></a><br></dl></ul><hr><h2>Function Documentation</h2><a class="anchor" name="ga3" doxytag="gdi.h::ClipRectIntersect"></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 ClipRectIntersect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</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>prc</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 the specified rectangle with the visible region of the DC. <p>This function intersects the specified rectangle <em>prc</em> with the visible region of the device context <em>hdc</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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>prc</em> </td><td>Pointer to the rectangle.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clip__fns.htm#ga1">IncludeClipRect</a>, <a class="el" href="group__clip__fns.htm#ga0">ExcludeClipRect</a>, <a class="el" href="group__region__fns.htm">Region operations</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga0" doxytag="gdi.h::ExcludeClipRect"></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 ExcludeClipRect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</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>prc</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>Excludes the specified rectangle from the current visible region of a DC. <p>This function excludes the specified rect <em>prc</em> from the current visible region of the device context <em>hdc</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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>prc</em> </td><td>The rectangle to be excluded.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clip__fns.htm#ga1">IncludeClipRect</a>, <a class="el" href="group__region__fns.htm">Region operations</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga6" doxytag="gdi.h::GetBoundsRect"></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 GetBoundsRect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</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">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>Retrieves the bounding rectangle of the current visible region of a DC. <p>This function retrieves the bounding rectangle of the current visible region of the specified device context <em>hdc</em>, and returned through <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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pRect</em> </td><td>The bounding rectangle will be returned through this buffer.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__region__fns.htm">Region operations</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga1" doxytag="gdi.h::IncludeClipRect"></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 IncludeClipRect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</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>prc</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>Includes the specified rectangle to the current visible region of a DC. <p>This function includes the specified rectangle <em>prc</em> to the current visible region of the device context <em>hdc</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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>prc</em> </td><td>The rectangle to be included.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clip__fns.htm#ga0">ExcludeClipRect</a>, <a class="el" href="group__region__fns.htm">Region operations</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga2" doxytag="gdi.h::PtVisible"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -