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

📄 classwgui_1_1cmenubase.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 2 页
字号:
          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>iPosition</em> = -1</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>Insert a menu item into the menu <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>MenuItem</em>&nbsp;</td><td>An <a class="el" href="structwGui_1_1SMenuItem.html">SMenuItem</a> struct that defines the menu item to add </td></tr><tr><td valign=top><em>iPosition</em>&nbsp;</td><td>The position to insert it at, -1 will insert it at the end, defaults to -1 </td></tr></table></dl><p>Reimplemented in <a class="el" href="classwGui_1_1CMenu.html#a2">wGui::CMenu</a>.<p>Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00070">70</a> of file <a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a>.<p>References <a class="el" href="wg__menu_8h-source.html#l00135">m_bCachedRectsValid</a>, <a class="el" href="wg__menu_8h-source.html#l00133">m_MenuItems</a>, <a class="el" href="wg__menu_8h-source.html#l00131">m_pFontEngine</a>, and <a class="el" href="wg__menu_8h-source.html#l00058">wGui::SMenuItem::sItemText</a>.    </td>  </tr></table><a name="a8" doxytag="wGui::CMenuBase::OnMouseButtonDown"></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::CMenuBase::OnMouseButtonDown </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>Point</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>unsigned int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>Button</em></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>This is called whenever the menu is clicked on by the mouse Only the topmost window that bounds the point will be called by the system <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Point</em>&nbsp;</td><td>The point where the mouse clicked </td></tr><tr><td valign=top><em>Button</em>&nbsp;</td><td>A bitfield indicating which button the window was clicked with </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>True if it's in the bounds of the menu </dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a25">wGui::CWindow</a>.<p>Reimplemented in <a class="el" href="classwGui_1_1CMenu.html#a4">wGui::CMenu</a>, and <a class="el" href="classwGui_1_1CPopupMenu.html#a9">wGui::CPopupMenu</a>.<p>Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00096">96</a> of file <a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00203">wGui::CWindow::m_ChildWindows</a>.    </td>  </tr></table><a name="a3" doxytag="wGui::CMenuBase::RemoveMenuItem"></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::CMenuBase::RemoveMenuItem </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>iPosition</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>Removes a menu item or a submenu <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iPosition</em>&nbsp;</td><td>The item to be removed </td></tr></table></dl><p>Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00078">78</a> of file <a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a>.<p>References <a class="el" href="wg__menu_8h-source.html#l00135">m_bCachedRectsValid</a>, <a class="el" href="wg__menu_8h-source.html#l00133">m_MenuItems</a>, and <a class="el" href="wg__window_8cpp-source.html#l00213">wGui::CWindow::StartDrawProc()</a>.    </td>  </tr></table><a name="a6" doxytag="wGui::CMenuBase::SetHighlightColor"></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::CMenuBase::SetHighlightColor </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>HighlightColor</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set the highlight color for the menu <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>HighlightColor</em>&nbsp;</td><td>The new color to use for highlighting </td></tr></table></dl><p>Definition at line <a class="el" href="wg__menu_8h-source.html#l00100">100</a> of file <a class="el" href="wg__menu_8h-source.html">wg_menu.h</a>.<p>References <a class="el" href="wg__menu_8h-source.html#l00138">m_HighlightColor</a>.    </td>  </tr></table><a name="b1" doxytag="wGui::CMenuBase::ShowActivePopup"></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 void wGui::CMenuBase::ShowActivePopup </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>ParentRect</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>BoundingRect</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected, pure virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Check to see where it will fit, then show the popup menu <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>ParentRect</em>&nbsp;</td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the dimensions of the item that is spawning the popup </td></tr><tr><td valign=top><em>BoundingRect</em>&nbsp;</td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the boundaries the popup has to fit in </td></tr></table></dl><p>Implemented in <a class="el" href="classwGui_1_1CMenu.html#b1">wGui::CMenu</a>, and <a class="el" href="classwGui_1_1CPopupMenu.html#b1">wGui::CPopupMenu</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__menu_8h-source.html">wg_menu.h</a><li><a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a></ul><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:27 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 + -