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

📄 classwgui_1_1cmenu.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 2 页
字号:
Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00288">288</a> of file <a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a>.<p>References <a class="el" href="wg__message_8h-source.html#l00078">wGui::CMessage::MessageType()</a>.    </td>  </tr></table><a name="a2" doxytag="wGui::CMenu::InsertMenuItem"></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::CMenu::InsertMenuItem </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="structwGui_1_1SMenuItem.html">SMenuItem</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>MenuItem</em>, </td>        </tr>        <tr>          <td></td>          <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 from <a class="el" href="classwGui_1_1CMenuBase.html#a2">wGui::CMenuBase</a>.<p>Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00215">215</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">wGui::CMenuBase::m_bCachedRectsValid</a>, <a class="el" href="wg__menu_8h-source.html#l00133">wGui::CMenuBase::m_MenuItems</a>, <a class="el" href="wg__menu_8h-source.html#l00131">wGui::CMenuBase::m_pFontEngine</a>, <a class="el" href="wg__menu_8h-source.html#l00060">wGui::SMenuItem::pPopup</a>, <a class="el" href="wg__menu_8h-source.html#l00237">wGui::CPopupMenu::SetParentMenu()</a>, and <a class="el" href="wg__menu_8h-source.html#l00058">wGui::SMenuItem::sItemText</a>.    </td>  </tr></table><a name="a4" doxytag="wGui::CMenu::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::CMenu::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_1CMenuBase.html#a8">wGui::CMenuBase</a>.<p>Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00252">252</a> of file <a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00104">wGui::CWindow::GetAncestor()</a>, <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00086">wGui::CMenuBase::HideActivePopup()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__window_8h-source.html#l00209">wGui::CWindow::m_bVisible</a>, <a class="el" href="wg__menu_8h-source.html#l00133">wGui::CMenuBase::m_MenuItems</a>, <a class="el" href="wg__menu_8h-source.html#l00136">wGui::CMenuBase::m_pActivePopup</a>, <a class="el" href="wg__window_8h-source.html#l00200">wGui::CWindow::m_pParentWindow</a>, <a class="el" href="wg__window_8h-source.html#l00191">wGui::CWindow::m_WindowRect</a>, <a class="el" href="classwGui_1_1CWindow.html#s2s1">wGui::CWindow::ROOT</a>, <a class="el" href="wg__menu_8cpp-source.html#l00341">ShowActivePopup()</a>, and <a class="el" href="wg__menu_8cpp-source.html#l00310">UpdateCachedRects()</a>.    </td>  </tr></table><a name="b1" doxytag="wGui::CMenu::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"> void wGui::CMenu::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, 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>Implements <a class="el" href="classwGui_1_1CMenuBase.html#b1">wGui::CMenuBase</a>.<p>Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00341">341</a> of file <a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00100">wGui::CRect::BottomLeft()</a>, <a class="el" href="wg__window_8cpp-source.html#l00104">wGui::CWindow::GetAncestor()</a>, <a class="el" href="wg__window_8h-source.html#l00062">wGui::CWindow::GetWindowRect()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__rect_8h-source.html#l00085">wGui::CRect::Left()</a>, <a class="el" href="wg__menu_8h-source.html#l00136">wGui::CMenuBase::m_pActivePopup</a>, <a class="el" href="classwGui_1_1CWindow.html#s2s0">wGui::CWindow::PARENT</a>, <a class="el" href="wg__rect_8h-source.html#l00088">wGui::CRect::Right()</a>, <a class="el" href="wg__window_8cpp-source.html#l00223">wGui::CWindow::SetNewParent()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00384">wGui::CPopupMenu::Show()</a>, and <a class="el" href="wg__rect_8h-source.html#l00127">wGui::CRect::Width()</a>.<p>Referenced by <a class="el" href="wg__menu_8cpp-source.html#l00252">OnMouseButtonDown()</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 + -