/usr/share/gtk-doc/html/libdazzle/DzlTree.html is in libdazzle-doc 3.28.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DzlTree: Dazzle Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Dazzle Reference Manual">
<link rel="up" href="dazzle-tree.html" title="Part IX. Lazy Tree Building">
<link rel="prev" href="dazzle-tree.html" title="Part IX. Lazy Tree Building">
<link rel="next" href="DzlTreeBuilder.html" title="DzlTreeBuilder">
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#DzlTree.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="dazzle-tree.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="dazzle-tree.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="DzlTreeBuilder.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="DzlTree"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="DzlTree.top_of_page"></a>DzlTree</span></h2>
<p>DzlTree</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="DzlTree.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="DzlTree.html#DzlTreeFindFunc" title="DzlTreeFindFunc ()">*DzlTreeFindFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="DzlTree.html#DzlTreeFilterFunc" title="DzlTreeFilterFunc ()">*DzlTreeFilterFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-add-builder" title="dzl_tree_add_builder ()">dzl_tree_add_builder</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-remove-builder" title="dzl_tree_remove_builder ()">dzl_tree_remove_builder</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-find-item" title="dzl_tree_find_item ()">dzl_tree_find_item</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-find-custom" title="dzl_tree_find_custom ()">dzl_tree_find_custom</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-get-selected" title="dzl_tree_get_selected ()">dzl_tree_get_selected</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-unselect-all" title="dzl_tree_unselect_all ()">dzl_tree_unselect_all</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-rebuild" title="dzl_tree_rebuild ()">dzl_tree_rebuild</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-set-root" title="dzl_tree_set_root ()">dzl_tree_set_root</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-get-root" title="dzl_tree_get_root ()">dzl_tree_get_root</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-set-show-icons" title="dzl_tree_set_show_icons ()">dzl_tree_set_show_icons</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-get-show-icons" title="dzl_tree_get_show_icons ()">dzl_tree_get_show_icons</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-scroll-to-node" title="dzl_tree_scroll_to_node ()">dzl_tree_scroll_to_node</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-expand-to-node" title="dzl_tree_expand_to_node ()">dzl_tree_expand_to_node</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-find-child-node" title="dzl_tree_find_child_node ()">dzl_tree_find_child_node</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-set-filter" title="dzl_tree_set_filter ()">dzl_tree_set_filter</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GMenuModel</span> *
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-get-context-menu" title="dzl_tree_get_context_menu ()">dzl_tree_get_context_menu</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="DzlTree.html#dzl-tree-set-context-menu" title="dzl_tree_set_context_menu ()">dzl_tree_set_context_menu</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="DzlTree.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="DzlTree.html#DzlTreeClass" title="DzlTreeClass">DzlTreeClass</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="DzlTree.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="DzlTree.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="DzlTreeFindFunc"></a><h3>DzlTreeFindFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
<span class="c_punctuation">(</span>*DzlTreeFindFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *tree</code></em>,
<em class="parameter"><code><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> *node</code></em>,
<em class="parameter"><code><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> *child</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Callback to check <em class="parameter"><code>child</code></em>
, a child of <em class="parameter"><code>node</code></em>
, matches a lookup
request. Returns <code class="literal">TRUE</code> if <em class="parameter"><code>child</code></em>
matches, <code class="literal">FALSE</code> if not.</p>
<div class="refsect3">
<a name="DzlTreeFindFunc.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>child</code></em>
matched</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="DzlTreeFilterFunc"></a><h3>DzlTreeFilterFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
<span class="c_punctuation">(</span>*DzlTreeFilterFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *tree</code></em>,
<em class="parameter"><code><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> *node</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Callback to check if <em class="parameter"><code>node</code></em>
should be visible.</p>
<div class="refsect3">
<a name="DzlTreeFilterFunc.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>node</code></em>
should be visible.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-add-builder"></a><h3>dzl_tree_add_builder ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_add_builder (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="DzlTreeBuilder.html" title="DzlTreeBuilder"><span class="type">DzlTreeBuilder</span></a> *builder</code></em>);</pre>
<p>Add a builder to the tree.</p>
<div class="refsect3">
<a name="dzl-tree-add-builder.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>builder</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTreeBuilder.html" title="DzlTreeBuilder"><span class="type">DzlTreeBuilder</span></a> to add.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-remove-builder"></a><h3>dzl_tree_remove_builder ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_remove_builder (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="DzlTreeBuilder.html" title="DzlTreeBuilder"><span class="type">DzlTreeBuilder</span></a> *builder</code></em>);</pre>
<p>Removes a builder from the tree.</p>
<div class="refsect3">
<a name="dzl-tree-remove-builder.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>builder</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTreeBuilder.html" title="DzlTreeBuilder"><span class="type">DzlTreeBuilder</span></a> to remove. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-find-item"></a><h3>dzl_tree_find_item ()</h3>
<pre class="programlisting"><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
dzl_tree_find_item (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">GObject</span> *item</code></em>);</pre>
<p>Finds a <a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> with an item property matching <em class="parameter"><code>item</code></em>
.</p>
<div class="refsect3">
<a name="dzl-tree-find-item.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>item</p></td>
<td class="parameter_description"><p>A <span class="type">GObject</span> or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="dzl-tree-find-item.returns"></a><h4>Returns</h4>
<p>A <a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-find-custom"></a><h3>dzl_tree_find_custom ()</h3>
<pre class="programlisting"><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
dzl_tree_find_custom (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">GEqualFunc</span> equal_func</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> key</code></em>);</pre>
<p>Walks the entire tree looking for the first item that matches given
<em class="parameter"><code>equal_func</code></em>
and <em class="parameter"><code>key</code></em>
.</p>
<p>The first parameter to <em class="parameter"><code>equal_func</code></em>
will always be <em class="parameter"><code>key</code></em>
.
The second parameter will be the nodes <a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode--item" title="The “item” property"><span class="type">“item”</span></a> property.</p>
<div class="refsect3">
<a name="dzl-tree-find-custom.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>equal_func</p></td>
<td class="parameter_description"><p>A <span class="type">GEqualFunc</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>key</p></td>
<td class="parameter_description"><p>the key for <em class="parameter"><code>equal_func</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="dzl-tree-find-custom.returns"></a><h4>Returns</h4>
<p>A <a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-get-selected"></a><h3>dzl_tree_get_selected ()</h3>
<pre class="programlisting"><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
dzl_tree_get_selected (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>);</pre>
<p>Gets the currently selected node in the tree.</p>
<div class="refsect3">
<a name="dzl-tree-get-selected.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>]</span></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="dzl-tree-get-selected.returns"></a><h4>Returns</h4>
<p>A <a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-unselect-all"></a><h3>dzl_tree_unselect_all ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_unselect_all (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>);</pre>
<p>Unselects the currently selected node in the tree.</p>
<div class="refsect3">
<a name="dzl-tree-unselect-all.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>]</span></td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-rebuild"></a><h3>dzl_tree_rebuild ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_rebuild (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-set-root"></a><h3>dzl_tree_set_root ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_set_root (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> *node</code></em>);</pre>
<p>Sets the root node of the <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> widget. This is used to build
the items within the treeview. The item itself will not be added
to the self, but the direct children will be.</p>
<div class="refsect3">
<a name="dzl-tree-set-root.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>node</p></td>
<td class="parameter_description"><p>A <a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-get-root"></a><h3>dzl_tree_get_root ()</h3>
<pre class="programlisting"><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
dzl_tree_get_root (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>);</pre>
<p>Retrieves the root node of the tree. The root node is not a visible node
in the self, but a placeholder for all other builders to build upon.</p>
<div class="refsect3">
<a name="dzl-tree-get-root.returns"></a><h4>Returns</h4>
<p>A <a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-set-show-icons"></a><h3>dzl_tree_set_show_icons ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_set_show_icons (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> show_icons</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-get-show-icons"></a><h3>dzl_tree_get_show_icons ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
dzl_tree_get_show_icons (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-scroll-to-node"></a><h3>dzl_tree_scroll_to_node ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_scroll_to_node (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> *node</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-expand-to-node"></a><h3>dzl_tree_expand_to_node ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_expand_to_node (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> *node</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-find-child-node"></a><h3>dzl_tree_find_child_node ()</h3>
<pre class="programlisting"><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="returnvalue">DzlTreeNode</span></a> *
dzl_tree_find_child_node (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> *node</code></em>,
<em class="parameter"><code><a class="link" href="DzlTree.html#DzlTreeFindFunc" title="DzlTreeFindFunc ()"><span class="type">DzlTreeFindFunc</span></a> find_func</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Searches through the direct children of <em class="parameter"><code>node</code></em>
for a matching child.
<em class="parameter"><code>find_func</code></em>
should return <code class="literal">TRUE</code> if the child matches, otherwise <code class="literal">FALSE</code>.</p>
<div class="refsect3">
<a name="dzl-tree-find-child-node.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>node</p></td>
<td class="parameter_description"><p>A <a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>find_func</p></td>
<td class="parameter_description"><p>A callback to locate the child. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data for <em class="parameter"><code>find_func</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="dzl-tree-find-child-node.returns"></a><h4>Returns</h4>
<p>A <a class="link" href="libdazzle-dzl-tree-types.html#DzlTreeNode"><span class="type">DzlTreeNode</span></a> or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-set-filter"></a><h3>dzl_tree_set_filter ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_set_filter (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="DzlTree.html#DzlTreeFilterFunc" title="DzlTreeFilterFunc ()"><span class="type">DzlTreeFilterFunc</span></a> filter_func</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> filter_data</code></em>,
<em class="parameter"><code><span class="type">GDestroyNotify</span> filter_data_destroy</code></em>);</pre>
<p>Sets the filter function to be used to determine visability of a tree node.</p>
<div class="refsect3">
<a name="dzl-tree-set-filter.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>filter_func</p></td>
<td class="parameter_description"><p>A callback to determien visibility. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>filter_data</p></td>
<td class="parameter_description"><p>User data for <em class="parameter"><code>filter_func</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>filter_data_destroy</p></td>
<td class="parameter_description"><p>Destroy notify for <em class="parameter"><code>filter_data</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-get-context-menu"></a><h3>dzl_tree_get_context_menu ()</h3>
<pre class="programlisting"><span class="returnvalue">GMenuModel</span> *
dzl_tree_get_context_menu (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>);</pre>
<div class="refsect3">
<a name="dzl-tree-get-context-menu.returns"></a><h4>Returns</h4>
<p>A <span class="type">GMenuModel</span> or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dzl-tree-set-context-menu"></a><h3>dzl_tree_set_context_menu ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dzl_tree_set_context_menu (<em class="parameter"><code><a class="link" href="DzlTree.html" title="DzlTree"><span class="type">DzlTree</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">GMenuModel</span> *context_menu</code></em>);</pre>
</div>
</div>
<div class="refsect1">
<a name="DzlTree.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="DzlTreeClass"></a><h3>DzlTreeClass</h3>
<pre class="programlisting">typedef struct {
GtkTreeViewClass parent_class;
void (*action) (DzlTree *self,
const gchar *action_group,
const gchar *action_name,
const gchar *param);
void (*populate_popup) (DzlTree *self,
GtkWidget *widget);
} DzlTreeClass;
</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.27</div>
</body>
</html>
|