diff options
author | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
commit | 393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch) | |
tree | 6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/doc/html/classirr_1_1gui_1_1_i_g_u_i_context_menu.html | |
parent | Add a note about rasters suggested start up code. (diff) | |
download | SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2 SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz |
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/doc/html/classirr_1_1gui_1_1_i_g_u_i_context_menu.html | 876 |
1 files changed, 876 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/doc/html/classirr_1_1gui_1_1_i_g_u_i_context_menu.html b/libraries/irrlicht-1.8/doc/html/classirr_1_1gui_1_1_i_g_u_i_context_menu.html new file mode 100644 index 0000000..21394c3 --- /dev/null +++ b/libraries/irrlicht-1.8/doc/html/classirr_1_1gui_1_1_i_g_u_i_context_menu.html | |||
@@ -0,0 +1,876 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
5 | <title>Irrlicht 3D Engine: irr::gui::IGUIContextMenu Class Reference</title> | ||
6 | |||
7 | <link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
8 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
9 | <link href="navtree.css" rel="stylesheet" type="text/css"/> | ||
10 | <script type="text/javascript" src="jquery.js"></script> | ||
11 | <script type="text/javascript" src="resize.js"></script> | ||
12 | <script type="text/javascript" src="navtree.js"></script> | ||
13 | <script type="text/javascript"> | ||
14 | $(document).ready(initResizable); | ||
15 | </script> | ||
16 | <link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
17 | <script type="text/javascript" src="search/search.js"></script> | ||
18 | <script type="text/javascript"> | ||
19 | $(document).ready(function() { searchBox.OnSelectItem(0); }); | ||
20 | </script> | ||
21 | |||
22 | </head> | ||
23 | <body> | ||
24 | <div id="top"><!-- do not remove this div! --> | ||
25 | |||
26 | |||
27 | <div id="titlearea"> | ||
28 | <table cellspacing="0" cellpadding="0"> | ||
29 | <tbody> | ||
30 | <tr style="height: 56px;"> | ||
31 | |||
32 | <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td> | ||
33 | |||
34 | |||
35 | <td style="padding-left: 0.5em;"> | ||
36 | <div id="projectname">Irrlicht 3D Engine | ||
37 | |||
38 | </div> | ||
39 | |||
40 | </td> | ||
41 | |||
42 | |||
43 | |||
44 | |||
45 | <td> <div id="MSearchBox" class="MSearchBoxInactive"> | ||
46 | <span class="left"> | ||
47 | <img id="MSearchSelect" src="search/mag_sel.png" | ||
48 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
49 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
50 | alt=""/> | ||
51 | <input type="text" id="MSearchField" value="Search" accesskey="S" | ||
52 | onfocus="searchBox.OnSearchFieldFocus(true)" | ||
53 | onblur="searchBox.OnSearchFieldFocus(false)" | ||
54 | onkeyup="searchBox.OnSearchFieldChange(event)"/> | ||
55 | </span><span class="right"> | ||
56 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> | ||
57 | </span> | ||
58 | </div> | ||
59 | </td> | ||
60 | |||
61 | |||
62 | </tr> | ||
63 | </tbody> | ||
64 | </table> | ||
65 | </div> | ||
66 | |||
67 | <!-- Generated by Doxygen 1.7.5.1 --> | ||
68 | <script type="text/javascript"> | ||
69 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); | ||
70 | </script> | ||
71 | <script type="text/javascript" src="dynsections.js"></script> | ||
72 | </div> | ||
73 | <div id="side-nav" class="ui-resizable side-nav-resizable"> | ||
74 | <div id="nav-tree"> | ||
75 | <div id="nav-tree-contents"> | ||
76 | </div> | ||
77 | </div> | ||
78 | <div id="splitbar" style="-moz-user-select:none;" | ||
79 | class="ui-resizable-handle"> | ||
80 | </div> | ||
81 | </div> | ||
82 | <script type="text/javascript"> | ||
83 | initNavTree('classirr_1_1gui_1_1_i_g_u_i_context_menu.html',''); | ||
84 | </script> | ||
85 | <div id="doc-content"> | ||
86 | <div class="header"> | ||
87 | <div class="summary"> | ||
88 | <a href="#pub-methods">Public Member Functions</a> </div> | ||
89 | <div class="headertitle"> | ||
90 | <div class="title">irr::gui::IGUIContextMenu Class Reference</div> </div> | ||
91 | </div> | ||
92 | <div class="contents"> | ||
93 | <!-- doxytag: class="irr::gui::IGUIContextMenu" --><!-- doxytag: inherits="irr::gui::IGUIElement" --> | ||
94 | <p>GUI Context menu interface. | ||
95 | <a href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#details">More...</a></p> | ||
96 | |||
97 | <p><code>#include <<a class="el" href="_i_g_u_i_context_menu_8h_source.html">IGUIContextMenu.h</a>></code></p> | ||
98 | <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> | ||
99 | <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for irr::gui::IGUIContextMenu:</div> | ||
100 | <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> | ||
101 | </div> | ||
102 | <div id="dynsection-0-content" class="dyncontent" style="display:none;"> | ||
103 | <div class="center"> | ||
104 | <img src="classirr_1_1gui_1_1_i_g_u_i_context_menu.png" usemap="#irr::gui::IGUIContextMenu_map" alt=""/> | ||
105 | <map id="irr::gui::IGUIContextMenu_map" name="irr::gui::IGUIContextMenu_map"> | ||
106 | <area href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements." alt="irr::gui::IGUIElement" shape="rect" coords="105,112,305,136"/> | ||
107 | <area href="classirr_1_1io_1_1_i_attribute_exchanging_object.html" title="An object which is able to serialize and deserialize its attributes into an attributes object..." alt="irr::io::IAttributeExchangingObject" shape="rect" coords="0,56,200,80"/> | ||
108 | <area href="classirr_1_1_i_event_receiver.html" title="Interface of an object which can receive events." alt="irr::IEventReceiver" shape="rect" coords="210,56,410,80"/> | ||
109 | <area href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine." alt="irr::IReferenceCounted" shape="rect" coords="0,0,200,24"/> | ||
110 | </map> | ||
111 | </div></div> | ||
112 | |||
113 | <p><a href="classirr_1_1gui_1_1_i_g_u_i_context_menu-members.html">List of all members.</a></p> | ||
114 | <h2><a name="pub-methods"></a> | ||
115 | Public Member Functions</h2> | ||
116 | <ul> | ||
117 | <li><a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#ab7201b420431830aaaf8f9a0a831c859">IGUIContextMenu</a> (<a class="el" href="classirr_1_1gui_1_1_i_g_u_i_environment.html">IGUIEnvironment</a> *environment, <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_element.html">IGUIElement</a> *parent, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> id, <a class="el" href="classirr_1_1core_1_1rect.html">core::rect</a>< <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> > rectangle) | ||
118 | <dl class="el"><dd class="mdescRight">constructor <a href="#ab7201b420431830aaaf8f9a0a831c859"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#afa25240cb37816c3f8941ccc0f2c14ea">addItem</a> (const wchar_t *text, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> commandId=-1, bool enabled=true, bool hasSubMenu=false, bool checked=false, bool autoChecking=false)=0 | ||
119 | <dl class="el"><dd class="mdescRight">Adds a menu item. <a href="#afa25240cb37816c3f8941ccc0f2c14ea"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a36e2edf23c88eed23d32af1d534d5bfc">addSeparator</a> ()=0 | ||
120 | <dl class="el"><dd class="mdescRight">Adds a separator item to the menu. <a href="#a36e2edf23c88eed23d32af1d534d5bfc"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#ae7b399d9940ebe566b928517aa150383">findItemWithCommandId</a> (<a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> commandId, <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idxStartSearch=0) const =0 | ||
121 | <dl class="el"><dd class="mdescRight">Find an item by it's CommandID. <a href="#ae7b399d9940ebe566b928517aa150383"></a><br/></dl><li>virtual <a class="el" href="namespaceirr_1_1gui.html#a0868ffd1ff3d3fc1e2db2fcd118e320d">ECONTEXT_MENU_CLOSE</a> <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#ac9f46b106a1732ab474f3b38bf564edb">getCloseHandling</a> () const =0 | ||
122 | <dl class="el"><dd class="mdescRight">get current behavior when the menu will be closed <a href="#ac9f46b106a1732ab474f3b38bf564edb"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#ae1c7364f115e633bcfc040864e30f4c1">getItemAutoChecking</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx) const =0 | ||
123 | <dl class="el"><dd class="mdescRight">does the element change the checked status on clicking <a href="#ae1c7364f115e633bcfc040864e30f4c1"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a5edfede62ed558acd68b06eeea0682c3">getItemCommandId</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx) const =0 | ||
124 | <dl class="el"><dd class="mdescRight">Get the command id of a menu item. <a href="#a5edfede62ed558acd68b06eeea0682c3"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a3e65b423c67002b64d6271072b19a829">getItemCount</a> () const =0 | ||
125 | <dl class="el"><dd class="mdescRight">Get amount of menu items. <a href="#a3e65b423c67002b64d6271072b19a829"></a><br/></dl><li>virtual const wchar_t * <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a18cf836d001f425f617c5a36db3d1ae6">getItemText</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx) const =0 | ||
126 | <dl class="el"><dd class="mdescRight">Get text of the menu item. <a href="#a18cf836d001f425f617c5a36db3d1ae6"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#ae6cd391cf56d4454a855e19feddf8fdc">getSelectedItem</a> () const =0 | ||
127 | <dl class="el"><dd class="mdescRight">Get the selected item in the menu. <a href="#ae6cd391cf56d4454a855e19feddf8fdc"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html">IGUIContextMenu</a> * <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a296cfd0c4944b2c0bfb88973401fb824">getSubMenu</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx) const =0 | ||
128 | <dl class="el"><dd class="mdescRight">Get a pointer to the submenu of an item. <a href="#a296cfd0c4944b2c0bfb88973401fb824"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#ad4695f88c63ffc09690c5ff682c3aabc">insertItem</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx, const wchar_t *text, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> commandId=-1, bool enabled=true, bool hasSubMenu=false, bool checked=false, bool autoChecking=false)=0 | ||
129 | <dl class="el"><dd class="mdescRight">Insert a menu item at specified position. <a href="#ad4695f88c63ffc09690c5ff682c3aabc"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a0ff910b79e5581a97aee8ec9a0679160">isItemChecked</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx) const =0 | ||
130 | <dl class="el"><dd class="mdescRight">Check if a menu item is checked. <a href="#a0ff910b79e5581a97aee8ec9a0679160"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a0064345c63e1f8e124e64ca96eb486e2">isItemEnabled</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx) const =0 | ||
131 | <dl class="el"><dd class="mdescRight">Check if a menu item is enabled. <a href="#a0064345c63e1f8e124e64ca96eb486e2"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#ac06b8d80fb076c6bed3aef2a17fb01f9">removeAllItems</a> ()=0 | ||
132 | <dl class="el"><dd class="mdescRight">Removes all menu items. <a href="#ac06b8d80fb076c6bed3aef2a17fb01f9"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#af8cc0fc0f430044a318d4597f8535e9b">removeItem</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx)=0 | ||
133 | <dl class="el"><dd class="mdescRight">Removes a menu item. <a href="#af8cc0fc0f430044a318d4597f8535e9b"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#ae58a13dc73dffc7d30a907b76111a36d">setCloseHandling</a> (<a class="el" href="namespaceirr_1_1gui.html#a0868ffd1ff3d3fc1e2db2fcd118e320d">ECONTEXT_MENU_CLOSE</a> onClose)=0 | ||
134 | <dl class="el"><dd class="mdescRight">set behavior when menus are closed <a href="#ae58a13dc73dffc7d30a907b76111a36d"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a2d87831a224817fc9c9dd8f41c69ac0a">setEventParent</a> (<a class="el" href="classirr_1_1gui_1_1_i_g_u_i_element.html">IGUIElement</a> *parent)=0 | ||
135 | <dl class="el"><dd class="mdescRight">When an eventparent is set it receives events instead of the usual parent element. <a href="#a2d87831a224817fc9c9dd8f41c69ac0a"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#ab393d00ca81ee9482c5a81d19cc6e79e">setItemAutoChecking</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx, bool autoChecking)=0 | ||
136 | <dl class="el"><dd class="mdescRight">should the element change the checked status on clicking <a href="#ab393d00ca81ee9482c5a81d19cc6e79e"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a8abbd1587dcc462f60660d7e606e954e">setItemChecked</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx, bool enabled)=0 | ||
137 | <dl class="el"><dd class="mdescRight">Sets if the menu item should be checked. <a href="#a8abbd1587dcc462f60660d7e606e954e"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a1380ff56d8c4c5b8de8d221062464654">setItemCommandId</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> id)=0 | ||
138 | <dl class="el"><dd class="mdescRight">Sets the command id of a menu item. <a href="#a1380ff56d8c4c5b8de8d221062464654"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#aa3c36d6cd990f3b488be2c7f419b89ee">setItemEnabled</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx, bool enabled)=0 | ||
139 | <dl class="el"><dd class="mdescRight">Sets if the menu item should be enabled. <a href="#aa3c36d6cd990f3b488be2c7f419b89ee"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a20d0e53213a2915a8a62c54b5aa2ff08">setItemText</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> idx, const wchar_t *text)=0 | ||
140 | <dl class="el"><dd class="mdescRight">Sets text of the menu item. <a href="#a20d0e53213a2915a8a62c54b5aa2ff08"></a><br/></dl></ul> | ||
141 | <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> | ||
142 | <div class="textblock"><p>GUI Context menu interface. </p> | ||
143 | <dl class="user"><dt><b>This element can create the following events of type EGUI_EVENT_TYPE:</b></dt><dd><ul> | ||
144 | <li>EGET_ELEMENT_CLOSED </li> | ||
145 | <li>EGET_MENU_ITEM_SELECTED </li> | ||
146 | </ul> | ||
147 | </dd></dl> | ||
148 | |||
149 | <p>Definition at line <a class="el" href="_i_g_u_i_context_menu_8h_source.html#l00035">35</a> of file <a class="el" href="_i_g_u_i_context_menu_8h_source.html">IGUIContextMenu.h</a>.</p> | ||
150 | </div><hr/><h2>Constructor & Destructor Documentation</h2> | ||
151 | <a class="anchor" id="ab7201b420431830aaaf8f9a0a831c859"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::IGUIContextMenu" ref="ab7201b420431830aaaf8f9a0a831c859" args="(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)" --> | ||
152 | <div class="memitem"> | ||
153 | <div class="memproto"> | ||
154 | <table class="memname"> | ||
155 | <tr> | ||
156 | <td class="memname">irr::gui::IGUIContextMenu::IGUIContextMenu </td> | ||
157 | <td>(</td> | ||
158 | <td class="paramtype"><a class="el" href="classirr_1_1gui_1_1_i_g_u_i_environment.html">IGUIEnvironment</a> * </td> | ||
159 | <td class="paramname"><em>environment</em>, </td> | ||
160 | </tr> | ||
161 | <tr> | ||
162 | <td class="paramkey"></td> | ||
163 | <td></td> | ||
164 | <td class="paramtype"><a class="el" href="classirr_1_1gui_1_1_i_g_u_i_element.html">IGUIElement</a> * </td> | ||
165 | <td class="paramname"><em>parent</em>, </td> | ||
166 | </tr> | ||
167 | <tr> | ||
168 | <td class="paramkey"></td> | ||
169 | <td></td> | ||
170 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
171 | <td class="paramname"><em>id</em>, </td> | ||
172 | </tr> | ||
173 | <tr> | ||
174 | <td class="paramkey"></td> | ||
175 | <td></td> | ||
176 | <td class="paramtype"><a class="el" href="classirr_1_1core_1_1rect.html">core::rect</a>< <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> > </td> | ||
177 | <td class="paramname"><em>rectangle</em> </td> | ||
178 | </tr> | ||
179 | <tr> | ||
180 | <td></td> | ||
181 | <td>)</td> | ||
182 | <td></td><td><code> [inline]</code></td> | ||
183 | </tr> | ||
184 | </table> | ||
185 | </div> | ||
186 | <div class="memdoc"> | ||
187 | |||
188 | <p>constructor </p> | ||
189 | |||
190 | <p>Definition at line <a class="el" href="_i_g_u_i_context_menu_8h_source.html#l00040">40</a> of file <a class="el" href="_i_g_u_i_context_menu_8h_source.html">IGUIContextMenu.h</a>.</p> | ||
191 | |||
192 | </div> | ||
193 | </div> | ||
194 | <hr/><h2>Member Function Documentation</h2> | ||
195 | <a class="anchor" id="afa25240cb37816c3f8941ccc0f2c14ea"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::addItem" ref="afa25240cb37816c3f8941ccc0f2c14ea" args="(const wchar_t *text, s32 commandId=-1, bool enabled=true, bool hasSubMenu=false, bool checked=false, bool autoChecking=false)=0" --> | ||
196 | <div class="memitem"> | ||
197 | <div class="memproto"> | ||
198 | <table class="memname"> | ||
199 | <tr> | ||
200 | <td class="memname">virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> irr::gui::IGUIContextMenu::addItem </td> | ||
201 | <td>(</td> | ||
202 | <td class="paramtype">const wchar_t * </td> | ||
203 | <td class="paramname"><em>text</em>, </td> | ||
204 | </tr> | ||
205 | <tr> | ||
206 | <td class="paramkey"></td> | ||
207 | <td></td> | ||
208 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
209 | <td class="paramname"><em>commandId</em> = <code>-1</code>, </td> | ||
210 | </tr> | ||
211 | <tr> | ||
212 | <td class="paramkey"></td> | ||
213 | <td></td> | ||
214 | <td class="paramtype">bool </td> | ||
215 | <td class="paramname"><em>enabled</em> = <code>true</code>, </td> | ||
216 | </tr> | ||
217 | <tr> | ||
218 | <td class="paramkey"></td> | ||
219 | <td></td> | ||
220 | <td class="paramtype">bool </td> | ||
221 | <td class="paramname"><em>hasSubMenu</em> = <code>false</code>, </td> | ||
222 | </tr> | ||
223 | <tr> | ||
224 | <td class="paramkey"></td> | ||
225 | <td></td> | ||
226 | <td class="paramtype">bool </td> | ||
227 | <td class="paramname"><em>checked</em> = <code>false</code>, </td> | ||
228 | </tr> | ||
229 | <tr> | ||
230 | <td class="paramkey"></td> | ||
231 | <td></td> | ||
232 | <td class="paramtype">bool </td> | ||
233 | <td class="paramname"><em>autoChecking</em> = <code>false</code> </td> | ||
234 | </tr> | ||
235 | <tr> | ||
236 | <td></td> | ||
237 | <td>)</td> | ||
238 | <td></td><td><code> [pure virtual]</code></td> | ||
239 | </tr> | ||
240 | </table> | ||
241 | </div> | ||
242 | <div class="memdoc"> | ||
243 | |||
244 | <p>Adds a menu item. </p> | ||
245 | <dl><dt><b>Parameters:</b></dt><dd> | ||
246 | <table class="params"> | ||
247 | <tr><td class="paramname">text,:</td><td>Text of menu item. Set this to 0 to create an separator instead of a real item, which is the same like calling <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a36e2edf23c88eed23d32af1d534d5bfc" title="Adds a separator item to the menu.">addSeparator()</a>; </td></tr> | ||
248 | <tr><td class="paramname">commandId,:</td><td>Command id of menu item, a simple id you may set to whatever you want. </td></tr> | ||
249 | <tr><td class="paramname">enabled,:</td><td>Specifies if the menu item should be enabled. </td></tr> | ||
250 | <tr><td class="paramname">hasSubMenu,:</td><td>Set this to true if there should be a submenu at this item. You can access this submenu via <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a296cfd0c4944b2c0bfb88973401fb824" title="Get a pointer to the submenu of an item.">getSubMenu()</a>. </td></tr> | ||
251 | <tr><td class="paramname">checked,:</td><td>Specifies if the menu item should be initially checked. </td></tr> | ||
252 | <tr><td class="paramname">autoChecking,:</td><td>Specifies if the item should be checked by clicking </td></tr> | ||
253 | </table> | ||
254 | </dd> | ||
255 | </dl> | ||
256 | <dl class="return"><dt><b>Returns:</b></dt><dd>Returns the index of the new item </dd></dl> | ||
257 | |||
258 | </div> | ||
259 | </div> | ||
260 | <a class="anchor" id="a36e2edf23c88eed23d32af1d534d5bfc"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::addSeparator" ref="a36e2edf23c88eed23d32af1d534d5bfc" args="()=0" --> | ||
261 | <div class="memitem"> | ||
262 | <div class="memproto"> | ||
263 | <table class="memname"> | ||
264 | <tr> | ||
265 | <td class="memname">virtual void irr::gui::IGUIContextMenu::addSeparator </td> | ||
266 | <td>(</td> | ||
267 | <td class="paramname"></td><td>)</td> | ||
268 | <td><code> [pure virtual]</code></td> | ||
269 | </tr> | ||
270 | </table> | ||
271 | </div> | ||
272 | <div class="memdoc"> | ||
273 | |||
274 | <p>Adds a separator item to the menu. </p> | ||
275 | |||
276 | </div> | ||
277 | </div> | ||
278 | <a class="anchor" id="ae7b399d9940ebe566b928517aa150383"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::findItemWithCommandId" ref="ae7b399d9940ebe566b928517aa150383" args="(s32 commandId, u32 idxStartSearch=0) const =0" --> | ||
279 | <div class="memitem"> | ||
280 | <div class="memproto"> | ||
281 | <table class="memname"> | ||
282 | <tr> | ||
283 | <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::gui::IGUIContextMenu::findItemWithCommandId </td> | ||
284 | <td>(</td> | ||
285 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
286 | <td class="paramname"><em>commandId</em>, </td> | ||
287 | </tr> | ||
288 | <tr> | ||
289 | <td class="paramkey"></td> | ||
290 | <td></td> | ||
291 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
292 | <td class="paramname"><em>idxStartSearch</em> = <code>0</code> </td> | ||
293 | </tr> | ||
294 | <tr> | ||
295 | <td></td> | ||
296 | <td>)</td> | ||
297 | <td></td><td> const<code> [pure virtual]</code></td> | ||
298 | </tr> | ||
299 | </table> | ||
300 | </div> | ||
301 | <div class="memdoc"> | ||
302 | |||
303 | <p>Find an item by it's CommandID. </p> | ||
304 | <dl><dt><b>Parameters:</b></dt><dd> | ||
305 | <table class="params"> | ||
306 | <tr><td class="paramname">commandId,:</td><td>We are looking for the first item which has this commandID </td></tr> | ||
307 | <tr><td class="paramname">idxStartSearch,:</td><td>Start searching from this index. </td></tr> | ||
308 | </table> | ||
309 | </dd> | ||
310 | </dl> | ||
311 | <dl class="return"><dt><b>Returns:</b></dt><dd>Returns the index of the item when found or otherwise -1. </dd></dl> | ||
312 | |||
313 | </div> | ||
314 | </div> | ||
315 | <a class="anchor" id="ac9f46b106a1732ab474f3b38bf564edb"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::getCloseHandling" ref="ac9f46b106a1732ab474f3b38bf564edb" args="() const =0" --> | ||
316 | <div class="memitem"> | ||
317 | <div class="memproto"> | ||
318 | <table class="memname"> | ||
319 | <tr> | ||
320 | <td class="memname">virtual <a class="el" href="namespaceirr_1_1gui.html#a0868ffd1ff3d3fc1e2db2fcd118e320d">ECONTEXT_MENU_CLOSE</a> irr::gui::IGUIContextMenu::getCloseHandling </td> | ||
321 | <td>(</td> | ||
322 | <td class="paramname"></td><td>)</td> | ||
323 | <td> const<code> [pure virtual]</code></td> | ||
324 | </tr> | ||
325 | </table> | ||
326 | </div> | ||
327 | <div class="memdoc"> | ||
328 | |||
329 | <p>get current behavior when the menu will be closed </p> | ||
330 | |||
331 | </div> | ||
332 | </div> | ||
333 | <a class="anchor" id="ae1c7364f115e633bcfc040864e30f4c1"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::getItemAutoChecking" ref="ae1c7364f115e633bcfc040864e30f4c1" args="(u32 idx) const =0" --> | ||
334 | <div class="memitem"> | ||
335 | <div class="memproto"> | ||
336 | <table class="memname"> | ||
337 | <tr> | ||
338 | <td class="memname">virtual bool irr::gui::IGUIContextMenu::getItemAutoChecking </td> | ||
339 | <td>(</td> | ||
340 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
341 | <td class="paramname"><em>idx</em></td><td>)</td> | ||
342 | <td> const<code> [pure virtual]</code></td> | ||
343 | </tr> | ||
344 | </table> | ||
345 | </div> | ||
346 | <div class="memdoc"> | ||
347 | |||
348 | <p>does the element change the checked status on clicking </p> | ||
349 | |||
350 | </div> | ||
351 | </div> | ||
352 | <a class="anchor" id="a5edfede62ed558acd68b06eeea0682c3"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::getItemCommandId" ref="a5edfede62ed558acd68b06eeea0682c3" args="(u32 idx) const =0" --> | ||
353 | <div class="memitem"> | ||
354 | <div class="memproto"> | ||
355 | <table class="memname"> | ||
356 | <tr> | ||
357 | <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::gui::IGUIContextMenu::getItemCommandId </td> | ||
358 | <td>(</td> | ||
359 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
360 | <td class="paramname"><em>idx</em></td><td>)</td> | ||
361 | <td> const<code> [pure virtual]</code></td> | ||
362 | </tr> | ||
363 | </table> | ||
364 | </div> | ||
365 | <div class="memdoc"> | ||
366 | |||
367 | <p>Get the command id of a menu item. </p> | ||
368 | <dl><dt><b>Parameters:</b></dt><dd> | ||
369 | <table class="params"> | ||
370 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
371 | </table> | ||
372 | </dd> | ||
373 | </dl> | ||
374 | |||
375 | </div> | ||
376 | </div> | ||
377 | <a class="anchor" id="a3e65b423c67002b64d6271072b19a829"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::getItemCount" ref="a3e65b423c67002b64d6271072b19a829" args="() const =0" --> | ||
378 | <div class="memitem"> | ||
379 | <div class="memproto"> | ||
380 | <table class="memname"> | ||
381 | <tr> | ||
382 | <td class="memname">virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> irr::gui::IGUIContextMenu::getItemCount </td> | ||
383 | <td>(</td> | ||
384 | <td class="paramname"></td><td>)</td> | ||
385 | <td> const<code> [pure virtual]</code></td> | ||
386 | </tr> | ||
387 | </table> | ||
388 | </div> | ||
389 | <div class="memdoc"> | ||
390 | |||
391 | <p>Get amount of menu items. </p> | ||
392 | |||
393 | </div> | ||
394 | </div> | ||
395 | <a class="anchor" id="a18cf836d001f425f617c5a36db3d1ae6"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::getItemText" ref="a18cf836d001f425f617c5a36db3d1ae6" args="(u32 idx) const =0" --> | ||
396 | <div class="memitem"> | ||
397 | <div class="memproto"> | ||
398 | <table class="memname"> | ||
399 | <tr> | ||
400 | <td class="memname">virtual const wchar_t* irr::gui::IGUIContextMenu::getItemText </td> | ||
401 | <td>(</td> | ||
402 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
403 | <td class="paramname"><em>idx</em></td><td>)</td> | ||
404 | <td> const<code> [pure virtual]</code></td> | ||
405 | </tr> | ||
406 | </table> | ||
407 | </div> | ||
408 | <div class="memdoc"> | ||
409 | |||
410 | <p>Get text of the menu item. </p> | ||
411 | <dl><dt><b>Parameters:</b></dt><dd> | ||
412 | <table class="params"> | ||
413 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
414 | </table> | ||
415 | </dd> | ||
416 | </dl> | ||
417 | |||
418 | </div> | ||
419 | </div> | ||
420 | <a class="anchor" id="ae6cd391cf56d4454a855e19feddf8fdc"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::getSelectedItem" ref="ae6cd391cf56d4454a855e19feddf8fdc" args="() const =0" --> | ||
421 | <div class="memitem"> | ||
422 | <div class="memproto"> | ||
423 | <table class="memname"> | ||
424 | <tr> | ||
425 | <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::gui::IGUIContextMenu::getSelectedItem </td> | ||
426 | <td>(</td> | ||
427 | <td class="paramname"></td><td>)</td> | ||
428 | <td> const<code> [pure virtual]</code></td> | ||
429 | </tr> | ||
430 | </table> | ||
431 | </div> | ||
432 | <div class="memdoc"> | ||
433 | |||
434 | <p>Get the selected item in the menu. </p> | ||
435 | <dl class="return"><dt><b>Returns:</b></dt><dd>Index of the selected item, -1 if none selected. </dd></dl> | ||
436 | |||
437 | </div> | ||
438 | </div> | ||
439 | <a class="anchor" id="a296cfd0c4944b2c0bfb88973401fb824"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::getSubMenu" ref="a296cfd0c4944b2c0bfb88973401fb824" args="(u32 idx) const =0" --> | ||
440 | <div class="memitem"> | ||
441 | <div class="memproto"> | ||
442 | <table class="memname"> | ||
443 | <tr> | ||
444 | <td class="memname">virtual <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html">IGUIContextMenu</a>* irr::gui::IGUIContextMenu::getSubMenu </td> | ||
445 | <td>(</td> | ||
446 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
447 | <td class="paramname"><em>idx</em></td><td>)</td> | ||
448 | <td> const<code> [pure virtual]</code></td> | ||
449 | </tr> | ||
450 | </table> | ||
451 | </div> | ||
452 | <div class="memdoc"> | ||
453 | |||
454 | <p>Get a pointer to the submenu of an item. </p> | ||
455 | <p>0 is returned if there is no submenu </p> | ||
456 | <dl><dt><b>Parameters:</b></dt><dd> | ||
457 | <table class="params"> | ||
458 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
459 | </table> | ||
460 | </dd> | ||
461 | </dl> | ||
462 | <dl class="return"><dt><b>Returns:</b></dt><dd>Returns a pointer to the submenu of an item. </dd></dl> | ||
463 | |||
464 | </div> | ||
465 | </div> | ||
466 | <a class="anchor" id="ad4695f88c63ffc09690c5ff682c3aabc"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::insertItem" ref="ad4695f88c63ffc09690c5ff682c3aabc" args="(u32 idx, const wchar_t *text, s32 commandId=-1, bool enabled=true, bool hasSubMenu=false, bool checked=false, bool autoChecking=false)=0" --> | ||
467 | <div class="memitem"> | ||
468 | <div class="memproto"> | ||
469 | <table class="memname"> | ||
470 | <tr> | ||
471 | <td class="memname">virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> irr::gui::IGUIContextMenu::insertItem </td> | ||
472 | <td>(</td> | ||
473 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
474 | <td class="paramname"><em>idx</em>, </td> | ||
475 | </tr> | ||
476 | <tr> | ||
477 | <td class="paramkey"></td> | ||
478 | <td></td> | ||
479 | <td class="paramtype">const wchar_t * </td> | ||
480 | <td class="paramname"><em>text</em>, </td> | ||
481 | </tr> | ||
482 | <tr> | ||
483 | <td class="paramkey"></td> | ||
484 | <td></td> | ||
485 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
486 | <td class="paramname"><em>commandId</em> = <code>-1</code>, </td> | ||
487 | </tr> | ||
488 | <tr> | ||
489 | <td class="paramkey"></td> | ||
490 | <td></td> | ||
491 | <td class="paramtype">bool </td> | ||
492 | <td class="paramname"><em>enabled</em> = <code>true</code>, </td> | ||
493 | </tr> | ||
494 | <tr> | ||
495 | <td class="paramkey"></td> | ||
496 | <td></td> | ||
497 | <td class="paramtype">bool </td> | ||
498 | <td class="paramname"><em>hasSubMenu</em> = <code>false</code>, </td> | ||
499 | </tr> | ||
500 | <tr> | ||
501 | <td class="paramkey"></td> | ||
502 | <td></td> | ||
503 | <td class="paramtype">bool </td> | ||
504 | <td class="paramname"><em>checked</em> = <code>false</code>, </td> | ||
505 | </tr> | ||
506 | <tr> | ||
507 | <td class="paramkey"></td> | ||
508 | <td></td> | ||
509 | <td class="paramtype">bool </td> | ||
510 | <td class="paramname"><em>autoChecking</em> = <code>false</code> </td> | ||
511 | </tr> | ||
512 | <tr> | ||
513 | <td></td> | ||
514 | <td>)</td> | ||
515 | <td></td><td><code> [pure virtual]</code></td> | ||
516 | </tr> | ||
517 | </table> | ||
518 | </div> | ||
519 | <div class="memdoc"> | ||
520 | |||
521 | <p>Insert a menu item at specified position. </p> | ||
522 | <dl><dt><b>Parameters:</b></dt><dd> | ||
523 | <table class="params"> | ||
524 | <tr><td class="paramname">idx,:</td><td>Position to insert the new element, should be smaller than itemcount otherwise the item is added to the end. </td></tr> | ||
525 | <tr><td class="paramname">text,:</td><td>Text of menu item. Set this to 0 to create an separator instead of a real item, which is the same like calling <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a36e2edf23c88eed23d32af1d534d5bfc" title="Adds a separator item to the menu.">addSeparator()</a>; </td></tr> | ||
526 | <tr><td class="paramname">commandId,:</td><td>Command id of menu item, a simple id you may set to whatever you want. </td></tr> | ||
527 | <tr><td class="paramname">enabled,:</td><td>Specifies if the menu item should be enabled. </td></tr> | ||
528 | <tr><td class="paramname">hasSubMenu,:</td><td>Set this to true if there should be a submenu at this item. You can access this submenu via <a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html#a296cfd0c4944b2c0bfb88973401fb824" title="Get a pointer to the submenu of an item.">getSubMenu()</a>. </td></tr> | ||
529 | <tr><td class="paramname">checked,:</td><td>Specifies if the menu item should be initially checked. </td></tr> | ||
530 | <tr><td class="paramname">autoChecking,:</td><td>Specifies if the item should be checked by clicking </td></tr> | ||
531 | </table> | ||
532 | </dd> | ||
533 | </dl> | ||
534 | <dl class="return"><dt><b>Returns:</b></dt><dd>Returns the index of the new item </dd></dl> | ||
535 | |||
536 | </div> | ||
537 | </div> | ||
538 | <a class="anchor" id="a0ff910b79e5581a97aee8ec9a0679160"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::isItemChecked" ref="a0ff910b79e5581a97aee8ec9a0679160" args="(u32 idx) const =0" --> | ||
539 | <div class="memitem"> | ||
540 | <div class="memproto"> | ||
541 | <table class="memname"> | ||
542 | <tr> | ||
543 | <td class="memname">virtual bool irr::gui::IGUIContextMenu::isItemChecked </td> | ||
544 | <td>(</td> | ||
545 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
546 | <td class="paramname"><em>idx</em></td><td>)</td> | ||
547 | <td> const<code> [pure virtual]</code></td> | ||
548 | </tr> | ||
549 | </table> | ||
550 | </div> | ||
551 | <div class="memdoc"> | ||
552 | |||
553 | <p>Check if a menu item is checked. </p> | ||
554 | <dl><dt><b>Parameters:</b></dt><dd> | ||
555 | <table class="params"> | ||
556 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
557 | </table> | ||
558 | </dd> | ||
559 | </dl> | ||
560 | |||
561 | </div> | ||
562 | </div> | ||
563 | <a class="anchor" id="a0064345c63e1f8e124e64ca96eb486e2"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::isItemEnabled" ref="a0064345c63e1f8e124e64ca96eb486e2" args="(u32 idx) const =0" --> | ||
564 | <div class="memitem"> | ||
565 | <div class="memproto"> | ||
566 | <table class="memname"> | ||
567 | <tr> | ||
568 | <td class="memname">virtual bool irr::gui::IGUIContextMenu::isItemEnabled </td> | ||
569 | <td>(</td> | ||
570 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
571 | <td class="paramname"><em>idx</em></td><td>)</td> | ||
572 | <td> const<code> [pure virtual]</code></td> | ||
573 | </tr> | ||
574 | </table> | ||
575 | </div> | ||
576 | <div class="memdoc"> | ||
577 | |||
578 | <p>Check if a menu item is enabled. </p> | ||
579 | <dl><dt><b>Parameters:</b></dt><dd> | ||
580 | <table class="params"> | ||
581 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
582 | </table> | ||
583 | </dd> | ||
584 | </dl> | ||
585 | |||
586 | </div> | ||
587 | </div> | ||
588 | <a class="anchor" id="ac06b8d80fb076c6bed3aef2a17fb01f9"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::removeAllItems" ref="ac06b8d80fb076c6bed3aef2a17fb01f9" args="()=0" --> | ||
589 | <div class="memitem"> | ||
590 | <div class="memproto"> | ||
591 | <table class="memname"> | ||
592 | <tr> | ||
593 | <td class="memname">virtual void irr::gui::IGUIContextMenu::removeAllItems </td> | ||
594 | <td>(</td> | ||
595 | <td class="paramname"></td><td>)</td> | ||
596 | <td><code> [pure virtual]</code></td> | ||
597 | </tr> | ||
598 | </table> | ||
599 | </div> | ||
600 | <div class="memdoc"> | ||
601 | |||
602 | <p>Removes all menu items. </p> | ||
603 | |||
604 | </div> | ||
605 | </div> | ||
606 | <a class="anchor" id="af8cc0fc0f430044a318d4597f8535e9b"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::removeItem" ref="af8cc0fc0f430044a318d4597f8535e9b" args="(u32 idx)=0" --> | ||
607 | <div class="memitem"> | ||
608 | <div class="memproto"> | ||
609 | <table class="memname"> | ||
610 | <tr> | ||
611 | <td class="memname">virtual void irr::gui::IGUIContextMenu::removeItem </td> | ||
612 | <td>(</td> | ||
613 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
614 | <td class="paramname"><em>idx</em></td><td>)</td> | ||
615 | <td><code> [pure virtual]</code></td> | ||
616 | </tr> | ||
617 | </table> | ||
618 | </div> | ||
619 | <div class="memdoc"> | ||
620 | |||
621 | <p>Removes a menu item. </p> | ||
622 | <dl><dt><b>Parameters:</b></dt><dd> | ||
623 | <table class="params"> | ||
624 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
625 | </table> | ||
626 | </dd> | ||
627 | </dl> | ||
628 | |||
629 | </div> | ||
630 | </div> | ||
631 | <a class="anchor" id="ae58a13dc73dffc7d30a907b76111a36d"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::setCloseHandling" ref="ae58a13dc73dffc7d30a907b76111a36d" args="(ECONTEXT_MENU_CLOSE onClose)=0" --> | ||
632 | <div class="memitem"> | ||
633 | <div class="memproto"> | ||
634 | <table class="memname"> | ||
635 | <tr> | ||
636 | <td class="memname">virtual void irr::gui::IGUIContextMenu::setCloseHandling </td> | ||
637 | <td>(</td> | ||
638 | <td class="paramtype"><a class="el" href="namespaceirr_1_1gui.html#a0868ffd1ff3d3fc1e2db2fcd118e320d">ECONTEXT_MENU_CLOSE</a> </td> | ||
639 | <td class="paramname"><em>onClose</em></td><td>)</td> | ||
640 | <td><code> [pure virtual]</code></td> | ||
641 | </tr> | ||
642 | </table> | ||
643 | </div> | ||
644 | <div class="memdoc"> | ||
645 | |||
646 | <p>set behavior when menus are closed </p> | ||
647 | |||
648 | </div> | ||
649 | </div> | ||
650 | <a class="anchor" id="a2d87831a224817fc9c9dd8f41c69ac0a"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::setEventParent" ref="a2d87831a224817fc9c9dd8f41c69ac0a" args="(IGUIElement *parent)=0" --> | ||
651 | <div class="memitem"> | ||
652 | <div class="memproto"> | ||
653 | <table class="memname"> | ||
654 | <tr> | ||
655 | <td class="memname">virtual void irr::gui::IGUIContextMenu::setEventParent </td> | ||
656 | <td>(</td> | ||
657 | <td class="paramtype"><a class="el" href="classirr_1_1gui_1_1_i_g_u_i_element.html">IGUIElement</a> * </td> | ||
658 | <td class="paramname"><em>parent</em></td><td>)</td> | ||
659 | <td><code> [pure virtual]</code></td> | ||
660 | </tr> | ||
661 | </table> | ||
662 | </div> | ||
663 | <div class="memdoc"> | ||
664 | |||
665 | <p>When an eventparent is set it receives events instead of the usual parent element. </p> | ||
666 | |||
667 | </div> | ||
668 | </div> | ||
669 | <a class="anchor" id="ab393d00ca81ee9482c5a81d19cc6e79e"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::setItemAutoChecking" ref="ab393d00ca81ee9482c5a81d19cc6e79e" args="(u32 idx, bool autoChecking)=0" --> | ||
670 | <div class="memitem"> | ||
671 | <div class="memproto"> | ||
672 | <table class="memname"> | ||
673 | <tr> | ||
674 | <td class="memname">virtual void irr::gui::IGUIContextMenu::setItemAutoChecking </td> | ||
675 | <td>(</td> | ||
676 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
677 | <td class="paramname"><em>idx</em>, </td> | ||
678 | </tr> | ||
679 | <tr> | ||
680 | <td class="paramkey"></td> | ||
681 | <td></td> | ||
682 | <td class="paramtype">bool </td> | ||
683 | <td class="paramname"><em>autoChecking</em> </td> | ||
684 | </tr> | ||
685 | <tr> | ||
686 | <td></td> | ||
687 | <td>)</td> | ||
688 | <td></td><td><code> [pure virtual]</code></td> | ||
689 | </tr> | ||
690 | </table> | ||
691 | </div> | ||
692 | <div class="memdoc"> | ||
693 | |||
694 | <p>should the element change the checked status on clicking </p> | ||
695 | |||
696 | </div> | ||
697 | </div> | ||
698 | <a class="anchor" id="a8abbd1587dcc462f60660d7e606e954e"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::setItemChecked" ref="a8abbd1587dcc462f60660d7e606e954e" args="(u32 idx, bool enabled)=0" --> | ||
699 | <div class="memitem"> | ||
700 | <div class="memproto"> | ||
701 | <table class="memname"> | ||
702 | <tr> | ||
703 | <td class="memname">virtual void irr::gui::IGUIContextMenu::setItemChecked </td> | ||
704 | <td>(</td> | ||
705 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
706 | <td class="paramname"><em>idx</em>, </td> | ||
707 | </tr> | ||
708 | <tr> | ||
709 | <td class="paramkey"></td> | ||
710 | <td></td> | ||
711 | <td class="paramtype">bool </td> | ||
712 | <td class="paramname"><em>enabled</em> </td> | ||
713 | </tr> | ||
714 | <tr> | ||
715 | <td></td> | ||
716 | <td>)</td> | ||
717 | <td></td><td><code> [pure virtual]</code></td> | ||
718 | </tr> | ||
719 | </table> | ||
720 | </div> | ||
721 | <div class="memdoc"> | ||
722 | |||
723 | <p>Sets if the menu item should be checked. </p> | ||
724 | <dl><dt><b>Parameters:</b></dt><dd> | ||
725 | <table class="params"> | ||
726 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
727 | <tr><td class="paramname">enabled,:</td><td>True if it is enabled, otherwise false. </td></tr> | ||
728 | </table> | ||
729 | </dd> | ||
730 | </dl> | ||
731 | |||
732 | </div> | ||
733 | </div> | ||
734 | <a class="anchor" id="a1380ff56d8c4c5b8de8d221062464654"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::setItemCommandId" ref="a1380ff56d8c4c5b8de8d221062464654" args="(u32 idx, s32 id)=0" --> | ||
735 | <div class="memitem"> | ||
736 | <div class="memproto"> | ||
737 | <table class="memname"> | ||
738 | <tr> | ||
739 | <td class="memname">virtual void irr::gui::IGUIContextMenu::setItemCommandId </td> | ||
740 | <td>(</td> | ||
741 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
742 | <td class="paramname"><em>idx</em>, </td> | ||
743 | </tr> | ||
744 | <tr> | ||
745 | <td class="paramkey"></td> | ||
746 | <td></td> | ||
747 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
748 | <td class="paramname"><em>id</em> </td> | ||
749 | </tr> | ||
750 | <tr> | ||
751 | <td></td> | ||
752 | <td>)</td> | ||
753 | <td></td><td><code> [pure virtual]</code></td> | ||
754 | </tr> | ||
755 | </table> | ||
756 | </div> | ||
757 | <div class="memdoc"> | ||
758 | |||
759 | <p>Sets the command id of a menu item. </p> | ||
760 | <dl><dt><b>Parameters:</b></dt><dd> | ||
761 | <table class="params"> | ||
762 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
763 | <tr><td class="paramname">id,:</td><td>Command id of menu item, a simple id you may set to whatever you want. </td></tr> | ||
764 | </table> | ||
765 | </dd> | ||
766 | </dl> | ||
767 | |||
768 | </div> | ||
769 | </div> | ||
770 | <a class="anchor" id="aa3c36d6cd990f3b488be2c7f419b89ee"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::setItemEnabled" ref="aa3c36d6cd990f3b488be2c7f419b89ee" args="(u32 idx, bool enabled)=0" --> | ||
771 | <div class="memitem"> | ||
772 | <div class="memproto"> | ||
773 | <table class="memname"> | ||
774 | <tr> | ||
775 | <td class="memname">virtual void irr::gui::IGUIContextMenu::setItemEnabled </td> | ||
776 | <td>(</td> | ||
777 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
778 | <td class="paramname"><em>idx</em>, </td> | ||
779 | </tr> | ||
780 | <tr> | ||
781 | <td class="paramkey"></td> | ||
782 | <td></td> | ||
783 | <td class="paramtype">bool </td> | ||
784 | <td class="paramname"><em>enabled</em> </td> | ||
785 | </tr> | ||
786 | <tr> | ||
787 | <td></td> | ||
788 | <td>)</td> | ||
789 | <td></td><td><code> [pure virtual]</code></td> | ||
790 | </tr> | ||
791 | </table> | ||
792 | </div> | ||
793 | <div class="memdoc"> | ||
794 | |||
795 | <p>Sets if the menu item should be enabled. </p> | ||
796 | <dl><dt><b>Parameters:</b></dt><dd> | ||
797 | <table class="params"> | ||
798 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
799 | <tr><td class="paramname">enabled,:</td><td>True if it is enabled, otherwise false. </td></tr> | ||
800 | </table> | ||
801 | </dd> | ||
802 | </dl> | ||
803 | |||
804 | </div> | ||
805 | </div> | ||
806 | <a class="anchor" id="a20d0e53213a2915a8a62c54b5aa2ff08"></a><!-- doxytag: member="irr::gui::IGUIContextMenu::setItemText" ref="a20d0e53213a2915a8a62c54b5aa2ff08" args="(u32 idx, const wchar_t *text)=0" --> | ||
807 | <div class="memitem"> | ||
808 | <div class="memproto"> | ||
809 | <table class="memname"> | ||
810 | <tr> | ||
811 | <td class="memname">virtual void irr::gui::IGUIContextMenu::setItemText </td> | ||
812 | <td>(</td> | ||
813 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
814 | <td class="paramname"><em>idx</em>, </td> | ||
815 | </tr> | ||
816 | <tr> | ||
817 | <td class="paramkey"></td> | ||
818 | <td></td> | ||
819 | <td class="paramtype">const wchar_t * </td> | ||
820 | <td class="paramname"><em>text</em> </td> | ||
821 | </tr> | ||
822 | <tr> | ||
823 | <td></td> | ||
824 | <td>)</td> | ||
825 | <td></td><td><code> [pure virtual]</code></td> | ||
826 | </tr> | ||
827 | </table> | ||
828 | </div> | ||
829 | <div class="memdoc"> | ||
830 | |||
831 | <p>Sets text of the menu item. </p> | ||
832 | <dl><dt><b>Parameters:</b></dt><dd> | ||
833 | <table class="params"> | ||
834 | <tr><td class="paramname">idx,:</td><td>Zero based index of the menu item </td></tr> | ||
835 | <tr><td class="paramname">text,:</td><td>New text of the item. </td></tr> | ||
836 | </table> | ||
837 | </dd> | ||
838 | </dl> | ||
839 | |||
840 | </div> | ||
841 | </div> | ||
842 | <hr/>The documentation for this class was generated from the following file:<ul> | ||
843 | <li><a class="el" href="_i_g_u_i_context_menu_8h_source.html">IGUIContextMenu.h</a></li> | ||
844 | </ul> | ||
845 | </div> | ||
846 | </div> | ||
847 | <div id="nav-path" class="navpath"> | ||
848 | <ul> | ||
849 | <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li> | ||
850 | <li class="navelem"><a class="el" href="namespaceirr_1_1gui.html">gui</a> </li> | ||
851 | <li class="navelem"><a class="el" href="classirr_1_1gui_1_1_i_g_u_i_context_menu.html">IGUIContextMenu</a> </li> | ||
852 | <!-- window showing the filter options --> | ||
853 | <div id="MSearchSelectWindow" | ||
854 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
855 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
856 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
857 | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Defines</a></div> | ||
858 | |||
859 | <!-- iframe showing the search results (closed by default) --> | ||
860 | <div id="MSearchResultsWindow"> | ||
861 | <iframe src="javascript:void(0)" frameborder="0" | ||
862 | name="MSearchResults" id="MSearchResults"> | ||
863 | </iframe> | ||
864 | </div> | ||
865 | |||
866 | |||
867 | <li class="footer"> | ||
868 | <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht | ||
869 | Engine</a> Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Tue Nov 6 2012 11:06:03 for Irrlicht 3D Engine by | ||
870 | <a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li> | ||
871 | </ul> | ||
872 | </div> | ||
873 | |||
874 | |||
875 | </body> | ||
876 | </html> | ||