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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gtk::TreeSelection Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1TreeSelection.html">TreeSelection</a>
</div>
</div>
<div class="contents">
<h1>Gtk::TreeSelection Class Reference<br/>
<small>
[<a class="el" href="group__TreeView.html">TreeView Classes</a>]</small>
</h1><!-- doxytag: class="Gtk::TreeSelection" --><!-- doxytag: inherits="Glib::Object" -->
<p>Typedefed as <a class="el" href="classGtk_1_1TreeView.html#ac8c004cc10cc48e6e4ce8ccfe0e49279" title="A selection object for Gtk::TreeView.">Gtk::TreeView::Selection</a>. <a href="#_details">More...</a></p>
<p>Inherits <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html">Glib::Object</a>.</p>
<div class="dynheader">
Collaboration diagram for Gtk::TreeSelection:</div>
<div class="dynsection">
<div class="center"><img src="classGtk_1_1TreeSelection__coll__graph.png" border="0" usemap="#Gtk_1_1TreeSelection_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1TreeSelection_coll__map" id="Gtk_1_1TreeSelection_coll__map">
<area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="24,160,115,189"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="9,83,129,112"/><area shape="rect" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="16,5,123,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classGtk_1_1TreeSelection-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>< bool, <br class="typebreak"/>
const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> ><br class="typebreak"/>
&, const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a> <br class="typebreak"/>
&, bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a2262e022dc13c1918af1127f42a158b1">SlotSelect</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">For instance, bool on_select_function(const Glib::RefPtr<TreeModel>& model, const TreeModel::Path& path, bool path_currently_selected) The select function should return true if the state of the node may be toggled, and false if the state of the node should be left unchanged. <a href="#a2262e022dc13c1918af1127f42a158b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ListHandle.html">Glib::ListHandle</a><br class="typebreak"/>
< <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>, <br class="typebreak"/>
TreePath_Traits > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ac5f0337df16d05d0c5db83284ffb05f8">ListHandle_Path</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>< void, <br class="typebreak"/>
const <a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a0157e2ca1c2fa319a93913c782a7b640">SlotForeachIter</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">For example, void on_foreach(const Gtk::TreeModel::iterator& iter);. <a href="#a0157e2ca1c2fa319a93913c782a7b640"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>< void, <br class="typebreak"/>
const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#aab1d3454d5216f1574cb53bf54205f74">SlotForeachPath</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">For example, void on_foreach(const Gtk::TreeModel::Path& path);. <a href="#aab1d3454d5216f1574cb53bf54205f74"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>< void, <br class="typebreak"/>
const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>&, const <br class="typebreak"/>
<a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a31c44b43f5acd501a0a411c04bdf4706">SlotForeachPathAndIter</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">For example, void on_foreach(const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter);. <a href="#a31c44b43f5acd501a0a411c04bdf4706"></a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a53c5fcfea07919973631158579e9bbc0">~TreeSelection</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkTreeSelection* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#aa272d22e2a8cf68ef941bb898e6ae7a5">gobj</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aa272d22e2a8cf68ef941bb898e6ae7a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkTreeSelection* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#afbfe1d2a5920a31ad730124c0ed2ffbe">gobj</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#afbfe1d2a5920a31ad730124c0ed2ffbe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkTreeSelection* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#aa691fc7df426d2f19612cc82c512596d">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#aa691fc7df426d2f19612cc82c512596d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a8c77e2bc04394554fe272c90aec1b064">set_mode</a> (<a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> type)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the selection mode of the <em>selection</em>. <a href="#a8c77e2bc04394554fe272c90aec1b064"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ab83925a34c53e387e2813f2dc6a08587">get_mode</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the selection mode for <em>selection</em>. <a href="#ab83925a34c53e387e2813f2dc6a08587"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a7c408b8e2b45b4a65a2a9ad66d9602cf">set_select_function</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotSelect</a>& slot)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the selection callback slot. <a href="#a7c408b8e2b45b4a65a2a9ad66d9602cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a5564087ad3cb1979d546d905e9364294">get_tree_view</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the tree view associated with <em>selection</em>. <a href="#a5564087ad3cb1979d546d905e9364294"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a0eb46be8a024f92607b1f12b581e16c2">get_tree_view</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the tree view associated with <em>selection</em>. <a href="#a0eb46be8a024f92607b1f12b581e16c2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ae6e6474b69278a024ce2f50cc81f3bac">get_model</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for <a class="el" href="classGtk_1_1TreeSelection.html#a5564087ad3cb1979d546d905e9364294" title="Returns the tree view associated with selection.">get_tree_view()</a>-><a class="el" href="classGtk_1_1TreeSelection.html#ae6e6474b69278a024ce2f50cc81f3bac" title="Shortcut for get_tree_view()->get_model().">get_model()</a>. <a href="#ae6e6474b69278a024ce2f50cc81f3bac"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a32d988aaf33b721a41f264255f8f2ee3">get_model</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#af949a1a078bc5c2272e25e0c2987a81f">get_selected</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the currently selected row. <a href="#af949a1a078bc5c2272e25e0c2987a81f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a6c38032e5eb2a7b4a089fb74552c7910">get_selected</a> (<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> >& model)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the currently selected row. <a href="#a6c38032e5eb2a7b4a089fb74552c7910"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ListHandle.html">ListHandle_Path</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ab6b8e42892faccbe7c44e483f5f1beb6">get_selected_rows</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a list of paths of all selected rows. <a href="#ab6b8e42892faccbe7c44e483f5f1beb6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ListHandle.html">ListHandle_Path</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a426debb82f5c75994ae3950b42168b03">get_selected_rows</a> (<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> >& model)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a list of paths of all selected rows. <a href="#a426debb82f5c75994ae3950b42168b03"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#abd81154bc8b483b8110bf67bf25a0022">count_selected_rows</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of rows that have been selected in <em>tree</em>. <a href="#abd81154bc8b483b8110bf67bf25a0022"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a632c93a952e9597059647af3f7fd7f26">selected_foreach_iter</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotForeachIter</a>& slot) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Calls a callback slot for each selected node. <a href="#a632c93a952e9597059647af3f7fd7f26"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ad2b0b0926ada175f4d363ecba50810f0">selected_foreach_path</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotForeachPath</a>& slot) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Calls a callback slot for each selected node. <a href="#ad2b0b0926ada175f4d363ecba50810f0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ae954b4f6786bbc3c06daaf4ac348bfc8">selected_foreach</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotForeachPathAndIter</a>& slot) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Calls a callback slot for each selected node. <a href="#ae954b4f6786bbc3c06daaf4ac348bfc8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#abe2e36ac9f950b47e6290ce84af939ae">select</a> (const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Select the row at <em>path</em>. <a href="#abe2e36ac9f950b47e6290ce84af939ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a70c91065737a3ff94fee94e1ed7b83ae">select</a> (const <a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>& iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Selects the specified iterator. <a href="#a70c91065737a3ff94fee94e1ed7b83ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a0e5b782c5a0af7ae4f257d5af932038f">select</a> (const <a class="el" href="classGtk_1_1TreeRow.html">TreeModel::Row</a>& row)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Selects the specified iterator. <a href="#a0e5b782c5a0af7ae4f257d5af932038f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a22b9264d8c0b06d3678dd022a6994a61">select</a> (const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& start_path, const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& end_path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Selects a range of nodes, determined by <em>start_path</em> and <em>end_path</em> inclusive. <a href="#a22b9264d8c0b06d3678dd022a6994a61"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a77e91cb1efd4cfcc05832aa97bc92a4c">unselect</a> (const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unselects the row at <em>path</em>. <a href="#a77e91cb1efd4cfcc05832aa97bc92a4c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a5ef57ea9bc6f15126ba43f8da4199b46">unselect</a> (const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& start_path, const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& end_path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unselects a range of nodes, determined by <em>start_path</em> and <em>end_path</em> inclusive. <a href="#a5ef57ea9bc6f15126ba43f8da4199b46"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a5aa28ea9eea8f0b8a02a28a4d4472a08">unselect</a> (const <a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>& iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unselects the specified iterator. <a href="#a5aa28ea9eea8f0b8a02a28a4d4472a08"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ab5241ae9e120dcd3c680cec28d0f34f6">is_selected</a> (const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& path) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <code>true</code> if the row pointed to by <em>path</em> is currently selected. <a href="#ab5241ae9e120dcd3c680cec28d0f34f6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a48d8c7d8dfab291eefc72dbc207ddbc3">is_selected</a> (const <a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>& iter) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <code>true</code> if the row at <em>iter</em> is currently selected. <a href="#a48d8c7d8dfab291eefc72dbc207ddbc3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a2cb8620473e74aec20511c3f655e3e1a">select_all</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Selects all the nodes. <a href="#a2cb8620473e74aec20511c3f655e3e1a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#aeac5766a4626733996641ed2583a09e5">unselect_all</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unselects all the nodes. <a href="#aeac5766a4626733996641ed2583a09e5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>< void > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ad880fbe3cf130fe7c46f410b7efe3c0f">signal_changed</a> ()</td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a1c0c20b2c05f751112e8fa0a8da93844">on_changed</a> ()</td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TreeSelection.html">Gtk::TreeSelection</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a3005841d69e579cf3a75e7a4699d4fa6">wrap</a> (GtkTreeSelection* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a3005841d69e579cf3a75e7a4699d4fa6"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Typedefed as <a class="el" href="classGtk_1_1TreeView.html#ac8c004cc10cc48e6e4ce8ccfe0e49279" title="A selection object for Gtk::TreeView.">Gtk::TreeView::Selection</a>. </p>
<p>This is a helper object to manage the selection for a <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user...">Gtk::TreeView</a> widget.</p>
<p>It is automatically created when a new <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user...">Gtk::TreeView</a> widget is created, and cannot exist independently of this widget. The primary reason this class exists is for cleanliness of code and API. That is, there is no conceptual reason all these methods could not be methods on the <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user...">Gtk::TreeView</a> widget instead of a separate class.</p>
<p>The <a class="el" href="classGtk_1_1TreeSelection.html" title="Typedefed as Gtk::TreeView::Selection.">Gtk::TreeSelection</a> object can be obtained from a <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user...">Gtk::TreeView</a> by calling <a class="el" href="classGtk_1_1TreeView.html#ae953e086ee80dbcd34e49dc55a600dcb" title="Gets the Gtk::TreeSelection associated with tree_view.">Gtk::TreeView::get_selection()</a>. It can be manipulated to check the selection status of the tree, as well as to select and deselect individual rows. Selection is done completely view-side. As a result, multiple views of the same model can have completely different selections. Additionally, you cannot change the selection of a row on the model that is not currently displayed by the view without expanding its parents first.</p>
<p>When monitoring the selection of a view, it's important to remember that the "changed" signal is mostly a hint. That is, it may only emit one signal when a range of rows is selected. Additionally, it may on occasion emit a "changed" signal when nothing has happened. </p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="ac5f0337df16d05d0c5db83284ffb05f8"></a><!-- doxytag: member="Gtk::TreeSelection::ListHandle_Path" ref="ac5f0337df16d05d0c5db83284ffb05f8" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ListHandle.html">Glib::ListHandle</a><<a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>, TreePath_Traits> <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ListHandle.html">Gtk::TreeSelection::ListHandle_Path</a></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a0157e2ca1c2fa319a93913c782a7b640"></a><!-- doxytag: member="Gtk::TreeSelection::SlotForeachIter" ref="a0157e2ca1c2fa319a93913c782a7b640" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a><void, const <a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>&> <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::TreeSelection::SlotForeachIter</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>For example, void on_foreach(const Gtk::TreeModel::iterator& iter);. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#ab6b8e42892faccbe7c44e483f5f1beb6" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful. </p>
</div>
</div>
<a class="anchor" id="aab1d3454d5216f1574cb53bf54205f74"></a><!-- doxytag: member="Gtk::TreeSelection::SlotForeachPath" ref="aab1d3454d5216f1574cb53bf54205f74" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a><void, const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>&> <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::TreeSelection::SlotForeachPath</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>For example, void on_foreach(const Gtk::TreeModel::Path& path);. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#ab6b8e42892faccbe7c44e483f5f1beb6" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful. </p>
</div>
</div>
<a class="anchor" id="a31c44b43f5acd501a0a411c04bdf4706"></a><!-- doxytag: member="Gtk::TreeSelection::SlotForeachPathAndIter" ref="a31c44b43f5acd501a0a411c04bdf4706" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a><void, const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>&, const <a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>&> <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::TreeSelection::SlotForeachPathAndIter</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>For example, void on_foreach(const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter);. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#ab6b8e42892faccbe7c44e483f5f1beb6" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful. </p>
</div>
</div>
<a class="anchor" id="a2262e022dc13c1918af1127f42a158b1"></a><!-- doxytag: member="Gtk::TreeSelection::SlotSelect" ref="a2262e022dc13c1918af1127f42a158b1" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a><bool, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a>>&, const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>&, bool> <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::TreeSelection::SlotSelect</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>For instance, bool on_select_function(const Glib::RefPtr<TreeModel>& model, const TreeModel::Path& path, bool path_currently_selected) The select function should return true if the state of the node may be toggled, and false if the state of the node should be left unchanged. </p>
</div>
</div>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a53c5fcfea07919973631158579e9bbc0"></a><!-- doxytag: member="Gtk::TreeSelection::~TreeSelection" ref="a53c5fcfea07919973631158579e9bbc0" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual Gtk::TreeSelection::~TreeSelection </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="abd81154bc8b483b8110bf67bf25a0022"></a><!-- doxytag: member="Gtk::TreeSelection::count_selected_rows" ref="abd81154bc8b483b8110bf67bf25a0022" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Gtk::TreeSelection::count_selected_rows </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the number of rows that have been selected in <em>tree</em>. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000106">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of rows selected. </dd></dl>
</div>
</div>
<a class="anchor" id="ab83925a34c53e387e2813f2dc6a08587"></a><!-- doxytag: member="Gtk::TreeSelection::get_mode" ref="ab83925a34c53e387e2813f2dc6a08587" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> Gtk::TreeSelection::get_mode </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the selection mode for <em>selection</em>. </p>
<p>See <a class="el" href="classGtk_1_1TreeSelection.html#a8c77e2bc04394554fe272c90aec1b064" title="Sets the selection mode of the selection.">set_mode()</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The current selection mode. </dd></dl>
</div>
</div>
<a class="anchor" id="a32d988aaf33b721a41f264255f8f2ee3"></a><!-- doxytag: member="Gtk::TreeSelection::get_model" ref="a32d988aaf33b721a41f264255f8f2ee3" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a>> Gtk::TreeSelection::get_model </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="ae6e6474b69278a024ce2f50cc81f3bac"></a><!-- doxytag: member="Gtk::TreeSelection::get_model" ref="ae6e6474b69278a024ce2f50cc81f3bac" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a>> Gtk::TreeSelection::get_model </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Shortcut for <a class="el" href="classGtk_1_1TreeSelection.html#a5564087ad3cb1979d546d905e9364294" title="Returns the tree view associated with selection.">get_tree_view()</a>-><a class="el" href="classGtk_1_1TreeSelection.html#ae6e6474b69278a024ce2f50cc81f3bac" title="Shortcut for get_tree_view()->get_model().">get_model()</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1TreeModel.html" title="This class defines a generic tree interface for use by the Gtk::TreeView widget.">TreeModel</a> associated with this <a class="el" href="classGtk_1_1TreeSelection.html" title="Typedefed as Gtk::TreeView::Selection.">TreeSelection</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="a6c38032e5eb2a7b4a089fb74552c7910"></a><!-- doxytag: member="Gtk::TreeSelection::get_selected" ref="a6c38032e5eb2a7b4a089fb74552c7910" args="(Glib::RefPtr< TreeModel > &model)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a> Gtk::TreeSelection::get_selected </td>
<td>(</td>
<td class="paramtype"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> >& </td>
<td class="paramname"> <em>model</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the currently selected row. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The currently selected row. Or end() if no rows were selected. </dd></dl>
<dl><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>model</em> </td><td>The current <a class="el" href="classGtk_1_1TreeModel.html" title="This class defines a generic tree interface for use by the Gtk::TreeView widget.">TreeModel</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>This method won't work if the selection mode is <code><a class="el" href="group__gtkmmEnums.html#gga3e58167cfed0be4c87474c3bdca80d78a1828aee7873c17ec61f10274de30146b">Gtk::SELECTION_MULTIPLE</a></code>. Use <a class="el" href="classGtk_1_1TreeSelection.html#ab6b8e42892faccbe7c44e483f5f1beb6" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> for multiple selections. </dd></dl>
</div>
</div>
<a class="anchor" id="af949a1a078bc5c2272e25e0c2987a81f"></a><!-- doxytag: member="Gtk::TreeSelection::get_selected" ref="af949a1a078bc5c2272e25e0c2987a81f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a> Gtk::TreeSelection::get_selected </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the currently selected row. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The currently selected row. </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>This method won't work if the selection mode is <code><a class="el" href="group__gtkmmEnums.html#gga3e58167cfed0be4c87474c3bdca80d78a1828aee7873c17ec61f10274de30146b">Gtk::SELECTION_MULTIPLE</a></code>. Use <a class="el" href="classGtk_1_1TreeSelection.html#ab6b8e42892faccbe7c44e483f5f1beb6" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> for multiple selections. </dd></dl>
</div>
</div>
<a class="anchor" id="a426debb82f5c75994ae3950b42168b03"></a><!-- doxytag: member="Gtk::TreeSelection::get_selected_rows" ref="a426debb82f5c75994ae3950b42168b03" args="(Glib::RefPtr< TreeModel > &model)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ListHandle.html">ListHandle_Path</a> Gtk::TreeSelection::get_selected_rows </td>
<td>(</td>
<td class="paramtype"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> >& </td>
<td class="paramname"> <em>model</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a list of paths of all selected rows. </p>
<p>Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of GtkTreeRowReferences.</p>
<dl><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>model</em> </td><td>The current <a class="el" href="classGtk_1_1TreeModel.html" title="This class defines a generic tree interface for use by the Gtk::TreeView widget.">TreeModel</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a standard container containing a Gtk::Model::Path for each selected row. </dd></dl>
</div>
</div>
<a class="anchor" id="ab6b8e42892faccbe7c44e483f5f1beb6"></a><!-- doxytag: member="Gtk::TreeSelection::get_selected_rows" ref="ab6b8e42892faccbe7c44e483f5f1beb6" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ListHandle.html">ListHandle_Path</a> Gtk::TreeSelection::get_selected_rows </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a list of paths of all selected rows. </p>
<p>Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of GtkTreeRowReferences.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a standard container containing a Gtk::Model::Path for each selected row. </dd></dl>
</div>
</div>
<a class="anchor" id="a0eb46be8a024f92607b1f12b581e16c2"></a><!-- doxytag: member="Gtk::TreeSelection::get_tree_view" ref="a0eb46be8a024f92607b1f12b581e16c2" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* Gtk::TreeSelection::get_tree_view </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the tree view associated with <em>selection</em>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user...">Gtk::TreeView</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="a5564087ad3cb1979d546d905e9364294"></a><!-- doxytag: member="Gtk::TreeSelection::get_tree_view" ref="a5564087ad3cb1979d546d905e9364294" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* Gtk::TreeSelection::get_tree_view </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the tree view associated with <em>selection</em>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user...">Gtk::TreeView</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="afbfe1d2a5920a31ad730124c0ed2ffbe"></a><!-- doxytag: member="Gtk::TreeSelection::gobj" ref="afbfe1d2a5920a31ad730124c0ed2ffbe" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const GtkTreeSelection* Gtk::TreeSelection::gobj </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Provides access to the underlying C GObject. </p>
<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
</div>
</div>
<a class="anchor" id="aa272d22e2a8cf68ef941bb898e6ae7a5"></a><!-- doxytag: member="Gtk::TreeSelection::gobj" ref="aa272d22e2a8cf68ef941bb898e6ae7a5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GtkTreeSelection* Gtk::TreeSelection::gobj </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Provides access to the underlying C GObject. </p>
<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>
</div>
</div>
<a class="anchor" id="aa691fc7df426d2f19612cc82c512596d"></a><!-- doxytag: member="Gtk::TreeSelection::gobj_copy" ref="aa691fc7df426d2f19612cc82c512596d" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GtkTreeSelection* Gtk::TreeSelection::gobj_copy </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>
</div>
</div>
<a class="anchor" id="a48d8c7d8dfab291eefc72dbc207ddbc3"></a><!-- doxytag: member="Gtk::TreeSelection::is_selected" ref="a48d8c7d8dfab291eefc72dbc207ddbc3" args="(const TreeModel::iterator &iter) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gtk::TreeSelection::is_selected </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>& </td>
<td class="paramname"> <em>iter</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns <code>true</code> if the row at <em>iter</em> is currently selected. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>iter</em> </td><td>A valid <a class="el" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model...">Gtk::TreeIter</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code>, if <em>iter</em> is selected. </dd></dl>
</div>
</div>
<a class="anchor" id="ab5241ae9e120dcd3c680cec28d0f34f6"></a><!-- doxytag: member="Gtk::TreeSelection::is_selected" ref="ab5241ae9e120dcd3c680cec28d0f34f6" args="(const TreeModel::Path &path) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gtk::TreeSelection::is_selected </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& </td>
<td class="paramname"> <em>path</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns <code>true</code> if the row pointed to by <em>path</em> is currently selected. </p>
<p>If <em>path</em> does not point to a valid location, <code>false</code> is returned </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>path</em> </td><td>A <a class="el" href="classGtk_1_1TreePath.html" title="A path is essentially a potential node.">Gtk::TreePath</a> to check selection on. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>path</em> is selected. </dd></dl>
</div>
</div>
<a class="anchor" id="a1c0c20b2c05f751112e8fa0a8da93844"></a><!-- doxytag: member="Gtk::TreeSelection::on_changed" ref="a1c0c20b2c05f751112e8fa0a8da93844" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void Gtk::TreeSelection::on_changed </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a22b9264d8c0b06d3678dd022a6994a61"></a><!-- doxytag: member="Gtk::TreeSelection::select" ref="a22b9264d8c0b06d3678dd022a6994a61" args="(const TreeModel::Path &start_path, const TreeModel::Path &end_path)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::select </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& </td>
<td class="paramname"> <em>start_path</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& </td>
<td class="paramname"> <em>end_path</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Selects a range of nodes, determined by <em>start_path</em> and <em>end_path</em> inclusive. </p>
<p><em>selection</em> must be set to <a class="el" href="group__gtkmmEnums.html#gga3e58167cfed0be4c87474c3bdca80d78a1828aee7873c17ec61f10274de30146b">Gtk::SELECTION_MULTIPLE</a> mode. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>start_path</em> </td><td>The initial node of the range. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>end_path</em> </td><td>The final node of the range. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0e5b782c5a0af7ae4f257d5af932038f"></a><!-- doxytag: member="Gtk::TreeSelection::select" ref="a0e5b782c5a0af7ae4f257d5af932038f" args="(const TreeModel::Row &row)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::select </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreeRow.html">TreeModel::Row</a>& </td>
<td class="paramname"> <em>row</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Selects the specified iterator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>iter</em> </td><td>The <a class="el" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model...">Gtk::TreeIter</a> to be selected. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a70c91065737a3ff94fee94e1ed7b83ae"></a><!-- doxytag: member="Gtk::TreeSelection::select" ref="a70c91065737a3ff94fee94e1ed7b83ae" args="(const TreeModel::iterator &iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::select </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>& </td>
<td class="paramname"> <em>iter</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Selects the specified iterator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>iter</em> </td><td>The <a class="el" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model...">Gtk::TreeIter</a> to be selected. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="abe2e36ac9f950b47e6290ce84af939ae"></a><!-- doxytag: member="Gtk::TreeSelection::select" ref="abe2e36ac9f950b47e6290ce84af939ae" args="(const TreeModel::Path &path)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::select </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& </td>
<td class="paramname"> <em>path</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Select the row at <em>path</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>path</em> </td><td>The <a class="el" href="classGtk_1_1TreePath.html" title="A path is essentially a potential node.">Gtk::TreePath</a> to be selected. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a2cb8620473e74aec20511c3f655e3e1a"></a><!-- doxytag: member="Gtk::TreeSelection::select_all" ref="a2cb8620473e74aec20511c3f655e3e1a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::select_all </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Selects all the nodes. </p>
<p><em>selection</em> must be set to <a class="el" href="group__gtkmmEnums.html#gga3e58167cfed0be4c87474c3bdca80d78a1828aee7873c17ec61f10274de30146b">Gtk::SELECTION_MULTIPLE</a> mode. </p>
</div>
</div>
<a class="anchor" id="ae954b4f6786bbc3c06daaf4ac348bfc8"></a><!-- doxytag: member="Gtk::TreeSelection::selected_foreach" ref="ae954b4f6786bbc3c06daaf4ac348bfc8" args="(const SlotForeachPathAndIter &slot) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::selected_foreach </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotForeachPathAndIter</a> & </td>
<td class="paramname"> <em>slot</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Calls a callback slot for each selected node. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#ab6b8e42892faccbe7c44e483f5f1beb6" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>The function to call for each selected node. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a632c93a952e9597059647af3f7fd7f26"></a><!-- doxytag: member="Gtk::TreeSelection::selected_foreach_iter" ref="a632c93a952e9597059647af3f7fd7f26" args="(const SlotForeachIter &slot) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::selected_foreach_iter </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotForeachIter</a> & </td>
<td class="paramname"> <em>slot</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Calls a callback slot for each selected node. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#ab6b8e42892faccbe7c44e483f5f1beb6" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>The function to call for each selected node. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad2b0b0926ada175f4d363ecba50810f0"></a><!-- doxytag: member="Gtk::TreeSelection::selected_foreach_path" ref="ad2b0b0926ada175f4d363ecba50810f0" args="(const SlotForeachPath &slot) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::selected_foreach_path </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotForeachPath</a> & </td>
<td class="paramname"> <em>slot</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Calls a callback slot for each selected node. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#ab6b8e42892faccbe7c44e483f5f1beb6" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>The function to call for each selected node. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a8c77e2bc04394554fe272c90aec1b064"></a><!-- doxytag: member="Gtk::TreeSelection::set_mode" ref="a8c77e2bc04394554fe272c90aec1b064" args="(SelectionMode type)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::set_mode </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> </td>
<td class="paramname"> <em>type</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the selection mode of the <em>selection</em>. </p>
<p>If the previous type was <a class="el" href="group__gtkmmEnums.html#gga3e58167cfed0be4c87474c3bdca80d78a1828aee7873c17ec61f10274de30146b">Gtk::SELECTION_MULTIPLE</a>, then the anchor is kept selected, if it was previously selected. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>The selection mode. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a7c408b8e2b45b4a65a2a9ad66d9602cf"></a><!-- doxytag: member="Gtk::TreeSelection::set_select_function" ref="a7c408b8e2b45b4a65a2a9ad66d9602cf" args="(const SlotSelect &slot)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::set_select_function </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotSelect</a> & </td>
<td class="paramname"> <em>slot</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the selection callback slot. </p>
<p>If set, this function is called before any node is selected or unselected, giving some control over which nodes are selected.</p>
<p>The select function should return true if the state of the node may be toggled, and FALSE if the state of the node should be left unchanged.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>The selection function. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad880fbe3cf130fe7c46f410b7efe3c0f"></a><!-- doxytag: member="Gtk::TreeSelection::signal_changed" ref="ad880fbe3cf130fe7c46f410b7efe3c0f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>< void > Gtk::TreeSelection::signal_changed </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_changed()</code> </dd></dl>
</div>
</div>
<a class="anchor" id="a5aa28ea9eea8f0b8a02a28a4d4472a08"></a><!-- doxytag: member="Gtk::TreeSelection::unselect" ref="a5aa28ea9eea8f0b8a02a28a4d4472a08" args="(const TreeModel::iterator &iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::unselect </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreeIter.html">TreeModel::iterator</a>& </td>
<td class="paramname"> <em>iter</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Unselects the specified iterator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>iter</em> </td><td>The <a class="el" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model...">Gtk::TreeIter</a> to be unselected. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5ef57ea9bc6f15126ba43f8da4199b46"></a><!-- doxytag: member="Gtk::TreeSelection::unselect" ref="a5ef57ea9bc6f15126ba43f8da4199b46" args="(const TreeModel::Path &start_path, const TreeModel::Path &end_path)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::unselect </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& </td>
<td class="paramname"> <em>start_path</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& </td>
<td class="paramname"> <em>end_path</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Unselects a range of nodes, determined by <em>start_path</em> and <em>end_path</em> inclusive. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000107">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>start_path</em> </td><td>The initial node of the range. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>end_path</em> </td><td>The initial node of the range. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a77e91cb1efd4cfcc05832aa97bc92a4c"></a><!-- doxytag: member="Gtk::TreeSelection::unselect" ref="a77e91cb1efd4cfcc05832aa97bc92a4c" args="(const TreeModel::Path &path)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::unselect </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classGtk_1_1TreePath.html">TreeModel::Path</a>& </td>
<td class="paramname"> <em>path</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Unselects the row at <em>path</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>path</em> </td><td>The <a class="el" href="classGtk_1_1TreePath.html" title="A path is essentially a potential node.">Gtk::TreePath</a> to be unselected. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aeac5766a4626733996641ed2583a09e5"></a><!-- doxytag: member="Gtk::TreeSelection::unselect_all" ref="aeac5766a4626733996641ed2583a09e5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TreeSelection::unselect_all </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Unselects all the nodes. </p>
</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a3005841d69e579cf3a75e7a4699d4fa6"></a><!-- doxytag: member="Gtk::TreeSelection::wrap" ref="a3005841d69e579cf3a75e7a4699d4fa6" args="(GtkTreeSelection *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TreeSelection.html">Gtk::TreeSelection</a> > wrap </td>
<td>(</td>
<td class="paramtype">GtkTreeSelection * </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><code> [related]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><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>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/treeselection.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:22:06 2010 for gtkmm by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
|