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 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058
|
<!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::Menu 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_1Menu.html">Menu</a></div>
<h1>Gtk::Menu Class Reference<br>
<small>
[<a class="el" href="group__Widgets.html">Widgets</a>, <a class="el" href="group__Menus.html">Menu classes</a>]</small>
</h1><!-- doxytag: class="Gtk::Menu" --><!-- doxytag: inherits="Gtk::MenuShell" -->Inheritance diagram for Gtk::Menu:<p><center><img src="classGtk_1_1Menu__inherit__graph.png" border="0" usemap="#Gtk_1_1Menu__inherit__map" alt="Inheritance graph"></center>
<map name="Gtk_1_1Menu__inherit__map">
<area href="classGtk_1_1RecentChooserMenu.html" shape="rect" coords="25,626,209,652" alt="">
<area href="classGtk_1_1MenuShell.html" shape="rect" coords="59,471,176,498" alt="">
<area href="classGtk_1_1Container.html" shape="rect" coords="61,394,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,266" 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,162,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,162,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,34" alt="">
<area href="classAtk_1_1Implementor.html" shape="rect" coords="120,239,251,266" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1Menu-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A drop-down menu consisting of <a class="el" href="classGtk_1_1MenuItem.html">Gtk::MenuItem</a> objects which can be navigated and activated by the user to perform application functions.
<p>
Menus are normally placed inside a <a class="el" href="classGtk_1_1MenuBar.html">Gtk::MenuBar</a> or another <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a> as a sub menu. A <a class="el" href="classGtk_1_1Menu.html">Menu</a> can also be popped up, for instance as a right-click context menu, by calling the <a class="el" href="classGtk_1_1Menu.html#6501cd09e10a13f18249202571f02a78">popup()</a> method. See also <a class="el" href="classGtk_1_1OptionMenu.html">Gtk::OptionMenu</a>.
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef sigc::slot< void,<br>
int&, int&, bool& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#c8978c6bcd462454c19e70a7f8805ea6">SlotPositionCalc</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">For instance, void on_popup_menu_position(int& x, int& y, bool& push_in);. <a href="#c8978c6bcd462454c19e70a7f8805ea6"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#553a507018a5b411c6e839d710cd5805">attach</a> (<a class="el" href="classGtk_1_1Widget.html">Gtk::Widget</a>& child, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a new <a class="el" href="classGtk_1_1MenuItem.html">Gtk::MenuItem</a> to a (table) menu. <a href="#553a507018a5b411c6e839d710cd5805"></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_1Menu.html#56101a2dfae44d7b5ae4220b7acac006">detach</a> ()</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_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#e14814ecc569b88baf07beb330627cb9">get_accel_group</a> () const</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_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#7bdd6c75710d48e4655bb28a4fb822cd">get_accel_group</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#b080813bcf5ced46de564746e7cfc5de">get_active</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#b7ea3340aadb2c3afcedcd65ac6d3398">get_active</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#3c65f05eee732cc88a055ff2f6f39796">get_attach_widget</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGtk_1_1Widget.html">Widget</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#13e438d2b9e678178ab83eb20f4ab3fb">get_attach_widget</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#c14719d5ebc734c902a2372a09535a4d">get_tearoff_state</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return value: <code>true</code> if the menu is currently torn off. <a href="#c14719d5ebc734c902a2372a09535a4d"></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_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#c00cc2ccc01eb7fc40ab3770ab2d2cca">get_title</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return value: the title of the menu, or <code>0</code> if the menu has no. <a href="#c00cc2ccc01eb7fc40ab3770ab2d2cca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GtkMenu* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#5f8a0a22d44f49520d73c7e894a8c43f">gobj</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#5f8a0a22d44f49520d73c7e894a8c43f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GtkMenu* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#08434c6b137ce53eb939b09d577aa9bb">gobj</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#08434c6b137ce53eb939b09d577aa9bb"></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_1Menu.html#fd6add4a7ef105f29efa125bb5ef40cf">Menu</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#976bd97bc3879ed371cf9ef178a40543">popdown</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#dfcc6dd5dbc296bf8cdda4556b572784">popup</a> (guint button, guint32 activate_time)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Displays a menu and makes it available for selection. <a href="#dfcc6dd5dbc296bf8cdda4556b572784"></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_1Menu.html#4c66c33c8fdfe3e837b1fcf20f302cf7">popup</a> (const <a class="el" href="classGtk_1_1Menu.html#c8978c6bcd462454c19e70a7f8805ea6">SlotPositionCalc</a>& position_calc_slot, guint button, guint32 activate_time)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Displays a menu and makes it available for selection. <a href="#4c66c33c8fdfe3e837b1fcf20f302cf7"></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_1Menu.html#6501cd09e10a13f18249202571f02a78">popup</a> (<a class="el" href="classGtk_1_1MenuShell.html">MenuShell</a>& parent_menu_shell, <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>& parent_menu_item, const <a class="el" href="classGtk_1_1Menu.html#c8978c6bcd462454c19e70a7f8805ea6">SlotPositionCalc</a>& slot, guint button, guint32 activate_time)</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="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="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#9de0531e9373344ff68af791e9b912a7">property_tearoff_title</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A title that may be displayed by the window manager when this menu is torn-off. <a href="#9de0531e9373344ff68af791e9b912a7"></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="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="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#0217b7e49e4412f76fc5f739c3a91a26">property_tearoff_title</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A title that may be displayed by the window manager when this menu is torn-off. <a href="#0217b7e49e4412f76fc5f739c3a91a26"></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_1Menu.html#b4c6d8d9f9c915c1fab7344440cb6e7e">reorder_child</a> (const <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>& child, int position)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#84f2f1e74ba1a6316077a4dcee13ed87">reposition</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#82f9e1d2e501b7cacec74bb9e3c7e4ce">set_accel_group</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>>& accel_group)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a67f1f54bd72aa580e87150c5860a4b3">set_accel_path</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>& accel_path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets an accelerator path for this menu from which accelerator paths for its immediate children, its menu items, can be constructed. <a href="#a67f1f54bd72aa580e87150c5860a4b3"></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_1Menu.html#392d8010777bde0686aa904b73db265a">set_active</a> (guint index)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#3a407327705ee7a135674fb7d75732a4">set_monitor</a> (int monitor_num)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Informs GTK+ on which monitor a menu should be popped up. <a href="#3a407327705ee7a135674fb7d75732a4"></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_1Menu.html#7ee89975364a523c4662a188c02eaf28">set_screen</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a>>& screen)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the <a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a> on which the menu will be displayed. <a href="#7ee89975364a523c4662a188c02eaf28"></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_1Menu.html#b6c92b23e8efc7524882ca11ef956178">set_tearoff_state</a> (bool torn_off=true)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#53cd143ce2b01b865fcf0171691623a8">set_title</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>& title)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the title string for the menu. <a href="#53cd143ce2b01b865fcf0171691623a8"></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_1Menu.html#7202ceac91d65cbf09def78c4f7e6628">unset_accel_group</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#8c2228e776a0f1f8e3a3328c7e5f83a6">unset_title</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#813c1f65cc355c32c9eb59227e3fe01e">~Menu</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Protected Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#450e31c5acea8c945f1e364e1e1f6e39">GtkMenuDetachFunc</a> (GtkWidget* attach_widget, GtkMenu* menu)</td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#192b045df4c37eaff1277e3589960ac7">attach_to_widget</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>& attach_widget)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Attaches the menu to the widget. <a href="#192b045df4c37eaff1277e3589960ac7"></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_1Menu.html#bbeea8311b50e1c2c180d83206431d71">attach_to_widget</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>& attach_widget, <a class="el" href="classGtk_1_1Menu.html#450e31c5acea8c945f1e364e1e1f6e39">GtkMenuDetachFunc</a> detacher)</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_1Menu.html">Gtk::Menu</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#553dba6e5634da8fcf6381bc83bbc20f">wrap</a> (GtkMenu* 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="#553dba6e5634da8fcf6381bc83bbc20f"></a><br></td></tr>
</table>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="450e31c5acea8c945f1e364e1e1f6e39"></a><!-- doxytag: member="Gtk::Menu::GtkMenuDetachFunc" ref="450e31c5acea8c945f1e364e1e1f6e39" args="(GtkWidget *attach_widget, GtkMenu *menu)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(*) <a class="el" href="classGtk_1_1Menu.html#450e31c5acea8c945f1e364e1e1f6e39">Gtk::Menu::GtkMenuDetachFunc</a>(GtkWidget* attach_widget, GtkMenu* menu)<code> [protected]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="c8978c6bcd462454c19e70a7f8805ea6"></a><!-- doxytag: member="Gtk::Menu::SlotPositionCalc" ref="c8978c6bcd462454c19e70a7f8805ea6" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef sigc::slot<void, int&, int&, bool&> <a class="el" href="classGtk_1_1Menu.html#c8978c6bcd462454c19e70a7f8805ea6">Gtk::Menu::SlotPositionCalc</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
For instance, void on_popup_menu_position(int& x, int& y, bool& push_in);.
<p>
</div>
</div><p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="813c1f65cc355c32c9eb59227e3fe01e"></a><!-- doxytag: member="Gtk::Menu::~Menu" ref="813c1f65cc355c32c9eb59227e3fe01e" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual Gtk::Menu::~Menu </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="fd6add4a7ef105f29efa125bb5ef40cf"></a><!-- doxytag: member="Gtk::Menu::Menu" ref="fd6add4a7ef105f29efa125bb5ef40cf" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Gtk::Menu::Menu </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="553a507018a5b411c6e839d710cd5805"></a><!-- doxytag: member="Gtk::Menu::attach" ref="553a507018a5b411c6e839d710cd5805" args="(Gtk::Widget &child, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::attach </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Gtk::Widget</a>& </td>
<td class="paramname"> <em>child</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">guint </td>
<td class="paramname"> <em>left_attach</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">guint </td>
<td class="paramname"> <em>right_attach</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">guint </td>
<td class="paramname"> <em>top_attach</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">guint </td>
<td class="paramname"> <em>bottom_attach</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>
Adds a new <a class="el" href="classGtk_1_1MenuItem.html">Gtk::MenuItem</a> to a (table) menu.
<p>
The number of 'cells' that an item will occupy is specified by <em>left_attach</em> , <em>right_attach</em> , <em>top_attach</em> and <em>bottom_attach</em> . These each represent the leftmost, rightmost, uppermost and lower column and row numbers of the table. (Columns and rows are indexed from zero).<p>
Note that this function is not related to <a class="el" href="classGtk_1_1Menu.html#56101a2dfae44d7b5ae4220b7acac006">detach()</a>.<p>
<dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000203">Since gtkmm 2.4:</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>child</em> </td><td>A <a class="el" href="classGtk_1_1MenuItem.html">Gtk::MenuItem</a>. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>left_attach</em> </td><td>The column number to attach the left side of the item to. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>right_attach</em> </td><td>The column number to attach the right side of the item to. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>top_attach</em> </td><td>The row number to attach the top of the item to. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>bottom_attach</em> </td><td>The row number to attach the bottom of the item to. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="192b045df4c37eaff1277e3589960ac7"></a><!-- doxytag: member="Gtk::Menu::attach_to_widget" ref="192b045df4c37eaff1277e3589960ac7" args="(Widget &attach_widget)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::attach_to_widget </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>& </td>
<td class="paramname"> <em>attach_widget</em> </td>
<td> ) </td>
<td width="100%"><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Attaches the menu to the widget.
<p>
param : the <a class="el" href="classGtk_1_1Widget.html">Widget</a> that the menu will be attached to.<p>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000071">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
</div>
</div><p>
<a class="anchor" name="bbeea8311b50e1c2c180d83206431d71"></a><!-- doxytag: member="Gtk::Menu::attach_to_widget" ref="bbeea8311b50e1c2c180d83206431d71" args="(Widget &attach_widget, GtkMenuDetachFunc detacher)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::attach_to_widget </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>& </td>
<td class="paramname"> <em>attach_widget</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classGtk_1_1Menu.html#450e31c5acea8c945f1e364e1e1f6e39">GtkMenuDetachFunc</a> </td>
<td class="paramname"> <em>detacher</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="56101a2dfae44d7b5ae4220b7acac006"></a><!-- doxytag: member="Gtk::Menu::detach" ref="56101a2dfae44d7b5ae4220b7acac006" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::detach </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="e14814ecc569b88baf07beb330627cb9"></a><!-- doxytag: member="Gtk::Menu::get_accel_group" ref="e14814ecc569b88baf07beb330627cb9" 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_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> Gtk::Menu::get_accel_group </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="7bdd6c75710d48e4655bb28a4fb822cd"></a><!-- doxytag: member="Gtk::Menu::get_accel_group" ref="7bdd6c75710d48e4655bb28a4fb822cd" 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_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> Gtk::Menu::get_accel_group </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="b080813bcf5ced46de564746e7cfc5de"></a><!-- doxytag: member="Gtk::Menu::get_active" ref="b080813bcf5ced46de564746e7cfc5de" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>* Gtk::Menu::get_active </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="b7ea3340aadb2c3afcedcd65ac6d3398"></a><!-- doxytag: member="Gtk::Menu::get_active" ref="b7ea3340aadb2c3afcedcd65ac6d3398" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>* Gtk::Menu::get_active </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="3c65f05eee732cc88a055ff2f6f39796"></a><!-- doxytag: member="Gtk::Menu::get_attach_widget" ref="3c65f05eee732cc88a055ff2f6f39796" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::Menu::get_attach_widget </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="13e438d2b9e678178ab83eb20f4ab3fb"></a><!-- doxytag: member="Gtk::Menu::get_attach_widget" ref="13e438d2b9e678178ab83eb20f4ab3fb" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::Menu::get_attach_widget </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="c14719d5ebc734c902a2372a09535a4d"></a><!-- doxytag: member="Gtk::Menu::get_tearoff_state" ref="c14719d5ebc734c902a2372a09535a4d" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gtk::Menu::get_tearoff_state </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return value: <code>true</code> if the menu is currently torn off.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the menu is currently torn off. </dd></dl>
</div>
</div><p>
<a class="anchor" name="c00cc2ccc01eb7fc40ab3770ab2d2cca"></a><!-- doxytag: member="Gtk::Menu::get_title" ref="c00cc2ccc01eb7fc40ab3770ab2d2cca" 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_1ustring.html">Glib::ustring</a> Gtk::Menu::get_title </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return value: the title of the menu, or <code>0</code> if the menu has no.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The title of the menu, or <code>0</code> if the menu has no title set on it. This string is owned by the widget and should not be modified or freed. </dd></dl>
</div>
</div><p>
<a class="anchor" name="5f8a0a22d44f49520d73c7e894a8c43f"></a><!-- doxytag: member="Gtk::Menu::gobj" ref="5f8a0a22d44f49520d73c7e894a8c43f" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const GtkMenu* Gtk::Menu::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_1MenuShell.html#f0006f8bc57e3a8b02d25c38ac923273">Gtk::MenuShell</a>.
<p>
Reimplemented in <a class="el" href="classGtk_1_1RecentChooserMenu.html#d90f0a4a90924aef0f3a00afaf57e015">Gtk::RecentChooserMenu</a>.
</div>
</div><p>
<a class="anchor" name="08434c6b137ce53eb939b09d577aa9bb"></a><!-- doxytag: member="Gtk::Menu::gobj" ref="08434c6b137ce53eb939b09d577aa9bb" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GtkMenu* Gtk::Menu::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_1MenuShell.html#bb7c2641f9e3624f3225dcf76d8b994c">Gtk::MenuShell</a>.
<p>
Reimplemented in <a class="el" href="classGtk_1_1RecentChooserMenu.html#e3863ae813b85f9b9ac6f4075370a55e">Gtk::RecentChooserMenu</a>.
</div>
</div><p>
<a class="anchor" name="976bd97bc3879ed371cf9ef178a40543"></a><!-- doxytag: member="Gtk::Menu::popdown" ref="976bd97bc3879ed371cf9ef178a40543" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::popdown </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="dfcc6dd5dbc296bf8cdda4556b572784"></a><!-- doxytag: member="Gtk::Menu::popup" ref="dfcc6dd5dbc296bf8cdda4556b572784" args="(guint button, guint32 activate_time)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::popup </td>
<td>(</td>
<td class="paramtype">guint </td>
<td class="paramname"> <em>button</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">guint32 </td>
<td class="paramname"> <em>activate_time</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>
Displays a menu and makes it available for selection.
<p>
Applications can use this function to display context-sensitive menus, at the current pointer position. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>button</em> </td><td>The button which was pressed to initiate the event. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>activate_time</em> </td><td>The time at which the activation event occurred. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="4c66c33c8fdfe3e837b1fcf20f302cf7"></a><!-- doxytag: member="Gtk::Menu::popup" ref="4c66c33c8fdfe3e837b1fcf20f302cf7" args="(const SlotPositionCalc &position_calc_slot, guint button, guint32 activate_time)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::popup </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1Menu.html#c8978c6bcd462454c19e70a7f8805ea6">SlotPositionCalc</a>& </td>
<td class="paramname"> <em>position_calc_slot</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">guint </td>
<td class="paramname"> <em>button</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">guint32 </td>
<td class="paramname"> <em>activate_time</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>
Displays a menu and makes it available for selection.
<p>
Applications can use this function to display context-sensitive menus.<p>
The <em>button</em> parameter should be the mouse button pressed to initiate the menu popup. If the menu popup was initiated by something other than a mouse button press, such as a mouse button release or a keypress, <em>button</em> should be 0.<p>
The <em>activate_time</em> parameter should be the time stamp of the event that initiated the popup. If such an event is not available, use gtk_get_current_event_time() instead. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>func</em> </td><td>A position_calc_slot supplied function used to position the menu, or <code>0</code>. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>button</em> </td><td>The mouse button which was pressed to initiate the event. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>activate_time</em> </td><td>The time at which the activation event occurred. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="6501cd09e10a13f18249202571f02a78"></a><!-- doxytag: member="Gtk::Menu::popup" ref="6501cd09e10a13f18249202571f02a78" args="(MenuShell &parent_menu_shell, MenuItem &parent_menu_item, const SlotPositionCalc &slot, guint button, guint32 activate_time)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::popup </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classGtk_1_1MenuShell.html">MenuShell</a>& </td>
<td class="paramname"> <em>parent_menu_shell</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>& </td>
<td class="paramname"> <em>parent_menu_item</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classGtk_1_1Menu.html#c8978c6bcd462454c19e70a7f8805ea6">SlotPositionCalc</a>& </td>
<td class="paramname"> <em>slot</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">guint </td>
<td class="paramname"> <em>button</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">guint32 </td>
<td class="paramname"> <em>activate_time</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>
</div>
</div><p>
<a class="anchor" name="9de0531e9373344ff68af791e9b912a7"></a><!-- doxytag: member="Gtk::Menu::property_tearoff_title" ref="9de0531e9373344ff68af791e9b912a7" 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="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>> Gtk::Menu::property_tearoff_title </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
A title that may be displayed by the window manager when this menu is torn-off.
<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="0217b7e49e4412f76fc5f739c3a91a26"></a><!-- doxytag: member="Gtk::Menu::property_tearoff_title" ref="0217b7e49e4412f76fc5f739c3a91a26" 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="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>> Gtk::Menu::property_tearoff_title </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
A title that may be displayed by the window manager when this menu is torn-off.
<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="b4c6d8d9f9c915c1fab7344440cb6e7e"></a><!-- doxytag: member="Gtk::Menu::reorder_child" ref="b4c6d8d9f9c915c1fab7344440cb6e7e" args="(const MenuItem &child, int position)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::reorder_child </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>& </td>
<td class="paramname"> <em>child</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>position</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>
</div>
</div><p>
<a class="anchor" name="84f2f1e74ba1a6316077a4dcee13ed87"></a><!-- doxytag: member="Gtk::Menu::reposition" ref="84f2f1e74ba1a6316077a4dcee13ed87" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::reposition </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="82f9e1d2e501b7cacec74bb9e3c7e4ce"></a><!-- doxytag: member="Gtk::Menu::set_accel_group" ref="82f9e1d2e501b7cacec74bb9e3c7e4ce" args="(const Glib::RefPtr< AccelGroup > &accel_group)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::set_accel_group </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_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>>& </td>
<td class="paramname"> <em>accel_group</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="a67f1f54bd72aa580e87150c5860a4b3"></a><!-- doxytag: member="Gtk::Menu::set_accel_path" ref="a67f1f54bd72aa580e87150c5860a4b3" args="(const Glib::ustring &accel_path)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::set_accel_path </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>accel_path</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets an accelerator path for this menu from which accelerator paths for its immediate children, its menu items, can be constructed.
<p>
The main purpose of this function is to spare the programmer the inconvenience of having to call <a class="el" href="classGtk_1_1MenuItem.html#ab05629dd1ed0bb52b3efaf197e5b675">Gtk::MenuItem::set_accel_path()</a> on each menu item that should support runtime user changable accelerators. Instead, by just calling <a class="el" href="classGtk_1_1Menu.html#a67f1f54bd72aa580e87150c5860a4b3">set_accel_path()</a> on their parent, each menu item of this menu, that contains a label describing its purpose, automatically gets an accel path assigned. For example, a menu containing menu items "New" and "Exit", will, after <code>gtk_menu_set_accel_path (menu, "& lt;Gnumeric-Sheet& gt;/File");</code> has been called, assign its items the accel paths: <code>"& lt;Gnumeric-Sheet& gt;/File/New"</code> and <code>"& lt;Gnumeric-Sheet& gt;/File/Exit"</code>. Assigning accel paths to menu items then enables the user to change their accelerators at runtime. More details about accelerator paths and their default setups can be found at gtk_accel_map_add_entry(). <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>accel_path</em> </td><td>A valid accelerator path. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="392d8010777bde0686aa904b73db265a"></a><!-- doxytag: member="Gtk::Menu::set_active" ref="392d8010777bde0686aa904b73db265a" args="(guint index)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::set_active </td>
<td>(</td>
<td class="paramtype">guint </td>
<td class="paramname"> <em>index</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="3a407327705ee7a135674fb7d75732a4"></a><!-- doxytag: member="Gtk::Menu::set_monitor" ref="3a407327705ee7a135674fb7d75732a4" args="(int monitor_num)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::set_monitor </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>monitor_num</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Informs GTK+ on which monitor a menu should be popped up.
<p>
See gdk_screen_get_monitor_geometry().<p>
This function should be called from a Gtk::MenuPositionFunc if the menu should not appear on the same monitor as the pointer. This information can't be reliably inferred from the coordinates returned by a Gtk::MenuPositionFunc, since, for very long menus, these coordinates may extend beyond the monitor boundaries or even the screen boundaries.<p>
<dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000204">Since gtkmm 2.4:</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>monitor_num</em> </td><td>The number of the monitor on which the menu should be popped up. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="7ee89975364a523c4662a188c02eaf28"></a><!-- doxytag: member="Gtk::Menu::set_screen" ref="7ee89975364a523c4662a188c02eaf28" args="(const Glib::RefPtr< Gdk::Screen > &screen)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::set_screen </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_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a>>& </td>
<td class="paramname"> <em>screen</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the <a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a> on which the menu will be displayed.
<p>
<dl compact><dt><b><a class="el" href="newin2p2s.html#_newin2p2s000100">Since gtkmm 2.2:</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>screen</em> </td><td>A <a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a>, or <code>0</code> if the screen should be determined by the widget the menu is attached to. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="b6c92b23e8efc7524882ca11ef956178"></a><!-- doxytag: member="Gtk::Menu::set_tearoff_state" ref="b6c92b23e8efc7524882ca11ef956178" args="(bool torn_off=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::set_tearoff_state </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>torn_off</em> = <code>true</code> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="53cd143ce2b01b865fcf0171691623a8"></a><!-- doxytag: member="Gtk::Menu::set_title" ref="53cd143ce2b01b865fcf0171691623a8" args="(const Glib::ustring &title)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::set_title </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>title</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the title string for the menu.
<p>
The title is displayed when the menu is shown as a tearoff menu. If <em>title</em> is <code>0</code>, the menu will see if it is attached to a parent menu item, and if so it will try to use the same text as that menu item's label. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>title</em> </td><td>A string containing the title for the menu. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="7202ceac91d65cbf09def78c4f7e6628"></a><!-- doxytag: member="Gtk::Menu::unset_accel_group" ref="7202ceac91d65cbf09def78c4f7e6628" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::unset_accel_group </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="8c2228e776a0f1f8e3a3328c7e5f83a6"></a><!-- doxytag: member="Gtk::Menu::unset_title" ref="8c2228e776a0f1f8e3a3328c7e5f83a6" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::Menu::unset_title </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="553dba6e5634da8fcf6381bc83bbc20f"></a><!-- doxytag: member="Gtk::Menu::wrap" ref="553dba6e5634da8fcf6381bc83bbc20f" args="(GtkMenu *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a>* wrap </td>
<td>(</td>
<td class="paramtype">GtkMenu * </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="menu_8h.html">menu.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>
|