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

📄 classwgui_1_1cresourcehandle.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>wGui::CResourceHandle class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; </center><hr><h1>wGui::CResourceHandle Class Reference</h1><code>#include &lt;<a class="el" href="wg__resource__handle_8h-source.html">wg_resource_handle.h</a>&gt;</code><p><p>Inheritance diagram for wGui::CResourceHandle:<p><center><img src="classwGui_1_1CResourceHandle.png" usemap="#wGui::CResourceHandle_map" border="0" alt=""></center><map name="wGui::CResourceHandle_map"><area href="classwGui_1_1CBitmapResourceHandle.html" alt="wGui::CBitmapResourceHandle" shape="rect" coords="108,56,315,80"><area href="classwGui_1_1CCursorResourceHandle.html" alt="wGui::CCursorResourceHandle" shape="rect" coords="434,56,641,80"><area href="classwGui_1_1CStringResourceHandle.html" alt="wGui::CStringResourceHandle" shape="rect" coords="651,56,858,80"><area href="classwGui_1_1CBitmapFileResourceHandle.html" alt="wGui::CBitmapFileResourceHandle" shape="rect" coords="0,112,207,136"><area href="classwGui_1_1CwgBitmapResourceHandle.html" alt="wGui::CwgBitmapResourceHandle" shape="rect" coords="217,112,424,136"><area href="classwGui_1_1CwgCursorResourceHandle.html" alt="wGui::CwgCursorResourceHandle" shape="rect" coords="434,112,641,136"><area href="classwGui_1_1CwgStringResourceHandle.html" alt="wGui::CwgStringResourceHandle" shape="rect" coords="651,112,858,136"></map><h2>Public Methods</h2><ul><li><a class="el" href="classwGui_1_1CResourceHandle.html#a0">CResourceHandle</a> (TResourceId resId)<li><a name="a1" doxytag="wGui::CResourceHandle::CResourceHandle"></a><a class="el" href="classwGui_1_1CResourceHandle.html#a1">CResourceHandle</a> (const CResourceHandle &amp;resHandle)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>resHandle</em>&nbsp;</td><td>An existing resource handle that will be cloned</td></tr></table></dl><br><br></em></font></dl><li><a name="a2" doxytag="wGui::CResourceHandle::~CResourceHandle"></a>virtual <a class="el" href="classwGui_1_1CResourceHandle.html#a2">~CResourceHandle</a> (void)<dl class="el"><dd><font size=-1><em>Standard destructor will decrement the refcount for the resource and will deallocate it if the refcount hits zero.<br><br></em></font></dl><li><a name="a3" doxytag="wGui::CResourceHandle::GetResourceId"></a>TResourceId <a class="el" href="classwGui_1_1CResourceHandle.html#a3">GetResourceId</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>The resource ID of the handle</dl><br><br></em></font></dl><li><a name="a4" doxytag="wGui::CResourceHandle::GetRefCount"></a>unsigned int <a class="el" href="classwGui_1_1CResourceHandle.html#a4">GetRefCount</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>The reference count of the handle</dl><br><br></em></font></dl></ul><h2>Protected Attributes</h2><ul><li><a name="n0" doxytag="wGui::CResourceHandle::m_ResourceId"></a>TResourceId <a class="el" href="classwGui_1_1CResourceHandle.html#n0">m_ResourceId</a><dl class="el"><dd><font size=-1><em>The resource ID for the handle.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>CResourceHandles are a basic smart handle for a resource pool It will handle reference counting, allocation, and freeing of the resource Classes derived from <a class="el" href="classwGui_1_1CResourceHandle.html">CResourceHandle</a> should not have any personal data members, any data should be held in a static map <p><p>Definition at line <a class="el" href="wg__resource__handle_8h-source.html#l00045">45</a> of file <a class="el" href="wg__resource__handle_8h-source.html">wg_resource_handle.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="wGui::CResourceHandle::CResourceHandle"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> wGui::CResourceHandle::CResourceHandle </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TResourceId&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>resId</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>CResourceHandles must be instantiated with a valid resource ID <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>resId</em>&nbsp;</td><td>The ID of the resource which the handle will represent </td></tr></table></dl><p>Definition at line <a class="el" href="wg__resource__handle_8cpp-source.html#l00038">38</a> of file <a class="el" href="wg__resource__handle_8cpp-source.html">wg_resource_handle.cpp</a>.<p>References <a class="el" href="wg__resource__handle_8h-source.html#l00066">m_ResourceId</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__resource__handle_8h-source.html">wg_resource_handle.h</a><li><a class="el" href="wg__resource__handle_8cpp-source.html">wg_resource_handle.cpp</a></ul><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:28 2003 for wGui by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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