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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>glibmm: Gio::MenuModel Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">glibmm
 <span id="projectnumber">2.42.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceGio.html">Gio</a></li><li class="navelem"><a class="el" href="classGio_1_1MenuModel.html">MenuModel</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="#related">Related Functions</a> |
<a href="classGio_1_1MenuModel-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Gio::MenuModel Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> - An abstract class representing the contents of a menu.
<a href="classGio_1_1MenuModel.html#details">More...</a></p>
<p><code>#include <giomm/menumodel.h></code></p>
<div class="dynheader">
Inheritance diagram for Gio::MenuModel:</div>
<div class="dyncontent">
<div class="center"><img src="classGio_1_1MenuModel__inherit__graph.png" border="0" usemap="#Gio_1_1MenuModel_inherit__map" alt="Inheritance graph"/></div>
<map name="Gio_1_1MenuModel_inherit__map" id="Gio_1_1MenuModel_inherit__map">
<area shape="rect" id="node5" href="classGio_1_1DBus_1_1MenuModel.html" title="MenuModel - A D-Bus Gio::MenuModel implementation. " alt="" coords="5,304,171,331"/><area shape="rect" id="node6" href="classGio_1_1Menu.html" title="A simple implementation of MenuModel. " alt="" coords="195,304,281,331"/><area shape="rect" id="node2" href="classGlib_1_1Object.html" title="Glib::Object" alt="" coords="115,155,209,181"/><area shape="rect" id="node3" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces. " alt="" coords="99,80,225,107"/><area shape="rect" id="node4" doxygen="/opt/gnome/share/doc/libsigc++-2.0/reference/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="105,5,220,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa50e7a927c5798cfa94d38a50b919c64"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#aa50e7a927c5798cfa94d38a50b919c64">~MenuModel</a> ()</td></tr>
<tr class="separator:aa50e7a927c5798cfa94d38a50b919c64"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa09ec8d56a76f646e7133b6dd2271ced"><td class="memItemLeft" align="right" valign="top">GMenuModel* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#aa09ec8d56a76f646e7133b6dd2271ced">gobj</a> ()</td></tr>
<tr class="memdesc:aa09ec8d56a76f646e7133b6dd2271ced"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aa09ec8d56a76f646e7133b6dd2271ced">More...</a><br /></td></tr>
<tr class="separator:aa09ec8d56a76f646e7133b6dd2271ced"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5cdc6c658245ee2a22dcc10e1eb119ab"><td class="memItemLeft" align="right" valign="top">const GMenuModel* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a5cdc6c658245ee2a22dcc10e1eb119ab">gobj</a> () const </td></tr>
<tr class="memdesc:a5cdc6c658245ee2a22dcc10e1eb119ab"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a5cdc6c658245ee2a22dcc10e1eb119ab">More...</a><br /></td></tr>
<tr class="separator:a5cdc6c658245ee2a22dcc10e1eb119ab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac75e5986055f0ec9cb56077cf533e44c"><td class="memItemLeft" align="right" valign="top">GMenuModel* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#ac75e5986055f0ec9cb56077cf533e44c">gobj_copy</a> ()</td></tr>
<tr class="memdesc:ac75e5986055f0ec9cb56077cf533e44c"><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="#ac75e5986055f0ec9cb56077cf533e44c">More...</a><br /></td></tr>
<tr class="separator:ac75e5986055f0ec9cb56077cf533e44c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a99090d7f9e7406e5bdc950f86b82f019"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1VariantBase.html">Glib::VariantBase</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a99090d7f9e7406e5bdc950f86b82f019">get_item_attribute</a> (int item_index, <a class="el" href="namespaceGio.html#a7df84578d37eccbf86072c8fc85b217a">MenuAttribute</a> attribute, const <a class="el" href="classGlib_1_1VariantType.html">Glib::VariantType</a>& expected_type)</td></tr>
<tr class="memdesc:a99090d7f9e7406e5bdc950f86b82f019"><td class="mdescLeft"> </td><td class="mdescRight">Queries the item at position <em>item_index</em> in <em>model</em> for the attribute specified by <em>attribute</em>. <a href="#a99090d7f9e7406e5bdc950f86b82f019">More...</a><br /></td></tr>
<tr class="separator:a99090d7f9e7406e5bdc950f86b82f019"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9083fb4bc22839eac9d82efd0a465501"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGlib_1_1VariantBase.html">Glib::VariantBase</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a9083fb4bc22839eac9d82efd0a465501">get_item_attribute</a> (int item_index, <a class="el" href="namespaceGio.html#a7df84578d37eccbf86072c8fc85b217a">MenuAttribute</a> attribute, const <a class="el" href="classGlib_1_1VariantType.html">Glib::VariantType</a>& expected_type) const </td></tr>
<tr class="memdesc:a9083fb4bc22839eac9d82efd0a465501"><td class="mdescLeft"> </td><td class="mdescRight">Queries the item at position <em>item_index</em> in <em>model</em> for the attribute specified by <em>attribute</em>. <a href="#a9083fb4bc22839eac9d82efd0a465501">More...</a><br /></td></tr>
<tr class="separator:a9083fb4bc22839eac9d82efd0a465501"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aca233273e44374beeb579113560621b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1MenuModel.html">MenuModel</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#aca233273e44374beeb579113560621b5">get_item_link</a> (int item_index, <a class="el" href="namespaceGio.html#a4febebe134c8e141020c6c253711e0d2">MenuLink</a> link)</td></tr>
<tr class="memdesc:aca233273e44374beeb579113560621b5"><td class="mdescLeft"> </td><td class="mdescRight">Queries the item at position <em>item_index</em> in <em>model</em> for the link specified by <em>link</em>. <a href="#aca233273e44374beeb579113560621b5">More...</a><br /></td></tr>
<tr class="separator:aca233273e44374beeb579113560621b5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a559fc7a0480fc4b4df17e91e7a8f3bd5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="el" href="classGio_1_1MenuModel.html">MenuModel</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a559fc7a0480fc4b4df17e91e7a8f3bd5">get_item_link</a> (int item_index, <a class="el" href="namespaceGio.html#a4febebe134c8e141020c6c253711e0d2">MenuLink</a> link) const </td></tr>
<tr class="memdesc:a559fc7a0480fc4b4df17e91e7a8f3bd5"><td class="mdescLeft"> </td><td class="mdescRight">Queries the item at position <em>item_index</em> in <em>model</em> for the link specified by <em>link</em>. <a href="#a559fc7a0480fc4b4df17e91e7a8f3bd5">More...</a><br /></td></tr>
<tr class="separator:a559fc7a0480fc4b4df17e91e7a8f3bd5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acbfed3821e834c151001fd0aaeebb398"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#acbfed3821e834c151001fd0aaeebb398">is_mutable</a> () const </td></tr>
<tr class="memdesc:acbfed3821e834c151001fd0aaeebb398"><td class="mdescLeft"> </td><td class="mdescRight">Queries if <em>model</em> is mutable. <a href="#acbfed3821e834c151001fd0aaeebb398">More...</a><br /></td></tr>
<tr class="separator:acbfed3821e834c151001fd0aaeebb398"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2f6a0ebbc8a2c259887dbee8878c428f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a2f6a0ebbc8a2c259887dbee8878c428f">get_n_items</a> () const </td></tr>
<tr class="memdesc:a2f6a0ebbc8a2c259887dbee8878c428f"><td class="mdescLeft"> </td><td class="mdescRight">Query the number of items in <em>model</em>. <a href="#a2f6a0ebbc8a2c259887dbee8878c428f">More...</a><br /></td></tr>
<tr class="separator:a2f6a0ebbc8a2c259887dbee8878c428f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a074bfb4ed7c3b2a94000b62fdce6dfc0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1MenuAttributeIter.html">MenuAttributeIter</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a074bfb4ed7c3b2a94000b62fdce6dfc0">iterate_item_attributes</a> (int item_index)</td></tr>
<tr class="memdesc:a074bfb4ed7c3b2a94000b62fdce6dfc0"><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classGio_1_1MenuAttributeIter.html" title="MenuAttributeIter - A menu attribute iterator. ">MenuAttributeIter</a> to iterate over the attributes of the item at position <em>item_index</em> in <em>model</em>. <a href="#a074bfb4ed7c3b2a94000b62fdce6dfc0">More...</a><br /></td></tr>
<tr class="separator:a074bfb4ed7c3b2a94000b62fdce6dfc0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ababd702c0ecfe7f586256c366fb91f04"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <br class="typebreak" />
<a class="el" href="classGio_1_1MenuAttributeIter.html">MenuAttributeIter</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#ababd702c0ecfe7f586256c366fb91f04">iterate_item_attributes</a> (int item_index) const </td></tr>
<tr class="memdesc:ababd702c0ecfe7f586256c366fb91f04"><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classGio_1_1MenuAttributeIter.html" title="MenuAttributeIter - A menu attribute iterator. ">MenuAttributeIter</a> to iterate over the attributes of the item at position <em>item_index</em> in <em>model</em>. <a href="#ababd702c0ecfe7f586256c366fb91f04">More...</a><br /></td></tr>
<tr class="separator:ababd702c0ecfe7f586256c366fb91f04"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5abda335e54302c4e8285c41bf201e51"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1MenuLinkIter.html">MenuLinkIter</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a5abda335e54302c4e8285c41bf201e51">iterate_item_links</a> (int item_index)</td></tr>
<tr class="memdesc:a5abda335e54302c4e8285c41bf201e51"><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classGio_1_1MenuLinkIter.html" title="MenuLinkIter - A menu link iterator. ">MenuLinkIter</a> to iterate over the links of the item at position <em>item_index</em> in <em>model</em>. <a href="#a5abda335e54302c4e8285c41bf201e51">More...</a><br /></td></tr>
<tr class="separator:a5abda335e54302c4e8285c41bf201e51"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95599efdd50d47162a65a0d905f78fc7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="el" href="classGio_1_1MenuLinkIter.html">MenuLinkIter</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a95599efdd50d47162a65a0d905f78fc7">iterate_item_links</a> (int item_index) const </td></tr>
<tr class="memdesc:a95599efdd50d47162a65a0d905f78fc7"><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classGio_1_1MenuLinkIter.html" title="MenuLinkIter - A menu link iterator. ">MenuLinkIter</a> to iterate over the links of the item at position <em>item_index</em> in <em>model</em>. <a href="#a95599efdd50d47162a65a0d905f78fc7">More...</a><br /></td></tr>
<tr class="separator:a95599efdd50d47162a65a0d905f78fc7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b0c42bcd34312965430750a2f56071a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a0b0c42bcd34312965430750a2f56071a">items_changed</a> (int position, int removed, int added)</td></tr>
<tr class="memdesc:a0b0c42bcd34312965430750a2f56071a"><td class="mdescLeft"> </td><td class="mdescRight">Requests emission of the <a class="el" href="classGio_1_1MenuModel.html#af149b5e5c10b5038d7dd92ece3fa6032">MenuModel::signal_items_changed()</a> signal on <em>model</em>. <a href="#a0b0c42bcd34312965430750a2f56071a">More...</a><br /></td></tr>
<tr class="separator:a0b0c42bcd34312965430750a2f56071a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af149b5e5c10b5038d7dd92ece3fa6032"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1SignalProxy3.html">Glib::SignalProxy3</a>< void, int, <br class="typebreak" />
int, int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#af149b5e5c10b5038d7dd92ece3fa6032">signal_items_changed</a> ()</td></tr>
<tr class="separator:af149b5e5c10b5038d7dd92ece3fa6032"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classGlib_1_1Object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classGlib_1_1Object')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classGlib_1_1Object.html">Glib::Object</a></td></tr>
<tr class="memitem:a0e6581bcbcc6197cca07df24bb91c492 inherit pub_methods_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top">void* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#a0e6581bcbcc6197cca07df24bb91c492">get_data</a> (const <a class="el" href="classGlib_1_1QueryQuark.html">QueryQuark</a>& key)</td></tr>
<tr class="separator:a0e6581bcbcc6197cca07df24bb91c492 inherit pub_methods_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afff7a375a862f3f899daaa99710122fa inherit pub_methods_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#afff7a375a862f3f899daaa99710122fa">set_data</a> (const <a class="el" href="classGlib_1_1Quark.html">Quark</a>& key, void* data)</td></tr>
<tr class="separator:afff7a375a862f3f899daaa99710122fa inherit pub_methods_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1febe3bae2dd71756e98e523cd33c1b4 inherit pub_methods_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#a1febe3bae2dd71756e98e523cd33c1b4">set_data</a> (const <a class="el" href="classGlib_1_1Quark.html">Quark</a>& key, void* data, <a class="el" href="classGlib_1_1Object.html#a1d8d9f3c19b59eda96c40beca8d520e0">DestroyNotify</a> notify)</td></tr>
<tr class="separator:a1febe3bae2dd71756e98e523cd33c1b4 inherit pub_methods_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aada5b50844bda7ee02bed0ae2a715c00 inherit pub_methods_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#aada5b50844bda7ee02bed0ae2a715c00">remove_data</a> (const <a class="el" href="classGlib_1_1QueryQuark.html">QueryQuark</a>& quark)</td></tr>
<tr class="separator:aada5b50844bda7ee02bed0ae2a715c00 inherit pub_methods_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab454f71bd74403b0cc46d3cbbedd6b0e inherit pub_methods_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top">void* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#ab454f71bd74403b0cc46d3cbbedd6b0e">steal_data</a> (const <a class="el" href="classGlib_1_1QueryQuark.html">QueryQuark</a>& quark)</td></tr>
<tr class="separator:ab454f71bd74403b0cc46d3cbbedd6b0e inherit pub_methods_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classGlib_1_1ObjectBase"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classGlib_1_1ObjectBase')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classGlib_1_1ObjectBase.html">Glib::ObjectBase</a></td></tr>
<tr class="memitem:aab599d3eec4b4a9ddc95ccdc6100053d inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#aab599d3eec4b4a9ddc95ccdc6100053d">set_property_value</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& property_name, const <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>& value)</td></tr>
<tr class="memdesc:aab599d3eec4b4a9ddc95ccdc6100053d inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">You probably want to use a specific property_*() accessor method instead. <a href="#aab599d3eec4b4a9ddc95ccdc6100053d">More...</a><br /></td></tr>
<tr class="separator:aab599d3eec4b4a9ddc95ccdc6100053d inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5e30750441b92f0246c9d4ece95fc8a0 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a5e30750441b92f0246c9d4ece95fc8a0">get_property_value</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& property_name, <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>& value) const </td></tr>
<tr class="memdesc:a5e30750441b92f0246c9d4ece95fc8a0 inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">You probably want to use a specific property_*() accessor method instead. <a href="#a5e30750441b92f0246c9d4ece95fc8a0">More...</a><br /></td></tr>
<tr class="separator:a5e30750441b92f0246c9d4ece95fc8a0 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad37844f7ea2c0091a22d011e04c48820 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memTemplParams" colspan="2">template<class PropertyType > </td></tr>
<tr class="memitem:ad37844f7ea2c0091a22d011e04c48820 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#ad37844f7ea2c0091a22d011e04c48820">set_property</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& property_name, const PropertyType& value)</td></tr>
<tr class="memdesc:ad37844f7ea2c0091a22d011e04c48820 inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">You probably want to use a specific property_*() accessor method instead. <a href="#ad37844f7ea2c0091a22d011e04c48820">More...</a><br /></td></tr>
<tr class="separator:ad37844f7ea2c0091a22d011e04c48820 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5f894c9c36ad391fdc85552af67a8530 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memTemplParams" colspan="2">template<class PropertyType > </td></tr>
<tr class="memitem:a5f894c9c36ad391fdc85552af67a8530 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a5f894c9c36ad391fdc85552af67a8530">get_property</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& property_name, PropertyType& value) const </td></tr>
<tr class="memdesc:a5f894c9c36ad391fdc85552af67a8530 inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">You probably want to use a specific property_*() accessor method instead. <a href="#a5f894c9c36ad391fdc85552af67a8530">More...</a><br /></td></tr>
<tr class="separator:a5f894c9c36ad391fdc85552af67a8530 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adc6c1e8f094275114d6e2c3ef3a33f98 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#adc6c1e8f094275114d6e2c3ef3a33f98">connect_property_changed</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& property_name, const <a class="elRef" doxygen="/opt/gnome/share/doc/libsigc++-2.0/reference/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 >& slot)</td></tr>
<tr class="memdesc:adc6c1e8f094275114d6e2c3ef3a33f98 inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">You can use the signal_changed() signal of the property proxy instead, but this is necessary when using the reduced API. <a href="#adc6c1e8f094275114d6e2c3ef3a33f98">More...</a><br /></td></tr>
<tr class="separator:adc6c1e8f094275114d6e2c3ef3a33f98 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a896d7773c00bd2dcd310c861282ee8d1 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="/opt/gnome/share/doc/libsigc++-2.0/reference/libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1connection.html">sigc::connection</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a896d7773c00bd2dcd310c861282ee8d1">connect_property_changed_with_return</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& property_name, const <a class="elRef" doxygen="/opt/gnome/share/doc/libsigc++-2.0/reference/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 >& slot)</td></tr>
<tr class="memdesc:a896d7773c00bd2dcd310c861282ee8d1 inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">You can use the signal_changed() signal of the property proxy instead, but this is necessary when using the reduced API. <a href="#a896d7773c00bd2dcd310c861282ee8d1">More...</a><br /></td></tr>
<tr class="separator:a896d7773c00bd2dcd310c861282ee8d1 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6e9e13b75f116c20212d318204ce8ea3 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a6e9e13b75f116c20212d318204ce8ea3">freeze_notify</a> ()</td></tr>
<tr class="memdesc:a6e9e13b75f116c20212d318204ce8ea3 inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">Increases the freeze count on object. <a href="#a6e9e13b75f116c20212d318204ce8ea3">More...</a><br /></td></tr>
<tr class="separator:a6e9e13b75f116c20212d318204ce8ea3 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1bd8ea7bd8c4084ade6b3c27dddf06a4 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a1bd8ea7bd8c4084ade6b3c27dddf06a4">thaw_notify</a> ()</td></tr>
<tr class="memdesc:a1bd8ea7bd8c4084ade6b3c27dddf06a4 inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">Reverts the effect of a previous call to <a class="el" href="classGlib_1_1ObjectBase.html#a6e9e13b75f116c20212d318204ce8ea3" title="Increases the freeze count on object. ">freeze_notify()</a>. <a href="#a1bd8ea7bd8c4084ade6b3c27dddf06a4">More...</a><br /></td></tr>
<tr class="separator:a1bd8ea7bd8c4084ade6b3c27dddf06a4 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a896a8a5db20043ea82956e3ef4b9c4ae inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a896a8a5db20043ea82956e3ef4b9c4ae">reference</a> () const </td></tr>
<tr class="memdesc:a896a8a5db20043ea82956e3ef4b9c4ae inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">Increment the reference count for this object. <a href="#a896a8a5db20043ea82956e3ef4b9c4ae">More...</a><br /></td></tr>
<tr class="separator:a896a8a5db20043ea82956e3ef4b9c4ae inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3234b8ffb2a35b927e2978c8f3bfbfe3 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a3234b8ffb2a35b927e2978c8f3bfbfe3">unreference</a> () const </td></tr>
<tr class="memdesc:a3234b8ffb2a35b927e2978c8f3bfbfe3 inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">Decrement the reference count for this object. <a href="#a3234b8ffb2a35b927e2978c8f3bfbfe3">More...</a><br /></td></tr>
<tr class="separator:a3234b8ffb2a35b927e2978c8f3bfbfe3 inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4c6efc18be8cb9c56e58fc0bd20fafbe inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">GObject* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">gobj</a> ()</td></tr>
<tr class="memdesc:a4c6efc18be8cb9c56e58fc0bd20fafbe inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a4c6efc18be8cb9c56e58fc0bd20fafbe">More...</a><br /></td></tr>
<tr class="separator:a4c6efc18be8cb9c56e58fc0bd20fafbe inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a778a94181132976bbfb0519793f3b32e inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">const GObject* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">gobj</a> () const </td></tr>
<tr class="memdesc:a778a94181132976bbfb0519793f3b32e inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a778a94181132976bbfb0519793f3b32e">More...</a><br /></td></tr>
<tr class="separator:a778a94181132976bbfb0519793f3b32e inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9b2a5eb93102f1849e5419016e22a15f inherit pub_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">GObject* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a9b2a5eb93102f1849e5419016e22a15f">gobj_copy</a> () const </td></tr>
<tr class="memdesc:a9b2a5eb93102f1849e5419016e22a15f inherit pub_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">Give a ref-ed copy to someone. Use for direct struct access. <a href="#a9b2a5eb93102f1849e5419016e22a15f">More...</a><br /></td></tr>
<tr class="separator:a9b2a5eb93102f1849e5419016e22a15f inherit pub_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:af19553f2244f8ad5a118751952b7a2b5"><td class="memItemLeft" align="right" valign="top">static GType </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#af19553f2244f8ad5a118751952b7a2b5">get_type</a> ()</td></tr>
<tr class="memdesc:af19553f2244f8ad5a118751952b7a2b5"><td class="mdescLeft"> </td><td class="mdescRight">Get the GType for this class, for use with the underlying GObject type system. <a href="#af19553f2244f8ad5a118751952b7a2b5">More...</a><br /></td></tr>
<tr class="separator:af19553f2244f8ad5a118751952b7a2b5"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a4a58a5d7ed0e2dd3fcab1f110f8cb6a3"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#a4a58a5d7ed0e2dd3fcab1f110f8cb6a3">MenuModel</a> ()</td></tr>
<tr class="separator:a4a58a5d7ed0e2dd3fcab1f110f8cb6a3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_methods_classGlib_1_1Object"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classGlib_1_1Object')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classGlib_1_1Object.html">Glib::Object</a></td></tr>
<tr class="memitem:ad43f7c5ad0336e1eb3af622392a112eb inherit pro_methods_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#ad43f7c5ad0336e1eb3af622392a112eb">Object</a> ()</td></tr>
<tr class="separator:ad43f7c5ad0336e1eb3af622392a112eb inherit pro_methods_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6d72588496bd7ac03f72420021fb94a5 inherit pro_methods_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#a6d72588496bd7ac03f72420021fb94a5">Object</a> (const Glib::ConstructParams& construct_params)</td></tr>
<tr class="separator:a6d72588496bd7ac03f72420021fb94a5 inherit pro_methods_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6f490eeaeb71db673c36799a0f729be5 inherit pro_methods_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#a6f490eeaeb71db673c36799a0f729be5">Object</a> (GObject* castitem)</td></tr>
<tr class="separator:a6f490eeaeb71db673c36799a0f729be5 inherit pro_methods_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5ae4319439a3a03d8f803fb5a27f12df inherit pro_methods_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#a5ae4319439a3a03d8f803fb5a27f12df">~Object</a> ()</td></tr>
<tr class="separator:a5ae4319439a3a03d8f803fb5a27f12df inherit pro_methods_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_methods_classGlib_1_1ObjectBase"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classGlib_1_1ObjectBase')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classGlib_1_1ObjectBase.html">Glib::ObjectBase</a></td></tr>
<tr class="memitem:a27d3451d9ca28d6a2f00838d7c56d545 inherit pro_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a27d3451d9ca28d6a2f00838d7c56d545">ObjectBase</a> ()</td></tr>
<tr class="memdesc:a27d3451d9ca28d6a2f00838d7c56d545 inherit pro_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">This default constructor is called implicitly from the constructor of user-derived classes, even if, for instance, Gtk::Button calls a different <a class="el" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces. ">ObjectBase</a> constructor. <a href="#a27d3451d9ca28d6a2f00838d7c56d545">More...</a><br /></td></tr>
<tr class="separator:a27d3451d9ca28d6a2f00838d7c56d545 inherit pro_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad4ef18214894c6874579313ab21d1018 inherit pro_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#ad4ef18214894c6874579313ab21d1018">ObjectBase</a> (const char* custom_type_name)</td></tr>
<tr class="memdesc:ad4ef18214894c6874579313ab21d1018 inherit pro_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">A derived constructor always overrides this choice. <a href="#ad4ef18214894c6874579313ab21d1018">More...</a><br /></td></tr>
<tr class="separator:ad4ef18214894c6874579313ab21d1018 inherit pro_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3d59b4d85b0ee72a727e6b2e1b31a2ff inherit pro_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a3d59b4d85b0ee72a727e6b2e1b31a2ff">ObjectBase</a> (const <a class="elRef" doxygen="/opt/gnome/share/mm-common/doctags/libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00947.html">std::type_info</a>& custom_type_info)</td></tr>
<tr class="memdesc:a3d59b4d85b0ee72a727e6b2e1b31a2ff inherit pro_methods_classGlib_1_1ObjectBase"><td class="mdescLeft"> </td><td class="mdescRight">This constructor is a special feature to allow creation of derived types on the fly, without having to use g_object_new() manually. <a href="#a3d59b4d85b0ee72a727e6b2e1b31a2ff">More...</a><br /></td></tr>
<tr class="separator:a3d59b4d85b0ee72a727e6b2e1b31a2ff inherit pro_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a42ac047a06c36c2d9c75f7cffc537dc4 inherit pro_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a42ac047a06c36c2d9c75f7cffc537dc4">~ObjectBase</a> ()=0</td></tr>
<tr class="separator:a42ac047a06c36c2d9c75f7cffc537dc4 inherit pro_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3faafb14c4f0ca60fbf0f5f5c4d549d0 inherit pro_methods_classGlib_1_1ObjectBase"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ObjectBase.html#a3faafb14c4f0ca60fbf0f5f5c4d549d0">initialize</a> (GObject* castitem)</td></tr>
<tr class="separator:a3faafb14c4f0ca60fbf0f5f5c4d549d0 inherit pro_methods_classGlib_1_1ObjectBase"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p>
</td></tr>
<tr class="memitem:aeaa4856722c5a84b7f287e8900b43fdd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1MenuModel.html">Gio::MenuModel</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MenuModel.html#aeaa4856722c5a84b7f287e8900b43fdd">wrap</a> (GMenuModel* object, bool take_copy=false)</td></tr>
<tr class="memdesc:aeaa4856722c5a84b7f287e8900b43fdd"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#aeaa4856722c5a84b7f287e8900b43fdd">More...</a><br /></td></tr>
<tr class="separator:aeaa4856722c5a84b7f287e8900b43fdd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header related_classGlib_1_1Object"><td colspan="2" onclick="javascript:toggleInherit('related_classGlib_1_1Object')"><img src="closed.png" alt="-"/> Related Functions inherited from <a class="el" href="classGlib_1_1Object.html">Glib::Object</a></td></tr>
<tr class="memitem:ae4dea9a8dc611d6e4400a5b6a3cb4e7f inherit related_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGlib_1_1Object.html">Glib::Object</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#ae4dea9a8dc611d6e4400a5b6a3cb4e7f">wrap</a> (GObject* object, bool take_copy=false)</td></tr>
<tr class="separator:ae4dea9a8dc611d6e4400a5b6a3cb4e7f inherit related_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classGlib_1_1Object"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classGlib_1_1Object')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classGlib_1_1Object.html">Glib::Object</a></td></tr>
<tr class="memitem:a1d8d9f3c19b59eda96c40beca8d520e0 inherit pub_types_classGlib_1_1Object"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Object.html#a1d8d9f3c19b59eda96c40beca8d520e0">DestroyNotify</a> )(gpointer data)</td></tr>
<tr class="separator:a1d8d9f3c19b59eda96c40beca8d520e0 inherit pub_types_classGlib_1_1Object"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> - An abstract class representing the contents of a menu. </p>
<p><a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> represents the contents of a menu – an ordered list of menu items. The items are associated with actions, which can be activated through them. Items can be grouped in sections, and may have submenus associated with them. Both items and sections usually have some representation data, such as labels or icons. The type of the associated action (ie whether it is stateful, and what kind of state it has) can influence the representation of the item.</p>
<p>The conceptual model of menus in <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> is hierarchical: sections and submenus are again represented by MenuModels. Menus themselves do not define their own roles. Rather, the role of a particular <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> is defined by the item that references it (or, in the case of the 'root' menu, is defined by the context in which it is used).</p>
<p>The motivation for this abstract model of application controls is that modern user interfaces tend to make these controls available outside the application. Examples include global menus, jumplists, dash boards, etc. To support such uses, it is necessary to 'export' information about actions and their representation in menus, which is exactly what <a class="el" href="classGio_1_1DBus_1_1Connection.html#a2e5b3f466471359b4595b5846508c1a2" title="Exports action_group on connection at object_path. ">Gio::DBus::Connection::export_action_group()</a> and the <a class="el" href="classGio_1_1DBus_1_1Connection.html#ad1595ae3e1d1f1c123245d488719923c" title="Exports menu on connection at object_path. ">Gio::DBus::Connection::export_menu_model()</a> do for <a class="el" href="classGio_1_1ActionGroup.html" title="ActionGroup - a group of actions. ">ActionGroup</a> and <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a>. The client-side counterparts to make use of the exported information are <a class="el" href="classGio_1_1DBus_1_1ActionGroup.html" title="ActionGroup - A D-Bus Gio::ActionGroup implementation. ">Gio::DBus::ActionGroup</a> and <a class="el" href="classGio_1_1DBus_1_1MenuModel.html" title="MenuModel - A D-Bus Gio::MenuModel implementation. ">Gio::DBus::MenuModel</a>.</p>
<p>The API of <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> is very generic, with iterators for the attributes and links of an item, see <a class="el" href="classGio_1_1MenuModel.html#a074bfb4ed7c3b2a94000b62fdce6dfc0" title="Creates a MenuAttributeIter to iterate over the attributes of the item at position item_index in mode...">iterate_item_attributes()</a> and <a class="el" href="classGio_1_1MenuModel.html#a5abda335e54302c4e8285c41bf201e51" title="Creates a MenuLinkIter to iterate over the links of the item at position item_index in model...">iterate_item_links()</a>. The 'standard' attributes and link types have predefined names: <a class="el" href="namespaceGio.html#a7df84578d37eccbf86072c8fc85b217aa4ae64afc7fe6c6660c51c6f486c040cf" title="The "label" menu attribute. ">Gio::MENU_ATTRIBUTE_LABEL</a>, <a class="el" href="namespaceGio.html#a7df84578d37eccbf86072c8fc85b217aa86f1a371d32e9fab99744d963e04f5bb" title="The "action" menu attribute. ">Gio::MENU_ATTRIBUTE_ACTION</a>, <a class="el" href="namespaceGio.html#a7df84578d37eccbf86072c8fc85b217aa58117bdf3a42e57648845407823a3219" title="The "target" menu attribute. ">Gio::MENU_ATTRIBUTE_TARGET</a>, <a class="el" href="namespaceGio.html#a4febebe134c8e141020c6c253711e0d2aa6356ca52c0aeb0abea871c903fa2b70" title="The "section" menu link. ">Gio::MENU_LINK_SECTION</a> and <a class="el" href="namespaceGio.html#a4febebe134c8e141020c6c253711e0d2a58cf137e0477ed185f5ff32ae84dcedc" title="The "submenu" menu link. ">Gio::MENU_LINK_SUBMENU</a>.</p>
<p>Items in a <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> represent active controls if they refer to an action that can get activated when the user interacts with the menu item. The reference to the action is encoded by the string id in the <a class="el" href="namespaceGio.html#a7df84578d37eccbf86072c8fc85b217aa86f1a371d32e9fab99744d963e04f5bb" title="The "action" menu attribute. ">Gio::MENU_ATTRIBUTE_ACTION</a> attribute. An action id uniquely identifies an action in an action group. Which action group(s) provide actions depends on the context in which the menu model is used. E.g. when the model is exported as the application menu of a Gtk::Application, actions can be application-wide or window-specific (and thus come from two different action groups). By convention, the application-wide actions have names that start with "app.", while the names of window-specific actions start with "win.".</p>
<p>While a wide variety of stateful actions is possible, the following is the minimum that is expected to be supported by all users of exported menu information:</p>
<ul>
<li>an action with no parameter type and no state</li>
<li>an action with no parameter type and boolean state</li>
<li>an action with string parameter type and string state</li>
</ul>
<p><b>Stateless.</b> A stateless action typically corresponds to an ordinary menu item. Selecting such a menu item will activate the action (with no parameter).</p>
<p><b>Boolean State.</b> An action with a boolean state will most typically be used with a "toggle" or "switch" menu item. The state can be set directly, but activating the action (with no parameter) results in the state being toggled. Selecting a toggle menu item will activate the action. The menu item should be rendered as "checked" when the state is true.</p>
<p><b>String Parameter and State.</b> Actions with string parameters and state will most typically be used to represent an enumerated choice over the items available for a group of radio menu items. Activating the action with a string parameter is equivalent to setting that parameter as the state. Radio menu items, in addition to being associated with the action, will have a target value. Selecting that menu item will result in activation of the action with the target value as the parameter. The menu item should be rendered as "selected" when the state of the action is equal to the target value of the menu item.</p>
<p>See the C API docs for a graphical example. </p><dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000078">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="aa50e7a927c5798cfa94d38a50b919c64"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual Gio::MenuModel::~MenuModel </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Reimplemented in <a class="el" href="classGio_1_1DBus_1_1MenuModel.html#aaa35f975fae85c911214a8db9519c242">Gio::DBus::MenuModel</a>.</p>
</div>
</div>
<a class="anchor" id="a4a58a5d7ed0e2dd3fcab1f110f8cb6a3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Gio::MenuModel::MenuModel </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a99090d7f9e7406e5bdc950f86b82f019"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGlib_1_1VariantBase.html">Glib::VariantBase</a> Gio::MenuModel::get_item_attribute </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>item_index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceGio.html#a7df84578d37eccbf86072c8fc85b217a">MenuAttribute</a> </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">Glib::VariantType</a>& </td>
<td class="paramname"><em>expected_type</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Queries the item at position <em>item_index</em> in <em>model</em> for the attribute specified by <em>attribute</em>. </p>
<p>If <em>expected_type</em> is non-<code>0</code> then it specifies the expected type of the attribute. If it is <code>0</code> then any type will be accepted.</p>
<p>If the attribute exists and matches <em>expected_type</em> (or if the expected type is unspecified) then the value is returned.</p>
<p>If the attribute does not exist, or does not match the expected type then <code>0</code> is returned.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000079">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">item_index</td><td>The index of the item. </td></tr>
<tr><td class="paramname">attribute</td><td>The attribute to query. </td></tr>
<tr><td class="paramname">expected_type</td><td>The expected type of the attribute, or <code>0</code>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value of the attribute. </dd></dl>
</div>
</div>
<a class="anchor" id="a9083fb4bc22839eac9d82efd0a465501"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classGlib_1_1VariantBase.html">Glib::VariantBase</a> Gio::MenuModel::get_item_attribute </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>item_index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceGio.html#a7df84578d37eccbf86072c8fc85b217a">MenuAttribute</a> </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">Glib::VariantType</a>& </td>
<td class="paramname"><em>expected_type</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Queries the item at position <em>item_index</em> in <em>model</em> for the attribute specified by <em>attribute</em>. </p>
<p>If <em>expected_type</em> is non-<code>0</code> then it specifies the expected type of the attribute. If it is <code>0</code> then any type will be accepted.</p>
<p>If the attribute exists and matches <em>expected_type</em> (or if the expected type is unspecified) then the value is returned.</p>
<p>If the attribute does not exist, or does not match the expected type then <code>0</code> is returned.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000080">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">item_index</td><td>The index of the item. </td></tr>
<tr><td class="paramname">attribute</td><td>The attribute to query. </td></tr>
<tr><td class="paramname">expected_type</td><td>The expected type of the attribute, or <code>0</code>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value of the attribute. </dd></dl>
</div>
</div>
<a class="anchor" id="aca233273e44374beeb579113560621b5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MenuModel.html">MenuModel</a>> Gio::MenuModel::get_item_link </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>item_index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceGio.html#a4febebe134c8e141020c6c253711e0d2">MenuLink</a> </td>
<td class="paramname"><em>link</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Queries the item at position <em>item_index</em> in <em>model</em> for the link specified by <em>link</em>. </p>
<p>If the link exists, the linked <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> is returned. If the link does not exist, <code>0</code> is returned.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000081">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">item_index</td><td>The index of the item. </td></tr>
<tr><td class="paramname">link</td><td>The link to query. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The linked <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a>, or <code>0</code>. </dd></dl>
</div>
</div>
<a class="anchor" id="a559fc7a0480fc4b4df17e91e7a8f3bd5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGio_1_1MenuModel.html">MenuModel</a>> Gio::MenuModel::get_item_link </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>item_index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceGio.html#a4febebe134c8e141020c6c253711e0d2">MenuLink</a> </td>
<td class="paramname"><em>link</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Queries the item at position <em>item_index</em> in <em>model</em> for the link specified by <em>link</em>. </p>
<p>If the link exists, the linked <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> is returned. If the link does not exist, <code>0</code> is returned.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000082">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">item_index</td><td>The index of the item. </td></tr>
<tr><td class="paramname">link</td><td>The link to query. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The linked <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a>, or <code>0</code>. </dd></dl>
</div>
</div>
<a class="anchor" id="a2f6a0ebbc8a2c259887dbee8878c428f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Gio::MenuModel::get_n_items </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Query the number of items in <em>model</em>. </p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000084">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The number of items. </dd></dl>
</div>
</div>
<a class="anchor" id="af19553f2244f8ad5a118751952b7a2b5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static GType Gio::MenuModel::get_type </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the GType for this class, for use with the underlying GObject type system. </p>
</div>
</div>
<a class="anchor" id="aa09ec8d56a76f646e7133b6dd2271ced"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">GMenuModel* Gio::MenuModel::gobj </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Provides access to the underlying C GObject. </p>
</div>
</div>
<a class="anchor" id="a5cdc6c658245ee2a22dcc10e1eb119ab"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const GMenuModel* Gio::MenuModel::gobj </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Provides access to the underlying C GObject. </p>
</div>
</div>
<a class="anchor" id="ac75e5986055f0ec9cb56077cf533e44c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GMenuModel* Gio::MenuModel::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="acbfed3821e834c151001fd0aaeebb398"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gio::MenuModel::is_mutable </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Queries if <em>model</em> is mutable. </p>
<p>An immutable <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> will never emit the <a class="el" href="classGio_1_1MenuModel.html#af149b5e5c10b5038d7dd92ece3fa6032">MenuModel::signal_items_changed()</a> signal. Consumers of the model may make optimisations accordingly.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000083">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the model is mutable (ie: "items-changed" may be emitted). </dd></dl>
</div>
</div>
<a class="anchor" id="a0b0c42bcd34312965430750a2f56071a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gio::MenuModel::items_changed </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>position</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>removed</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>added</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Requests emission of the <a class="el" href="classGio_1_1MenuModel.html#af149b5e5c10b5038d7dd92ece3fa6032">MenuModel::signal_items_changed()</a> signal on <em>model</em>. </p>
<p>This function should never be called except by <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> subclasses. Any other calls to this function will very likely lead to a violation of the interface of the model.</p>
<p>The implementation should update its internal representation of the menu before emitting the signal. The implementation should further expect to receive queries about the new state of the menu (and particularly added menu items) while signal handlers are running.</p>
<p>The implementation must dispatch this call directly from a mainloop entry and not in response to calls – particularly those from the <a class="el" href="classGio_1_1MenuModel.html" title="MenuModel - An abstract class representing the contents of a menu. ">MenuModel</a> API. Said another way: the menu must not change while user code is running without returning to the mainloop.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000089">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">position</td><td>The position of the change. </td></tr>
<tr><td class="paramname">removed</td><td>The number of items removed. </td></tr>
<tr><td class="paramname">added</td><td>The number of items added. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a074bfb4ed7c3b2a94000b62fdce6dfc0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MenuAttributeIter.html">MenuAttributeIter</a>> Gio::MenuModel::iterate_item_attributes </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>item_index</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a <a class="el" href="classGio_1_1MenuAttributeIter.html" title="MenuAttributeIter - A menu attribute iterator. ">MenuAttributeIter</a> to iterate over the attributes of the item at position <em>item_index</em> in <em>model</em>. </p>
<p>You must free the iterator with Glib::object_unref() when you are done.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000085">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">item_index</td><td>The index of the item. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGio_1_1MenuAttributeIter.html" title="MenuAttributeIter - A menu attribute iterator. ">MenuAttributeIter</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="ababd702c0ecfe7f586256c366fb91f04"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGio_1_1MenuAttributeIter.html">MenuAttributeIter</a>> Gio::MenuModel::iterate_item_attributes </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>item_index</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a <a class="el" href="classGio_1_1MenuAttributeIter.html" title="MenuAttributeIter - A menu attribute iterator. ">MenuAttributeIter</a> to iterate over the attributes of the item at position <em>item_index</em> in <em>model</em>. </p>
<p>You must free the iterator with Glib::object_unref() when you are done.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000086">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">item_index</td><td>The index of the item. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGio_1_1MenuAttributeIter.html" title="MenuAttributeIter - A menu attribute iterator. ">MenuAttributeIter</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="a5abda335e54302c4e8285c41bf201e51"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MenuLinkIter.html">MenuLinkIter</a>> Gio::MenuModel::iterate_item_links </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>item_index</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a <a class="el" href="classGio_1_1MenuLinkIter.html" title="MenuLinkIter - A menu link iterator. ">MenuLinkIter</a> to iterate over the links of the item at position <em>item_index</em> in <em>model</em>. </p>
<p>You must free the iterator with Glib::object_unref() when you are done.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000087">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">item_index</td><td>The index of the item. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGio_1_1MenuLinkIter.html" title="MenuLinkIter - A menu link iterator. ">MenuLinkIter</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="a95599efdd50d47162a65a0d905f78fc7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGio_1_1MenuLinkIter.html">MenuLinkIter</a>> Gio::MenuModel::iterate_item_links </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>item_index</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a <a class="el" href="classGio_1_1MenuLinkIter.html" title="MenuLinkIter - A menu link iterator. ">MenuLinkIter</a> to iterate over the links of the item at position <em>item_index</em> in <em>model</em>. </p>
<p>You must free the iterator with Glib::object_unref() when you are done.</p>
<dl class="since_2_32"><dt><b><a class="el" href="since_2_32.html#_since_2_32000088">Since glibmm 2.32:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">item_index</td><td>The index of the item. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGio_1_1MenuLinkIter.html" title="MenuLinkIter - A menu link iterator. ">MenuLinkIter</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="af149b5e5c10b5038d7dd92ece3fa6032"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGlib_1_1SignalProxy3.html">Glib::SignalProxy3</a>< void,int,int,int > Gio::MenuModel::signal_items_changed </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section user"><dt>Slot Prototype:</dt><dd><code>void on_my_items_changed(int position, int removed, int added)</code></dd></dl>
<p>Emitted when a change has occured to the menu.</p>
<p>The only changes that can occur to a menu is that items are removed or added. Items may not change (except by being removed and added back in the same location). This signal is capable of describing both of those changes (at the same time).</p>
<p>The signal means that starting at the index <em>position</em>, <em>removed</em> items were removed and <em>added</em> items were added in their place. If <em>removed</em> is zero then only items were added. If <em>added</em> is zero then only items were removed.</p>
<p>As an example, if the menu contains items a, b, c, d (in that order) and the signal (2, 1, 3) occurs then the new composition of the menu will be a, b, _, _, _, d (with each _ representing some new item).</p>
<p>Signal handlers may query the model (particularly the added items) and expect to see the results of the modification that is being reported. The signal is emitted after the modification.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">position</td><td>The position of the change. </td></tr>
<tr><td class="paramname">removed</td><td>The number of items removed. </td></tr>
<tr><td class="paramname">added</td><td>The number of items added. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="aeaa4856722c5a84b7f287e8900b43fdd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1MenuModel.html">Gio::MenuModel</a> > wrap </td>
<td>(</td>
<td class="paramtype">GMenuModel * </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>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">object</td><td>The C instance. </td></tr>
<tr><td class="paramname">take_copy</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="section return"><dt>Returns</dt><dd>A C++ instance that wraps this C instance. </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Sep 22 2014 21:38:31 for glibmm by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>
|