<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>edelib: MenuButton Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">edelib  <span id="projectnumber">2.0.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.6.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceedelib.html">edelib</a> </li> <li class="navelem"><a class="el" href="classedelib_1_1MenuButton.html">MenuButton</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">MenuButton Class Reference</div> </div> </div><!--header--> <div class="contents"> <!-- doxytag: class="edelib::MenuButton" --><!-- doxytag: inherits="edelib::MenuBase" --> <p>Button with attached menu. <a href="classedelib_1_1MenuButton.html#details">More...</a></p> <p><code>#include <<a class="el" href="MenuButton_8h_source.html">edelib/MenuButton.h</a>></code></p> <div class="dynheader"> Inheritance diagram for MenuButton:</div> <div class="dyncontent"> <div class="center"> <img src="classedelib_1_1MenuButton.png" usemap="#MenuButton_map" alt=""/> <map id="MenuButton_map" name="MenuButton_map"> <area href="classedelib_1_1MenuBase.html" title="Menu base class." alt="MenuBase" shape="rect" coords="0,0,79,24"/> </map> </div></div> <p><a href="classedelib_1_1MenuButton-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom">{ <br/>   <b>POPUP1</b> = 1, <b>POPUP2</b>, <b>POPUP12</b>, <b>POPUP3</b>, <br/>   <b>POPUP13</b>, <b>POPUP23</b>, <b>POPUP123</b> <br/> }</td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classedelib_1_1MenuButton.html#ad26cc657ff2c840270a7b6413541434a">MenuButton</a> (int, int, int, int, const char *=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classedelib_1_1MenuButton.html#aec865be2fa4fe7e0b7c54409cd631ef6">handle</a> (int)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structedelib_1_1MenuItem.html">MenuItem</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classedelib_1_1MenuButton.html#ab3b78bc1499550560e2a04af57400f6a">popup</a> ()</td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Button with attached menu. </p> <p><a class="el" href="classedelib_1_1MenuButton.html" title="Button with attached menu.">MenuButton</a> is forked Fl_Menu_Button, so all FLTK documentation for Fl_Menu_Button applies here too. </p> </div><hr/><h2>Member Enumeration Documentation</h2> <a class="anchor" id="adf764cbdea00d65edcd07bb9953ad2b7"></a><!-- doxytag: member="edelib::MenuButton::@1" ref="adf764cbdea00d65edcd07bb9953ad2b7" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">anonymous enum</td> </tr> </table> </div> <div class="memdoc"> <p>Values for type() </p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ad26cc657ff2c840270a7b6413541434a"></a><!-- doxytag: member="edelib::MenuButton::MenuButton" ref="ad26cc657ff2c840270a7b6413541434a" args="(int, int, int, int, const char *=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classedelib_1_1MenuButton.html">MenuButton</a> </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aec865be2fa4fe7e0b7c54409cd631ef6"></a><!-- doxytag: member="edelib::MenuButton::handle" ref="aec865be2fa4fe7e0b7c54409cd631ef6" args="(int)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="classedelib_1_1MenuButton.html#aec865be2fa4fe7e0b7c54409cd631ef6">handle</a> </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Handle events </p> </div> </div> <a class="anchor" id="ab3b78bc1499550560e2a04af57400f6a"></a><!-- doxytag: member="edelib::MenuButton::popup" ref="ab3b78bc1499550560e2a04af57400f6a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="structedelib_1_1MenuItem.html">MenuItem</a>* <a class="el" href="classedelib_1_1MenuButton.html#ab3b78bc1499550560e2a04af57400f6a">popup</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Popup menu and return the menu item or NULL if the user dismisses the menu </p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>edelib/<a class="el" href="MenuButton_8h_source.html">MenuButton.h</a></li> </ul> </div><!-- contents --> <hr class="footer"/><address class="footer"><small> Generated on Tue Jun 5 2012 17:49:03 for edelib by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.7.6.1 </small></address> </body> </html>