1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603
|
<!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>gtkmm 2.4: Gtk::MenuToolButton Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
<td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
<td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
<a class="qindex" href="../../index.html">Main Page</a>
<a href="group__Widgets.html">Widgets</a>
<a class="qindex" href="namespaces.html"> Namespaces</a>
<a href="../../tutorial/html/index.html"> Book</a>
</center>
<hr width="100%"/>
<!-- begin main content -->
<div id="content">
<!-- Generated by Doxygen 1.5.1 -->
<div class="nav">
<a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a></div>
<h1>Gtk::MenuToolButton Class Reference<br>
<small>
[<a class="el" href="group__Widgets.html">Widgets</a>]</small>
</h1><!-- doxytag: class="Gtk::MenuToolButton" --><!-- doxytag: inherits="Gtk::ToolButton" -->Inheritance diagram for Gtk::MenuToolButton:<p><center><img src="classGtk_1_1MenuToolButton__inherit__graph.png" border="0" usemap="#Gtk_1_1MenuToolButton__inherit__map" alt="Inheritance graph"></center>
<map name="Gtk_1_1MenuToolButton__inherit__map">
<area href="classGtk_1_1ToolButton.html" shape="rect" coords="57,625,177,652" alt="">
<area href="classGtk_1_1ToolItem.html" shape="rect" coords="65,548,169,575" alt="">
<area href="classGtk_1_1Bin.html" shape="rect" coords="81,471,153,497" alt="">
<area href="classGtk_1_1Container.html" shape="rect" coords="61,393,173,420" alt="">
<area href="classGtk_1_1Widget.html" shape="rect" coords="71,316,164,343" alt="">
<area href="classGtk_1_1Object.html" shape="rect" coords="5,239,96,265" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1Object.html" shape="rect" coords="7,161,100,188" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html" shape="rect" coords="53,84,179,111" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1Interface.html" shape="rect" coords="128,161,237,188" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classsigc_1_1trackable.html" shape="rect" coords="60,7,172,33" alt="">
<area href="classAtk_1_1Implementor.html" shape="rect" coords="120,239,251,265" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1MenuToolButton-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A <a class="el" href="classGtk_1_1ToolItem.html">Gtk::ToolItem</a> containing a toggle button.
<p>
A <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> is a <a class="el" href="classGtk_1_1ToolItem.html">Gtk::ToolItem</a> that contains a menu.
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classGtk_1_1Menu.html">Menu</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#97c335fd09cea81b5615ede74bd6a229">get_menu</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a> associated with <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>. <a href="#97c335fd09cea81b5615ede74bd6a229"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGtk_1_1Menu.html">Menu</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#39f2d1c846be54a1eca80c93f84fafaa">get_menu</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a> associated with <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>. <a href="#39f2d1c846be54a1eca80c93f84fafaa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GtkMenuToolButton* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#f2e5d909e3ca0e15666cf4b5cc5d7e30">gobj</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#f2e5d909e3ca0e15666cf4b5cc5d7e30"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GtkMenuToolButton* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#6d5506c273ce86a54862ba3b70758b47">gobj</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#6d5506c273ce86a54862ba3b70758b47"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#6428aeb6f02e0b7ade8dcacd207c48d2">MenuToolButton</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>& icon_widget, const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& label=<a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> with an image. <a href="#6428aeb6f02e0b7ade8dcacd207c48d2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#b5b485f92c2517310a51dcc30f95b905">MenuToolButton</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& label)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> with a label. <a href="#b5b485f92c2517310a51dcc30f95b905"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#dcf4a930fdc93a3b96bc16fe02688523">MenuToolButton</a> (const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>& stock_id)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> from a <a class="el" href="classGtk_1_1StockID.html">StockID</a>. <a href="#dcf4a930fdc93a3b96bc16fe02688523"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#43a1f2351eabf3e6bcbe01f78c3be35c">MenuToolButton</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a>. <a href="#43a1f2351eabf3e6bcbe01f78c3be35c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<br>
<a class="el" href="classGtk_1_1Menu.html">Menu</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#c12913e5c50f1a45c6a1a9f42ca79a71">property_menu</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The dropdown menu. <a href="#c12913e5c50f1a45c6a1a9f42ca79a71"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="el" href="classGtk_1_1Menu.html">Menu</a>*> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#e33e9b90b4063b2a4b93793b0e9fcb68">property_menu</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The dropdown menu. <a href="#e33e9b90b4063b2a4b93793b0e9fcb68"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#afe7aa1160bed6ab4b22f0cc7cdce180">set_arrow_tooltip</a> (<a class="el" href="classGtk_1_1Tooltips.html">Tooltips</a>& tooltips, const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& tip_text, const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& tip_private)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the <a class="el" href="classGtk_1_1Tooltips.html">Gtk::Tooltips</a> object to be used for arrow button which pops up the menu. <a href="#afe7aa1160bed6ab4b22f0cc7cdce180"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#64097d80577cf2eae567ca100e7a286c">set_arrow_tooltip_markup</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& markup)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the tooltip markup text to be used as tooltip for the arrow button which pops up the menu. <a href="#64097d80577cf2eae567ca100e7a286c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#59259aa6cb99757c9a459315c6d60b15">set_arrow_tooltip_text</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& text)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the tooltip text to be used as tooltip for the arrow button which pops up the menu. <a href="#59259aa6cb99757c9a459315c6d60b15"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#9ec12649e132fd492160be1788546705">set_menu</a> (<a class="el" href="classGtk_1_1Menu.html">Menu</a>& menu)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a> that is popped up when the user clicks on the arrow. <a href="#9ec12649e132fd492160be1788546705"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a><void> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#1f3e1834515c97d40d9b57d0fde6bf60">signal_show_menu</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><dl class="user" compact><dt><b>Prototype:</b></dt><dd><code>void on_my_show_menu()</code> </dd></dl>
<a href="#1f3e1834515c97d40d9b57d0fde6bf60"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#99eabb98fc5798da106b05bdde69e000">~MenuToolButton</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#261f2932985ebd7ad526661b9bf14d64">on_show_menu</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#e20b5bb8c723c755dbc71532da249de0">wrap</a> (GtkMenuToolButton* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#e20b5bb8c723c755dbc71532da249de0"></a><br></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="99eabb98fc5798da106b05bdde69e000"></a><!-- doxytag: member="Gtk::MenuToolButton::~MenuToolButton" ref="99eabb98fc5798da106b05bdde69e000" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual Gtk::MenuToolButton::~MenuToolButton </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="43a1f2351eabf3e6bcbe01f78c3be35c"></a><!-- doxytag: member="Gtk::MenuToolButton::MenuToolButton" ref="43a1f2351eabf3e6bcbe01f78c3be35c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Gtk::MenuToolButton::MenuToolButton </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a>.
<p>
</div>
</div><p>
<a class="anchor" name="dcf4a930fdc93a3b96bc16fe02688523"></a><!-- doxytag: member="Gtk::MenuToolButton::MenuToolButton" ref="dcf4a930fdc93a3b96bc16fe02688523" args="(const Gtk::StockID &stock_id)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Gtk::MenuToolButton::MenuToolButton </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>& </td>
<td class="paramname"> <em>stock_id</em> </td>
<td> ) </td>
<td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> from a <a class="el" href="classGtk_1_1StockID.html">StockID</a>.
<p>
The <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> will be created according to the <em>stock_id</em> properties.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>stock_id</em> </td><td>The <a class="el" href="classGtk_1_1StockID.html">StockID</a> which determines the look of the <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a>. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="b5b485f92c2517310a51dcc30f95b905"></a><!-- doxytag: member="Gtk::MenuToolButton::MenuToolButton" ref="b5b485f92c2517310a51dcc30f95b905" args="(const Glib::ustring &label)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Gtk::MenuToolButton::MenuToolButton </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>label</em> </td>
<td> ) </td>
<td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> with a label.
<p>
The <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> will have the label <em>label</em>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>label</em> </td><td>The string used to display the label for this <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a>. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="6428aeb6f02e0b7ade8dcacd207c48d2"></a><!-- doxytag: member="Gtk::MenuToolButton::MenuToolButton" ref="6428aeb6f02e0b7ade8dcacd207c48d2" args="(Widget &icon_widget, const Glib::ustring &label=Glib::ustring())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Gtk::MenuToolButton::MenuToolButton </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>& </td>
<td class="paramname"> <em>icon_widget</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>label</em> = <code><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> with an image.
<p>
The <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a> will have the label <em>label</em> and an image widget <em>icon_widget</em>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>icon_widget</em> </td><td>The widget placed as the MenuToolButton's icon. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>label</em> </td><td>The string used to display the label for this <a class="el" href="classGtk_1_1MenuToolButton.html">MenuToolButton</a>. </td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="97c335fd09cea81b5615ede74bd6a229"></a><!-- doxytag: member="Gtk::MenuToolButton::get_menu" ref="97c335fd09cea81b5615ede74bd6a229" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classGtk_1_1Menu.html">Menu</a>* Gtk::MenuToolButton::get_menu </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Gets the <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a> associated with <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a> associated with <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a></dd></dl>
<dl compact><dt><b><a class="el" href="newin2p6s.html#_newin2p6s000139">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
</div>
</div><p>
<a class="anchor" name="39f2d1c846be54a1eca80c93f84fafaa"></a><!-- doxytag: member="Gtk::MenuToolButton::get_menu" ref="39f2d1c846be54a1eca80c93f84fafaa" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGtk_1_1Menu.html">Menu</a>* Gtk::MenuToolButton::get_menu </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Gets the <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a> associated with <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a> associated with <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a></dd></dl>
<dl compact><dt><b><a class="el" href="newin2p6s.html#_newin2p6s000138">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
</div>
</div><p>
<a class="anchor" name="f2e5d909e3ca0e15666cf4b5cc5d7e30"></a><!-- doxytag: member="Gtk::MenuToolButton::gobj" ref="f2e5d909e3ca0e15666cf4b5cc5d7e30" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const GtkMenuToolButton* Gtk::MenuToolButton::gobj </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Provides access to the underlying C GtkObject.
<p>
<p>
Reimplemented from <a class="el" href="classGtk_1_1ToolButton.html#aa8e7fb3b4bf55ed49fb7ccc72527204">Gtk::ToolButton</a>.
</div>
</div><p>
<a class="anchor" name="6d5506c273ce86a54862ba3b70758b47"></a><!-- doxytag: member="Gtk::MenuToolButton::gobj" ref="6d5506c273ce86a54862ba3b70758b47" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GtkMenuToolButton* Gtk::MenuToolButton::gobj </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Provides access to the underlying C GtkObject.
<p>
<p>
Reimplemented from <a class="el" href="classGtk_1_1ToolButton.html#451fe61a9536f6eb5e55e70ba79eaeea">Gtk::ToolButton</a>.
</div>
</div><p>
<a class="anchor" name="261f2932985ebd7ad526661b9bf14d64"></a><!-- doxytag: member="Gtk::MenuToolButton::on_show_menu" ref="261f2932985ebd7ad526661b9bf14d64" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void Gtk::MenuToolButton::on_show_menu </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="c12913e5c50f1a45c6a1a9f42ca79a71"></a><!-- doxytag: member="Gtk::MenuToolButton::property_menu" ref="c12913e5c50f1a45c6a1a9f42ca79a71" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="el" href="classGtk_1_1Menu.html">Menu</a>*> Gtk::MenuToolButton::property_menu </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The dropdown menu.
<p>
You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>
</div>
</div><p>
<a class="anchor" name="e33e9b90b4063b2a4b93793b0e9fcb68"></a><!-- doxytag: member="Gtk::MenuToolButton::property_menu" ref="e33e9b90b4063b2a4b93793b0e9fcb68" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="el" href="classGtk_1_1Menu.html">Menu</a>*> Gtk::MenuToolButton::property_menu </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The dropdown menu.
<p>
You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>
</div>
</div><p>
<a class="anchor" name="afe7aa1160bed6ab4b22f0cc7cdce180"></a><!-- doxytag: member="Gtk::MenuToolButton::set_arrow_tooltip" ref="afe7aa1160bed6ab4b22f0cc7cdce180" args="(Tooltips &tooltips, const Glib::ustring &tip_text, const Glib::ustring &tip_private)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::MenuToolButton::set_arrow_tooltip </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classGtk_1_1Tooltips.html">Tooltips</a>& </td>
<td class="paramname"> <em>tooltips</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>tip_text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>tip_private</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the <a class="el" href="classGtk_1_1Tooltips.html">Gtk::Tooltips</a> object to be used for arrow button which pops up the menu.
<p>
See <a class="el" href="classGtk_1_1ToolItem.html#eabf9f4f654dfedbc40d0b7b9bc3eacc">Gtk::ToolItem::set_tooltip()</a> for setting a tooltip on the whole <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>.<p>
<dl compact><dt><b><a class="el" href="newin2p6s.html#_newin2p6s000140">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
Deprecated: 2.12: Use <a class="el" href="classGtk_1_1MenuToolButton.html#59259aa6cb99757c9a459315c6d60b15">set_arrow_tooltip_text()</a> instead. <dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000021">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1MenuToolButton.html#59259aa6cb99757c9a459315c6d60b15">set_arrow_tooltip_text()</a> or <a class="el" href="classGtk_1_1MenuToolButton.html#64097d80577cf2eae567ca100e7a286c">set_arrow_tooltip_markup()</a> instead </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>tooltips</em> </td><td>The <a class="el" href="classGtk_1_1Tooltips.html">Gtk::Tooltips</a> object to be used. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>tip_text</em> </td><td>Text to be used as tooltip text for tool_item. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>tip_private</em> </td><td>Text to be used as private tooltip text. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="64097d80577cf2eae567ca100e7a286c"></a><!-- doxytag: member="Gtk::MenuToolButton::set_arrow_tooltip_markup" ref="64097d80577cf2eae567ca100e7a286c" args="(const Glib::ustring &markup)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::MenuToolButton::set_arrow_tooltip_markup </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>markup</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the tooltip markup text to be used as tooltip for the arrow button which pops up the menu.
<p>
See <a class="el" href="classGtk_1_1ToolItem.html#eabf9f4f654dfedbc40d0b7b9bc3eacc">Gtk::ToolItem::set_tooltip()</a> for setting a tooltip on the whole <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>.<p>
<dl compact><dt><b><a class="el" href="newin2p12s.html#_newin2p12s000050">Since gtkmm 2.12:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>markup</em> </td><td>Markup text to be used as tooltip text for button's arrow button. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="59259aa6cb99757c9a459315c6d60b15"></a><!-- doxytag: member="Gtk::MenuToolButton::set_arrow_tooltip_text" ref="59259aa6cb99757c9a459315c6d60b15" args="(const Glib::ustring &text)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::MenuToolButton::set_arrow_tooltip_text </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>text</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the tooltip text to be used as tooltip for the arrow button which pops up the menu.
<p>
See <a class="el" href="classGtk_1_1ToolItem.html#eabf9f4f654dfedbc40d0b7b9bc3eacc">Gtk::ToolItem::set_tooltip()</a> for setting a tooltip on the whole <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>.<p>
<dl compact><dt><b><a class="el" href="newin2p12s.html#_newin2p12s000049">Since gtkmm 2.12:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>text</em> </td><td>Text to be used as tooltip text for button's arrow button. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="9ec12649e132fd492160be1788546705"></a><!-- doxytag: member="Gtk::MenuToolButton::set_menu" ref="9ec12649e132fd492160be1788546705" args="(Menu &menu)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::MenuToolButton::set_menu </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classGtk_1_1Menu.html">Menu</a>& </td>
<td class="paramname"> <em>menu</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a> that is popped up when the user clicks on the arrow.
<p>
If <em>menu</em> is <code>0</code>, the arrow button becomes insensitive.<p>
<dl compact><dt><b><a class="el" href="newin2p6s.html#_newin2p6s000137">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>menu</em> </td><td>The <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a> associated with <a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="1f3e1834515c97d40d9b57d0fde6bf60"></a><!-- doxytag: member="Gtk::MenuToolButton::signal_show_menu" ref="1f3e1834515c97d40d9b57d0fde6bf60" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>< void > Gtk::MenuToolButton::signal_show_menu </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl class="user" compact><dt><b>Prototype:</b></dt><dd><code>void on_my_show_menu()</code> </dd></dl>
<p>
</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="e20b5bb8c723c755dbc71532da249de0"></a><!-- doxytag: member="Gtk::MenuToolButton::wrap" ref="e20b5bb8c723c755dbc71532da249de0" args="(GtkMenuToolButton *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>* wrap </td>
<td>(</td>
<td class="paramtype">GtkMenuToolButton * </td>
<td class="paramname"> <em>object</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [related]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The C instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>take_copy</em> </td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="menutoolbutton_8h.html">menutoolbutton.h</a></ul>
</div>
<!-- end main content -->
<hr><address><small>
Generated for gtkmm 2.4 by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.1 © 1997-2001</small></address>
</body>
</html>
|