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

📄 classwgui_1_1capplication.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<p>References <a class="el" href="wg__application_8h-source.html#l00180">m_ResourceHandlePool</a>.    </td>  </tr></table><a name="a12" doxytag="wGui::CApplication::ApplicationExit"></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"> void wGui::CApplication::ApplicationExit </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>iExitCode</em> = EXIT_SUCCESS          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This is called just before the application exits <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iExitCode</em>&nbsp;</td><td>The exit code to return, defaults to EXIT_SUCCESS </td></tr></table></dl><p>Definition at line <a class="el" href="wg__application_8cpp-source.html#l00272">272</a> of file <a class="el" href="wg__application_8cpp-source.html">wg_application.cpp</a>.<p>References <a class="el" href="wg__application_8h-source.html#l00168">m_bRunning</a>, and <a class="el" href="wg__application_8h-source.html#l00167">m_iExitCode</a>.<p>Referenced by <a class="el" href="wg__application_8cpp-source.html#l00402">HandleMessage()</a>.    </td>  </tr></table><a name="a16" doxytag="wGui::CApplication::EnableResourcePool"></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"> void wGui::CApplication::EnableResourcePool </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">bool&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>bEnable</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>The resource pool is used to keep wGui provided resources around even when there are no other handles begin kept by the user The internal wGui resources are automatically added to the pool if this is enabled when they are created The pool is enabled by default <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>bEnable</em>&nbsp;</td><td>If set to false, it will clear any current resource handles from the pool, and will disable the pool </td></tr></table></dl><p>Definition at line <a class="el" href="wg__application_8cpp-source.html#l00354">354</a> of file <a class="el" href="wg__application_8cpp-source.html">wg_application.cpp</a>.<p>References <a class="el" href="wg__application_8h-source.html#l00179">m_bResourcePoolEnabled</a>, and <a class="el" href="wg__application_8h-source.html#l00180">m_ResourceHandlePool</a>.    </td>  </tr></table><a name="a13" doxytag="wGui::CApplication::GetFontEngine"></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"> <a class="el" href="classwGui_1_1CFontEngine.html">CFontEngine</a> * wGui::CApplication::GetFontEngine </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">std::string&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>sFontFileName</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>unsigned char&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>iFontSize</em> = 12</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Creates a font engine A seperate font engine is created for each font file and font size <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>sFontFileName</em>&nbsp;</td><td>The font to use </td></tr><tr><td valign=top><em>iFontSize</em>&nbsp;</td><td>The size (in points) of the font, defaults to 12 </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>A pointer to the font engine, 0 if the font engine can't be loaded </dl><p>Definition at line <a class="el" href="wg__application_8cpp-source.html#l00288">288</a> of file <a class="el" href="wg__application_8cpp-source.html">wg_application.cpp</a>.<p>References <a class="el" href="wg__config__store_8cpp-source.html#l00035">wGui::CConfigStore::GetStringEntry()</a>, <a class="el" href="wg__application_8h-source.html#l00178">m_bHandleExceptionsInternally</a>, <a class="el" href="wg__application_8h-source.html#l00175">m_FontEngines</a>, and <a class="el" href="wg__application_8h-source.html#l00183">m_GlobalConfig</a>.<p>Referenced by <a class="el" href="wg__application_8cpp-source.html#l00163">Init()</a>.    </td>  </tr></table><a name="a19" doxytag="wGui::CApplication::GetGlobalConfig"></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"> virtual const <a class="el" href="classwGui_1_1CConfigStore.html">CConfigStore</a>&amp; wGui::CApplication::GetGlobalConfig </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the Global Configuration, which is read in from the wGui.conf file This Global config is read-only. Any changes should be made to the wGui.conf file outside of the app wGui will search directories for the wGui.conf file in the following order, and will include the settings from each: 1) &lt;system settings&gt; (for *nix this is probably /etc/wGui/, for windows systems this is c:\documents and settings\default user\application data\wGui) 2) ~/ (home directory, for Windows NT builds, this is c:\documents and settings&lt;username&gt;\application data\wGui) 3) Current Directory So any settings found in the current directory will override the settings in the global directory <dl compact><dt><b>Returns: </b></dt><dd>A const reference to the Global Configration </dl><p>Definition at line <a class="el" href="wg__application_8h-source.html#l00147">147</a> of file <a class="el" href="wg__application_8h-source.html">wg_application.h</a>.<p>References <a class="el" href="wg__application_8h-source.html#l00183">m_GlobalConfig</a>.    </td>  </tr></table><a name="a20" doxytag="wGui::CApplication::HandleMessage"></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"> bool wGui::CApplication::HandleMessage </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CMessage.html">CMessage</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pMessage</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><a class="el" href="classwGui_1_1CApplication.html">CApplication</a> will handle the APP_EXIT message, and will close the application on it's reciept <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pMessage</em>&nbsp;</td><td>A pointer the the message to handle </td></tr></table></dl><p>Implements <a class="el" href="classwGui_1_1CMessageClient.html#a2">wGui::CMessageClient</a>.<p>Definition at line <a class="el" href="wg__application_8cpp-source.html#l00402">402</a> of file <a class="el" href="wg__application_8cpp-source.html">wg_application.cpp</a>.<p>References <a class="el" href="wg__application_8cpp-source.html#l00272">ApplicationExit()</a>, and <a class="el" href="wg__message_8h-source.html#l00078">wGui::CMessage::MessageType()</a>.    </td>  </tr></table><a name="b0" doxytag="wGui::CApplication::HandleSDLEvent"></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"> void wGui::CApplication::HandleSDLEvent </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">SDL_Event&nbsp;</td>

⌨️ 快捷键说明

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