📄 structwgui_1_1smenuitem.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::SMenuItem struct 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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> </center><hr><h1>wGui::SMenuItem Struct Reference</h1>The structure used to represent menu items. <a href="#_details">More...</a><p><code>#include <<a class="el" href="wg__menu_8h-source.html">wg_menu.h</a>></code><p><h2>Public Methods</h2><ul><li><a class="el" href="structwGui_1_1SMenuItem.html#a0">SMenuItem</a> (std::string <a class="el" href="structwGui_1_1SMenuItem.html#m0">sItemText</a>, long int <a class="el" href="structwGui_1_1SMenuItem.html#m1">iItemId</a>=0, <a class="el" href="classwGui_1_1CPopupMenu.html">CPopupMenu</a> *<a class="el" href="structwGui_1_1SMenuItem.html#m2">pPopup</a>=0)<li><a name="a1" doxytag="wGui::SMenuItem::SMenuItem"></a><a class="el" href="structwGui_1_1SMenuItem.html#a1">SMenuItem</a> (void)<dl class="el"><dd><font size=-1><em>Constructs a new Spacer Menu Item.<br><br></em></font></dl></ul><h2>Data Fields</h2><ul><li><a name="m0" doxytag="wGui::SMenuItem::sItemText"></a>std::string <a class="el" href="structwGui_1_1SMenuItem.html#m0">sItemText</a><dl class="el"><dd><font size=-1><em>The caption to display for the menu item.<br><br></em></font></dl><li><a name="m1" doxytag="wGui::SMenuItem::iItemId"></a>long int <a class="el" href="structwGui_1_1SMenuItem.html#m1">iItemId</a><dl class="el"><dd><font size=-1><em>An identifier for the menu item, which gets returned in the CTRL_LCLICK message.<br><br></em></font></dl><li><a name="m2" doxytag="wGui::SMenuItem::pPopup"></a><a class="el" href="classwGui_1_1CPopupMenu.html">CPopupMenu</a> * <a class="el" href="structwGui_1_1SMenuItem.html#m2">pPopup</a><dl class="el"><dd><font size=-1><em>A pointer to a popup menu, if the menu item is actually a submenu.<br><br></em></font></dl><li><a name="m3" doxytag="wGui::SMenuItem::bSpacer"></a>bool <a class="el" href="structwGui_1_1SMenuItem.html#m3">bSpacer</a><dl class="el"><dd><font size=-1><em>Indicates if this is a spacer. If true, pPopup, iItemId and sItemText are ignored.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>The structure used to represent menu items.<p><p>Definition at line <a class="el" href="wg__menu_8h-source.html#l00045">45</a> of file <a class="el" href="wg__menu_8h-source.html">wg_menu.h</a>.<hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="wGui::SMenuItem::SMenuItem"></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::SMenuItem::SMenuItem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">std::string </td> <td class="mdname" nowrap> <em>sItemText</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>long int </td> <td class="mdname" nowrap> <em>iItemId</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classwGui_1_1CPopupMenu.html">CPopupMenu</a> * </td> <td class="mdname" nowrap> <em>pPopup</em> = 0</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Constructs a new Menu Item <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>sItemText</em> </td><td>The text to display for the menu item </td></tr><tr><td valign=top><em>iItemId</em> </td><td>An identifier for the menu item, which gets returned in the CTRL_LCLICK message </td></tr><tr><td valign=top><em>pPopup</em> </td><td>A pointer to a popup menu, if the menu item is actually a submenu, this should be 0 if the item isn't a submenu (defaults to 0) </td></tr></table></dl><p>Definition at line <a class="el" href="wg__menu_8h-source.html#l00052">52</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#l00061">bSpacer</a>, <a class="el" href="wg__menu_8h-source.html#l00059">iItemId</a>, <a class="el" href="wg__menu_8h-source.html#l00060">pPopup</a>, and <a class="el" href="wg__menu_8h-source.html#l00058">sItemText</a>. </td> </tr></table><hr>The documentation for this struct was generated from the following file:<ul><li><a class="el" href="wg__menu_8h-source.html">wg_menu.h</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 + -