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 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>GTK+ Foundation Classes</title>
<link href="gfc.css" rel="stylesheet" type="text/css">
<meta content="The GFC Development Team" name="author">
<meta content="Core Library Reference Manual" name="description">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(243, 244, 248);"
alink="#000099" link="#000099" vlink="#990099">
<table style="text-align: left; width: 1227px; height: 117px;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td
style="text-align: center; background-color: rgb(255, 255, 255); width: 220px; vertical-align: top;"><img
alt="GFC Logo" src="../images/gfc.png"
style="width: 207px; height: 92px;"></td>
<td
style="text-align: center; background-color: rgb(87, 107, 152); vertical-align: middle;"><img
alt="GFC Title Logo" src="../images/gfc-title.png"
style="width: 418px; height: 76px;"><br>
</td>
</tr>
<tr>
<td
style="text-align: center; background-color: rgb(65, 77, 104); vertical-align: middle;"><big><span
style="color: rgb(255, 255, 153); font-weight: bold;">Reference Manual</span></big><br>
</td>
<td
style="text-align: center; background-color: rgb(148, 164, 200); vertical-align: middle;"><small
style="font-family: helvetica,arial,sans-serif;"><a
href="../html/index.html">Main Page</a> | <a
href="../html/namespaces.html">Namespace List</a> | <a
href="classes.html">Alphabetical List</a> | <a
href="../html/annotated.html">Class List</a> | <a
href="../html/files.html">File List</a></small><br>
</td>
</tr>
</tbody>
</table>
<small> </small>
</body>
</html>
<!-- Generated by Doxygen 1.3.8 -->
<h1>GFC::Gtk::Toolbar Class Reference</h1>A GtkToolbar C++ wrapper class.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="toolbar_8hh-source.html">gfc/gtk/toolbar.hh</a>></code>
<p>
<p>Inheritance diagram for GFC::Gtk::Toolbar:
<p><center><img src="classGFC_1_1Gtk_1_1Toolbar.png" usemap="#GFC::Gtk::Toolbar_map" border="0" alt=""></center>
<map name="GFC::Gtk::Toolbar_map">
<area href="classGFC_1_1Gtk_1_1Container.html" alt="GFC::Gtk::Container" shape="rect" coords="73,280,210,304">
<area href="classGFC_1_1Gtk_1_1Widget.html" alt="GFC::Gtk::Widget" shape="rect" coords="73,224,210,248">
<area href="classGFC_1_1Gtk_1_1Object.html" alt="GFC::Gtk::Object" shape="rect" coords="0,168,137,192">
<area href="classGFC_1_1Atk_1_1Implementor.html" alt="GFC::Atk::Implementor" shape="rect" coords="147,168,284,192">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html" alt="GFC::G::Object" shape="rect" coords="0,112,137,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInterface.html" alt="GFC::G::TypeInterface" shape="rect" coords="147,112,284,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="0,56,137,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="147,56,284,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="0,0,137,24">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="147,0,284,24">
</map>
<a href="classGFC_1_1Gtk_1_1Toolbar-members.html">List of all members.</a><h2>Signal Prototypes</h2>
<ul>
<li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">OrientationChangedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z932_6">orientation_changed_signal</a>
<dl class="el"><dd class="mdescRight">Orientation changed signal (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_0">sig_orientation_changed()</a>). <a href="#z932_6"></a><br></dl><li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">StyleChangedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z932_7">style_changed_signal</a>
<dl class="el"><dd class="mdescRight">Style changed signal (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_1">sig_style_changed()</a>) <a href="#z932_7"></a><br></dl><li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">PopupContextMenuSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z932_8">popup_context_menu_signal</a>
<dl class="el"><dd class="mdescRight">Popup context menu signal (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_2">sig_popup_context_menu()</a>). <a href="#z932_8"></a><br></dl></ul>
<h2>Public Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z933_0">Toolbar</a> ()
<dl class="el"><dd class="mdescRight">Construct a new default toolbar. <a href="#z933_0"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z933_1">Toolbar</a> (<a class="el" href="namespaceGFC_1_1Gtk.html#a329">Orientation</a> orientation)
<dl class="el"><dd class="mdescRight">Construct a new toolbar with the specifed <em>orientation</em>. <a href="#z933_1"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z933_2">Toolbar</a> (<a class="el" href="namespaceGFC_1_1Gtk.html#a329">Orientation</a> orientation, <a class="el" href="namespaceGFC_1_1Gtk.html#a342">ToolbarStyle</a> style)
<dl class="el"><dd class="mdescRight">Constrcut a new toolbar with the specified <em>orientation</em> and <em>style</em>. <a href="#z933_2"></a><br></dl><li><a class="anchor" name="z933_3" doxytag="GFC::Gtk::Toolbar::~Toolbar" ></a>
virtual <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z933_3">~Toolbar</a> ()
<dl class="el"><dd class="mdescRight">Destructor. <br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<ul>
<li><a class="anchor" name="z934_0" doxytag="GFC::Gtk::Toolbar::gtk_toolbar" ></a>
GtkToolbar * <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_0">gtk_toolbar</a> () const
<dl class="el"><dd class="mdescRight">Get a pointer to the GtkToolbar structure. <br></dl><li><a class="anchor" name="z934_1" doxytag="GFC::Gtk::Toolbar::operator GtkToolbar *" ></a>
<a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_1">operator GtkToolbar *</a> () const
<dl class="el"><dd class="mdescRight">Conversion operator; safely converts a <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html">Toolbar</a> to a GtkToolbar pointer. <br></dl><li>int <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_2">get_item_index</a> (const <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> &item) const
<dl class="el"><dd class="mdescRight">Obtains the position of item on the toolbar, starting from 0. <a href="#z934_2"></a><br></dl><li>int <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_3">get_n_items</a> () const
<dl class="el"><dd class="mdescRight">Gets the number of items on the toolbar. <a href="#z934_3"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> * <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_4">get_nth_item</a> (int n) const
<dl class="el"><dd class="mdescRight">Gets the tool item at position <em>n</em> on the toolbar, or null if the toolbar does not contain an n'th item. <a href="#z934_4"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_5">get_show_arrow</a> () const
<dl class="el"><dd class="mdescRight">Determines whether the toolbar has an overflow menu (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_8">set_show_arrow()</a>). <a href="#z934_5"></a><br></dl><li><a class="el" href="namespaceGFC_1_1Gtk.html#a329">Orientation</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_6">get_orientation</a> () const
<dl class="el"><dd class="mdescRight">Gets the current orientation of the toolbar (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_9">set_orientation()</a>). <a href="#z934_6"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_7">get_tooltips</a> () const
<dl class="el"><dd class="mdescRight">Determines whether tooltips are enabled (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_10">set_tooltips()</a>). <a href="#z934_7"></a><br></dl><li><a class="el" href="namespaceGFC_1_1Gtk.html#a342">ToolbarStyle</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_8">get_style</a> () const
<dl class="el"><dd class="mdescRight">Retrieves whether the toolbar has text, icons, or both (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_11">set_style()</a>). <a href="#z934_8"></a><br></dl><li><a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_9">get_icon_size</a> () const
<dl class="el"><dd class="mdescRight">Gets the current icon size for the icons on the toolbar (see set_icon_size()). <a href="#z934_9"></a><br></dl><li><a class="el" href="namespaceGFC_1_1Gtk.html#a333">ReliefStyle</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_10">get_relief_style</a> () const
<dl class="el"><dd class="mdescRight">Gets the relief style of buttons on the toolbar (see Gtk::Button::set_relief_style()). <a href="#z934_10"></a><br></dl><li>int <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z934_11">get_drop_index</a> (int x, int y) const
<dl class="el"><dd class="mdescRight">Obtains the position corresponding to the indicated point on the toolbar. <a href="#z934_11"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_1">append</a> (<a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> &item, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &tooltip)
<dl class="el"><dd class="mdescRight">Appends a <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> to the end of the toolbar. <a href="#z935_1"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_3">prepend</a> (<a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> &item, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &tooltip)
<dl class="el"><dd class="mdescRight">Prepends a <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> to the start of the toolbar. <a href="#z935_3"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_5">insert</a> (<a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> &item, int pos, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &tooltip)
<dl class="el"><dd class="mdescRight">Insert a <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> into the toolbar at position <em>pos</em>. <a href="#z935_5"></a><br></dl><li><a class="anchor" name="z935_6" doxytag="GFC::Gtk::Toolbar::append_separator" ></a>
void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_6">append_separator</a> ()
<dl class="el"><dd class="mdescRight">Adds a new separator tool item to the end of the toolbar. <br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_7">insert_separator</a> (int pos)
<dl class="el"><dd class="mdescRight">Inserts a new separator tool item into the toolbar at the specified position. <a href="#z935_7"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_8">set_show_arrow</a> (bool show_arrow)
<dl class="el"><dd class="mdescRight">Sets whether to show an overflow menu when toolbar doesn't have room for all items on it. <a href="#z935_8"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_9">set_orientation</a> (<a class="el" href="namespaceGFC_1_1Gtk.html#a329">Orientation</a> orientation)
<dl class="el"><dd class="mdescRight">Sets whether a toolbar should appear horizontally or vertically. <a href="#z935_9"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_10">set_tooltips</a> (bool enable)
<dl class="el"><dd class="mdescRight">Sets if the tooltips of a toolbar should be active or not. <a href="#z935_10"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_11">set_style</a> (<a class="el" href="namespaceGFC_1_1Gtk.html#a342">ToolbarStyle</a> style)
<dl class="el"><dd class="mdescRight">Alters the view of toolbar to display either icons only, text only, or both. <a href="#z935_11"></a><br></dl><li><a class="anchor" name="z935_12" doxytag="GFC::Gtk::Toolbar::unset_style" ></a>
void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_12">unset_style</a> ()
<dl class="el"><dd class="mdescRight">Unsets the toolbar style set with <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_11">set_style()</a>, so that user preferences will be used to determine the toolbar style. <br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_13">set_drop_highlight_item</a> (<a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> &item, int index)
<dl class="el"><dd class="mdescRight">Highlights the toolbar to give an idea of what it would look like if <em>item</em> was added to the toolbar at the position indicated by index. <a href="#z935_13"></a><br></dl><li><a class="anchor" name="z935_14" doxytag="GFC::Gtk::Toolbar::unset_drop_highlight_item" ></a>
void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_14">unset_drop_highlight_item</a> ()
<dl class="el"><dd class="mdescRight">Turn off drop highlighting. <br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_16">set_tooltip</a> (<a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> &item, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &tip_text, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &tip_private=0)
<dl class="el"><dd class="mdescRight">Sets the tooltip to be used for the tool item, the text to be displayed as tooltip on the item and the private text to be used, if any. <a href="#z935_16"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Signal Proxies</div></td></tr>
<ul>
<li><a class="anchor" name="z936_0" doxytag="GFC::Gtk::Toolbar::sig_orientation_changed" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">OrientationChangedSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_0">sig_orientation_changed</a> ()
<dl class="el"><dd class="mdescRight">Connect to the orientation_changed_signal; emitted when the orientation of a toolbar is changed. <br></dl><li><a class="anchor" name="z936_1" doxytag="GFC::Gtk::Toolbar::sig_style_changed" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">StyleChangedSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_1">sig_style_changed</a> ()
<dl class="el"><dd class="mdescRight">Connect to the style_changed_signal; emitted when ever the style of a toolbar is adjusted. <br></dl><li><a class="anchor" name="z936_2" doxytag="GFC::Gtk::Toolbar::sig_popup_context_menu" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">PopupContextMenuSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_2">sig_popup_context_menu</a> ()
<dl class="el"><dd class="mdescRight">Connect to the popup_context_menu_signal; emitted when when the user right-clicks the toolbar or uses the keybinding to display a popup menu. <br></dl></ul>
<h2>Protected Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z931_0">Toolbar</a> (GtkToolbar *toolbar, bool <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html#z143_1">owns_reference</a>=false)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html">Toolbar</a> from an existing GtkToolbar. <a href="#z931_0"></a><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A GtkToolbar C++ wrapper class.
<p>
A toolbar can contain instances of a subclass of <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">Gtk::ToolItem</a>. To add a <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> to the a toolbar, use <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_1">append()</a>, <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_3">prepend()</a> or <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_5">insert()</a>. To remove an item from the toolbar use <a class="el" href="classGFC_1_1Gtk_1_1Container.html#z461_1">Gtk::Container::remove()</a>. To add a button to the toolbar, add an instance of <a class="el" href="classGFC_1_1Gtk_1_1ToolButton.html">Gtk::ToolButton</a>.<p>
<a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html">Toolbar</a> items can be visually grouped by adding instances of <a class="el" href="classGFC_1_1Gtk_1_1SeparatorToolItem.html">Gtk::SeparatorToolItem</a> to the toolbar. If a <a class="el" href="classGFC_1_1Gtk_1_1SeparatorToolItem.html">SeparatorToolItem</a> has the 'expand' property set to <em>true</em> and the 'draw' property set to <em>false</em> the effect is to force all following items to the end of the toolbar. Creating a context menu for the toolbar can be done by connecting to the <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html">Gtk::Toolbar</a> popup_context_menu signal (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_2">sig_popup_context_menu()</a>).
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="z931_0" doxytag="GFC::Gtk::Toolbar::Toolbar" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> GFC::Gtk::Toolbar::Toolbar </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">GtkToolbar * </td>
<td class="mdname" nowrap> <em>toolbar</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>owns_reference</em> = <code>false</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [explicit, protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html">Toolbar</a> from an existing GtkToolbar.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>toolbar</em> </td><td>A pointer to a GtkToolbar. </td></tr>
<tr><td></td><td valign=top><em>owns_reference</em> </td><td>Set false if the initial reference count is floating, set true if it's not.</td></tr>
</table>
</dl>
<br>
The <em>toolbar</em> can be a newly created GtkToolbar or an existing GtkToolbar (see <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html#z68_0">G::Object::Object</a>). </td>
</tr>
</table>
<a class="anchor" name="z933_0" doxytag="GFC::Gtk::Toolbar::Toolbar" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> GFC::Gtk::Toolbar::Toolbar </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Construct a new default toolbar.
<p>
The default toolbar is a horizontal toolbar that displays both icons and text. </td>
</tr>
</table>
<a class="anchor" name="z933_1" doxytag="GFC::Gtk::Toolbar::Toolbar" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> GFC::Gtk::Toolbar::Toolbar </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Gtk.html#a329">Orientation</a> </td>
<td class="mdname1" valign="top" nowrap> <em>orientation</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [explicit]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Construct a new toolbar with the specifed <em>orientation</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>orientation</em> </td><td>The Orientation, either horizontal or vertical.</td></tr>
</table>
</dl>
<br>
By default this toolbar displays both icons and text. To change the toolbar style call <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_11">Gtk::Toolbar::set_style()</a>; </td>
</tr>
</table>
<a class="anchor" name="z933_2" doxytag="GFC::Gtk::Toolbar::Toolbar" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> GFC::Gtk::Toolbar::Toolbar </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Gtk.html#a329">Orientation</a> </td>
<td class="mdname" nowrap> <em>orientation</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a342">ToolbarStyle</a> </td>
<td class="mdname" nowrap> <em>style</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Constrcut a new toolbar with the specified <em>orientation</em> and <em>style</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>orientation</em> </td><td>The Orientation, either horizontal or vertical. </td></tr>
<tr><td></td><td valign=top><em>style</em> </td><td>The style for the toolbar. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z935_1" doxytag="GFC::Gtk::Toolbar::append" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::append </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> & </td>
<td class="mdname" nowrap> <em>item</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> & </td>
<td class="mdname" nowrap> <em>tooltip</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Appends a <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> to the end of the toolbar.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>item</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a>. </td></tr>
<tr><td></td><td valign=top><em>tooltip</em> </td><td>The tooltip to display for the <em>item</em>. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z934_11" doxytag="GFC::Gtk::Toolbar::get_drop_index" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int GFC::Gtk::Toolbar::get_drop_index </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname" nowrap> <em>x</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>y</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Obtains the position corresponding to the indicated point on the toolbar.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>x</em> </td><td>The X coordinate of a point on the toolbar, in toolbar coordinates. </td></tr>
<tr><td></td><td valign=top><em>y</em> </td><td>The Y coordinate of a point on the toolbar, in toolbar coordinates. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The position corresponding to the point (x, y) on the toolbar.</dd></dl>
<br>
This is useful when dragging items to the toolbar. This method returns the position a new item should be inserted. </td>
</tr>
</table>
<a class="anchor" name="z934_9" doxytag="GFC::Gtk::Toolbar::get_icon_size" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> GFC::Gtk::Toolbar::get_icon_size </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the current icon size for the icons on the toolbar (see set_icon_size()).
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The current icon size. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z934_2" doxytag="GFC::Gtk::Toolbar::get_item_index" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int GFC::Gtk::Toolbar::get_item_index </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>item</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Obtains the position of item on the toolbar, starting from 0.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>item</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> that is a child of the toolbar. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The position of <em>item</em> on the toolbar.</dd></dl>
<br>
It is an error if item is not a child of the toolbar. </td>
</tr>
</table>
<a class="anchor" name="z934_3" doxytag="GFC::Gtk::Toolbar::get_n_items" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int GFC::Gtk::Toolbar::get_n_items </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the number of items on the toolbar.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The number of items on the toolbar. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z934_4" doxytag="GFC::Gtk::Toolbar::get_nth_item" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a>* GFC::Gtk::Toolbar::get_nth_item </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the tool item at position <em>n</em> on the toolbar, or null if the toolbar does not contain an n'th item.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>n</em> </td><td>A zero-based position on the toolbar. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The nth <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> on the toolbar, or null if there isn't an nth item. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z934_6" doxytag="GFC::Gtk::Toolbar::get_orientation" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="namespaceGFC_1_1Gtk.html#a329">Orientation</a> GFC::Gtk::Toolbar::get_orientation </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the current orientation of the toolbar (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_9">set_orientation()</a>).
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The current orientation. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z934_10" doxytag="GFC::Gtk::Toolbar::get_relief_style" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="namespaceGFC_1_1Gtk.html#a333">ReliefStyle</a> GFC::Gtk::Toolbar::get_relief_style </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the relief style of buttons on the toolbar (see Gtk::Button::set_relief_style()).
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The relief style of buttons on the toolbar. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z934_5" doxytag="GFC::Gtk::Toolbar::get_show_arrow" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool GFC::Gtk::Toolbar::get_show_arrow </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Determines whether the toolbar has an overflow menu (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_8">set_show_arrow()</a>).
<p>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if the toolbar has an overflow menu. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z934_8" doxytag="GFC::Gtk::Toolbar::get_style" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="namespaceGFC_1_1Gtk.html#a342">ToolbarStyle</a> GFC::Gtk::Toolbar::get_style </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Retrieves whether the toolbar has text, icons, or both (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_11">set_style()</a>).
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The current style of the toolbar. </dd></dl>
<p>
Reimplemented from <a class="el" href="classGFC_1_1Gtk_1_1Widget.html#z1052_49">GFC::Gtk::Widget</a>.
<p>
</td>
</tr>
</table>
<a class="anchor" name="z934_7" doxytag="GFC::Gtk::Toolbar::get_tooltips" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool GFC::Gtk::Toolbar::get_tooltips </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Determines whether tooltips are enabled (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z935_10">set_tooltips()</a>).
<p>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if tooltips are enabled. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z935_5" doxytag="GFC::Gtk::Toolbar::insert" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::insert </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> & </td>
<td class="mdname" nowrap> <em>item</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>pos</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> & </td>
<td class="mdname" nowrap> <em>tooltip</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Insert a <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> into the toolbar at position <em>pos</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>item</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a>. </td></tr>
<tr><td></td><td valign=top><em>pos</em> </td><td>The position of the new item. </td></tr>
<tr><td></td><td valign=top><em>tooltip</em> </td><td>The tooltip to display for the <em>item</em>.</td></tr>
</table>
</dl>
<br>
If pos is 0 the item is prepended to the start of the toolbar. If pos is -1, the item is appended to the end of the toolbar. Otherwise the tool item is inserted at position pos. </td>
</tr>
</table>
<a class="anchor" name="z935_7" doxytag="GFC::Gtk::Toolbar::insert_separator" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::insert_separator </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>pos</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Inserts a new separator tool item into the toolbar at the specified position.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>pos</em> </td><td>The number of tool items to insert the space after.</td></tr>
</table>
</dl>
<br>
If <em>pos</em> is -1 the separator is added to the end of the toolbar. If <em>pos</em> is 0 the separator is added to the beginning of the toolbar. Otherwise the separator is inserted at position <em>pos</em>. </td>
</tr>
</table>
<a class="anchor" name="z935_3" doxytag="GFC::Gtk::Toolbar::prepend" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::prepend </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> & </td>
<td class="mdname" nowrap> <em>item</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> & </td>
<td class="mdname" nowrap> <em>tooltip</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Prepends a <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> to the start of the toolbar.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>item</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a>. </td></tr>
<tr><td></td><td valign=top><em>tooltip</em> </td><td>The tooltip to display for the <em>item</em>. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z935_13" doxytag="GFC::Gtk::Toolbar::set_drop_highlight_item" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::set_drop_highlight_item </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> & </td>
<td class="mdname" nowrap> <em>item</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>index</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Highlights the toolbar to give an idea of what it would look like if <em>item</em> was added to the toolbar at the position indicated by index.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>item</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a>. </td></tr>
<tr><td></td><td valign=top><em>index</em> </td><td>A position on the toolbar.</td></tr>
</table>
</dl>
<br>
The tool item passed to this function must not be part of any widget hierarchy. When an item is set as drop highlight item it can not added to any widget hierarchy or used as highlight item for another toolbar. </td>
</tr>
</table>
<a class="anchor" name="z935_9" doxytag="GFC::Gtk::Toolbar::set_orientation" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::set_orientation </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Gtk.html#a329">Orientation</a> </td>
<td class="mdname1" valign="top" nowrap> <em>orientation</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets whether a toolbar should appear horizontally or vertically.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>orientation</em> </td><td>The new Orientation. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z935_8" doxytag="GFC::Gtk::Toolbar::set_show_arrow" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::set_show_arrow </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>show_arrow</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets whether to show an overflow menu when toolbar doesn't have room for all items on it.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>show_arrow</em> </td><td>Set <em>true</em> to show an overflow menu.</td></tr>
</table>
</dl>
<br>
If <em>show_arrow</em> is true, items that there are not room for are available through an overflow menu. </td>
</tr>
</table>
<a class="anchor" name="z935_11" doxytag="GFC::Gtk::Toolbar::set_style" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::set_style </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Gtk.html#a342">ToolbarStyle</a> </td>
<td class="mdname1" valign="top" nowrap> <em>style</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Alters the view of toolbar to display either icons only, text only, or both.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>style</em> </td><td>The new style for the toolbar. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z935_16" doxytag="GFC::Gtk::Toolbar::set_tooltip" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::set_tooltip </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a> & </td>
<td class="mdname" nowrap> <em>item</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> & </td>
<td class="mdname" nowrap> <em>tip_text</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> & </td>
<td class="mdname" nowrap> <em>tip_private</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets the tooltip to be used for the tool item, the text to be displayed as tooltip on the item and the private text to be used, if any.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>item</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html">ToolItem</a>. </td></tr>
<tr><td></td><td valign=top><em>tip_text</em> </td><td>The text to be used as tooltip text for the tool item. </td></tr>
<tr><td></td><td valign=top><em>tip_private</em> </td><td>The text to be used as private tooltip text.</td></tr>
</table>
</dl>
<br>
Calling this convenience method is equivalent to calling <a class="el" href="classGFC_1_1Gtk_1_1ToolItem.html#z951_3">Gtk::ToolItem::set_tooltip()</a>. </td>
</tr>
</table>
<a class="anchor" name="z935_10" doxytag="GFC::Gtk::Toolbar::set_tooltips" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gtk::Toolbar::set_tooltips </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>enable</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets if the tooltips of a toolbar should be active or not.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>enable</em> </td><td>Set to false to disable the tooltips, or true to enable them. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="z932_6" doxytag="GFC::Gtk::Toolbar::orientation_changed_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">OrientationChangedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z932_6">GFC::Gtk::Toolbar::orientation_changed_signal</a><code> [static, protected]</code> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Orientation changed signal (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_0">sig_orientation_changed()</a>).
<p>
Calls a slot with the signature: <div class="fragment"><pre> <span class="keywordtype">void</span> function(Gtk::Orientation orientation);
<span class="comment">// orientation: The new Orientation of the toolbar.</span>
</pre></div> </td>
</tr>
</table>
<a class="anchor" name="z932_8" doxytag="GFC::Gtk::Toolbar::popup_context_menu_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">PopupContextMenuSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z932_8">GFC::Gtk::Toolbar::popup_context_menu_signal</a><code> [static, protected]</code> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Popup context menu signal (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_2">sig_popup_context_menu()</a>).
<p>
Calls a slot with the signature: <div class="fragment"><pre> <span class="keywordtype">bool</span> function(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> button);
<span class="comment">// x: The x coordinate of the point where the menu should appear.</span>
<span class="comment">// y: The y coordinate of the point where the menu should appear.</span>
<span class="comment">// button: The mouse button the user pressed, or -1.</span>
<span class="comment">// return: true if the signal was handled, <EM>false</EM> if not.</span>
</pre></div> </td>
</tr>
</table>
<a class="anchor" name="z932_7" doxytag="GFC::Gtk::Toolbar::style_changed_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">StyleChangedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z932_7">GFC::Gtk::Toolbar::style_changed_signal</a><code> [static, protected]</code> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Style changed signal (see <a class="el" href="classGFC_1_1Gtk_1_1Toolbar.html#z936_1">sig_style_changed()</a>)
<p>
Calls a slot with the signature: <div class="fragment"><pre> <span class="keywordtype">void</span> function(Gtk::ToolbarStyle style);
<span class="comment">// style: The new ToolbarStyle of toolbar.</span>
</pre></div> </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="toolbar_8hh-source.html">toolbar.hh</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:43 2004 for GFC-UI by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|