/usr/share/gtk-doc/html/goocanvas2/GooCanvasItemSimple.html is in libgoocanvas-2.0-dev 2.0.2-0ubuntu2.
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 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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GooCanvas Reference Manual: GooCanvasItemSimple</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GooCanvas Reference Manual">
<link rel="up" href="ch02.html" title="Core Objects">
<link rel="prev" href="GooCanvasItemModel.html" title="GooCanvasItemModel">
<link rel="next" href="GooCanvasItemModelSimple.html" title="GooCanvasItemModelSimple">
<meta name="generator" content="GTK-Doc V1.19.1 (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="10"><tr valign="middle">
<td width="100%" align="left">
<a href="#" class="shortcut">Top</a>
|
<a href="#GooCanvasItemSimple.description" class="shortcut">Description</a>
|
<a href="#GooCanvasItemSimple.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GooCanvasItemSimple.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
<a href="#GooCanvasItemSimple.properties" class="shortcut">Properties</a>
</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="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GooCanvasItemModel.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GooCanvasItemModelSimple.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GooCanvasItemSimple"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GooCanvasItemSimple.top_of_page"></a>GooCanvasItemSimple</span></h2>
<p>GooCanvasItemSimple — the base class for the standard canvas items.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GooCanvasItemSimple.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct <a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple-struct" title="struct GooCanvasItemSimple">GooCanvasItemSimple</a>;
struct <a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimpleData" title="struct GooCanvasItemSimpleData">GooCanvasItemSimpleData</a>;
struct <a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimpleClass" title="struct GooCanvasItemSimpleClass">GooCanvasItemSimpleClass</a>;
<span class="returnvalue">void</span> <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-check-style" title="goo_canvas_item_simple_check_style ()">goo_canvas_item_simple_check_style</a> (<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>);
<span class="returnvalue">gdouble</span> <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-get-line-width" title="goo_canvas_item_simple_get_line_width ()">goo_canvas_item_simple_get_line_width</a>
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-get-path-bounds" title="goo_canvas_item_simple_get_path_bounds ()">goo_canvas_item_simple_get_path_bounds</a>
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
<em class="parameter"><code><a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasBounds" title="struct GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-user-bounds-to-device" title="goo_canvas_item_simple_user_bounds_to_device ()">goo_canvas_item_simple_user_bounds_to_device</a>
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
<em class="parameter"><code><a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasBounds" title="struct GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-user-bounds-to-parent" title="goo_canvas_item_simple_user_bounds_to_parent ()">goo_canvas_item_simple_user_bounds_to_parent</a>
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
<em class="parameter"><code><a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasBounds" title="struct GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-check-in-path" title="goo_canvas_item_simple_check_in_path ()">goo_canvas_item_simple_check_in_path</a>
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
<em class="parameter"><code><a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasPointerEvents" title="enum GooCanvasPointerEvents"><span class="type">GooCanvasPointerEvents</span></a> pointer_events</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-paint-path" title="goo_canvas_item_simple_paint_path ()">goo_canvas_item_simple_paint_path</a> (<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-changed" title="goo_canvas_item_simple_changed ()">goo_canvas_item_simple_changed</a> (<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> recompute_bounds</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-set-model" title="goo_canvas_item_simple_set_model ()">goo_canvas_item_simple_set_model</a> (<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GooCanvasItemSimple.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----GooCanvasItemSimple
+----<a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget">GooCanvasWidget</a>
+----<a class="link" href="GooCanvasRect.html" title="GooCanvasRect">GooCanvasRect</a>
+----<a class="link" href="GooCanvasGroup.html" title="GooCanvasGroup">GooCanvasGroup</a>
+----<a class="link" href="GooCanvasPath.html" title="GooCanvasPath">GooCanvasPath</a>
+----<a class="link" href="GooCanvasEllipse.html" title="GooCanvasEllipse">GooCanvasEllipse</a>
+----<a class="link" href="GooCanvasText.html" title="GooCanvasText">GooCanvasText</a>
+----<a class="link" href="GooCanvasPolyline.html" title="GooCanvasPolyline">GooCanvasPolyline</a>
+----<a class="link" href="GooCanvasImage.html" title="GooCanvasImage">GooCanvasImage</a>
+----<a class="link" href="GooCanvasGrid.html" title="GooCanvasGrid">GooCanvasGrid</a>
</pre>
</div>
<div class="refsect1">
<a name="GooCanvasItemSimple.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GooCanvasItemSimple implements
<a class="link" href="GooCanvasItem.html" title="GooCanvasItem">GooCanvasItem</a>.</p>
</div>
<div class="refsect1">
<a name="GooCanvasItemSimple.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--antialias" title='The "antialias" property'>antialias</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoAntialias" title="GooCairoAntialias"><span class="type">GooCairoAntialias</span></a> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--clip-fill-rule" title='The "clip-fill-rule" property'>clip-fill-rule</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoFillRule" title="GooCairoFillRule"><span class="type">GooCairoFillRule</span></a> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--clip-path" title='The "clip-path" property'>clip-path</a>" <span class="type">gchar</span>* : Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-color" title='The "fill-color" property'>fill-color</a>" <span class="type">gchar</span>* : Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-color-gdk-rgba" title='The "fill-color-gdk-rgba" property'>fill-color-gdk-rgba</a>" <span class="type">GdkRGBA</span>* : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-color-rgba" title='The "fill-color-rgba" property'>fill-color-rgba</a>" <span class="type">guint</span> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-pattern" title='The "fill-pattern" property'>fill-pattern</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoPattern"><span class="type">GooCairoPattern</span></a>* : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-pixbuf" title='The "fill-pixbuf" property'>fill-pixbuf</a>" <span class="type">GdkPixbuf</span>* : Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-rule" title='The "fill-rule" property'>fill-rule</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoFillRule" title="GooCairoFillRule"><span class="type">GooCairoFillRule</span></a> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--font" title='The "font" property'>font</a>" <span class="type">gchar</span>* : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--font-desc" title='The "font-desc" property'>font-desc</a>" <span class="type">PangoFontDescription</span>* : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--hint-metrics" title='The "hint-metrics" property'>hint-metrics</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoHintMetrics" title="GooCairoHintMetrics"><span class="type">GooCairoHintMetrics</span></a> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-cap" title='The "line-cap" property'>line-cap</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoLineCap" title="GooCairoLineCap"><span class="type">GooCairoLineCap</span></a> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-dash" title='The "line-dash" property'>line-dash</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasLineDash"><span class="type">GooCanvasLineDash</span></a>* : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-join" title='The "line-join" property'>line-join</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoLineJoin" title="GooCairoLineJoin"><span class="type">GooCairoLineJoin</span></a> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-join-miter-limit" title='The "line-join-miter-limit" property'>line-join-miter-limit</a>" <span class="type">gdouble</span> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-width" title='The "line-width" property'>line-width</a>" <span class="type">gdouble</span> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--operator" title='The "operator" property'>operator</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoOperator" title="GooCairoOperator"><span class="type">GooCairoOperator</span></a> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--stroke-color" title='The "stroke-color" property'>stroke-color</a>" <span class="type">gchar</span>* : Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--stroke-color-gdk-rgba" title='The "stroke-color-gdk-rgba" property'>stroke-color-gdk-rgba</a>" <span class="type">GdkRGBA</span>* : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--stroke-color-rgba" title='The "stroke-color-rgba" property'>stroke-color-rgba</a>" <span class="type">guint</span> : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--stroke-pattern" title='The "stroke-pattern" property'>stroke-pattern</a>" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoPattern"><span class="type">GooCairoPattern</span></a>* : Read / Write
"<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--stroke-pixbuf" title='The "stroke-pixbuf" property'>stroke-pixbuf</a>" <span class="type">GdkPixbuf</span>* : Write
</pre>
</div>
<div class="refsect1">
<a name="GooCanvasItemSimple.description"></a><h2>Description</h2>
<p>
<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> is used as a base class for all of the standard canvas
items. It can also be used as the base class for new custom canvas items.
</p>
<p>
It provides default implementations for many of the <a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a>
methods.
</p>
<p>
For very simple items, all that is needed is to implement the <code class="function">create_path()</code>
method. (<a class="link" href="GooCanvasEllipse.html" title="GooCanvasEllipse"><span class="type">GooCanvasEllipse</span></a>, <a class="link" href="GooCanvasRect.html" title="GooCanvasRect"><span class="type">GooCanvasRect</span></a> and <a class="link" href="GooCanvasPath.html" title="GooCanvasPath"><span class="type">GooCanvasPath</span></a> do this.)
</p>
<p>
More complicated items need to implement the <code class="function">update()</code>, <code class="function">paint()</code> and
<code class="function">is_item_at()</code> methods instead. (<a class="link" href="GooCanvasImage.html" title="GooCanvasImage"><span class="type">GooCanvasImage</span></a>, <a class="link" href="GooCanvasPolyline.html" title="GooCanvasPolyline"><span class="type">GooCanvasPolyline</span></a>,
<a class="link" href="GooCanvasText.html" title="GooCanvasText"><span class="type">GooCanvasText</span></a> and <a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a> do this.) They may also need to
override some of the other GooCanvasItem methods such as <code class="function">set_canvas()</code>,
<code class="function">set_parent()</code> or <code class="function">allocate_area()</code> if special code is needed. (<a class="link" href="GooCanvasWidget.html" title="GooCanvasWidget"><span class="type">GooCanvasWidget</span></a>
does this to make sure the <span class="type">GtkWidget</span> is embedded in the <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> widget
correctly.)
</p>
</div>
<div class="refsect1">
<a name="GooCanvasItemSimple.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GooCanvasItemSimple-struct"></a><h3>struct GooCanvasItemSimple</h3>
<pre class="programlisting">struct GooCanvasItemSimple {
GooCanvas *canvas;
GooCanvasItem *parent;
GooCanvasItemModelSimple *model;
GooCanvasItemSimpleData *simple_data;
GooCanvasBounds bounds;
guint need_update : 1;
guint need_entire_subtree_update : 1;
};
</pre>
<p>
The <a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple-struct" title="struct GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> struct contains the basic data needed to
implement canvas items.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> *<em class="structfield"><code><a name="GooCanvasItemSimple-struct.canvas"></a>canvas</code></em>;</span></p></td>
<td>the canvas.</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GooCanvasItem.html" title="GooCanvasItem"><span class="type">GooCanvasItem</span></a> *<em class="structfield"><code><a name="GooCanvasItemSimple-struct.parent"></a>parent</code></em>;</span></p></td>
<td>the parent item.</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GooCanvasItemModelSimple.html" title="GooCanvasItemModelSimple"><span class="type">GooCanvasItemModelSimple</span></a> *<em class="structfield"><code><a name="GooCanvasItemSimple-struct.model"></a>model</code></em>;</span></p></td>
<td>the item's model, if it has one.</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimpleData" title="struct GooCanvasItemSimpleData"><span class="type">GooCanvasItemSimpleData</span></a> *<em class="structfield"><code><a name="GooCanvasItemSimple-struct.simple-data"></a>simple_data</code></em>;</span></p></td>
<td>data that is common to both the model and view classes. If
the canvas item has a model, this will point to the model's
<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimpleData" title="struct GooCanvasItemSimpleData"><span class="type">GooCanvasItemSimpleData</span></a>, otherwise the canvas item will have its own
<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimpleData" title="struct GooCanvasItemSimpleData"><span class="type">GooCanvasItemSimpleData</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasBounds" title="struct GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> <em class="structfield"><code><a name="GooCanvasItemSimple-struct.bounds"></a>bounds</code></em>;</span></p></td>
<td>the bounds of the item, in device space.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="GooCanvasItemSimple-struct.need-update"></a>need_update</code></em> : 1;</span></p></td>
<td>if the item needs to recompute its bounds and redraw.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="GooCanvasItemSimple-struct.need-entire-subtree-update"></a>need_entire_subtree_update</code></em> : 1;</span></p></td>
<td>if all descendants need to be updated.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimpleData"></a><h3>struct GooCanvasItemSimpleData</h3>
<pre class="programlisting">struct GooCanvasItemSimpleData {
GooCanvasStyle *style;
cairo_matrix_t *transform;
GArray *clip_path_commands;
gchar *tooltip;
gdouble visibility_threshold;
guint visibility : 2;
guint pointer_events : 4;
guint can_focus : 1;
guint own_style : 1;
guint clip_fill_rule : 4;
guint is_static : 1;
};
</pre>
<p>
This is the data common to both the model and view classes.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="GooCanvasStyle.html" title="GooCanvasStyle"><span class="type">GooCanvasStyle</span></a> *<em class="structfield"><code><a name="GooCanvasItemSimpleData.style"></a>style</code></em>;</span></p></td>
<td>the style to draw with.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html#cairo-matrix-t"><span class="type">cairo_matrix_t</span></a> *<em class="structfield"><code><a name="GooCanvasItemSimpleData.transform"></a>transform</code></em>;</span></p></td>
<td>the transformation matrix of the item, or <code class="literal">NULL</code>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">GArray</span> *<em class="structfield"><code><a name="GooCanvasItemSimpleData.clip-path-commands"></a>clip_path_commands</code></em>;</span></p></td>
<td>an array of <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasPathCommand" title="union GooCanvasPathCommand"><span class="type">GooCanvasPathCommand</span></a> specifying the clip
path of the item, or <code class="literal">NULL</code>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GooCanvasItemSimpleData.tooltip"></a>tooltip</code></em>;</span></p></td>
<td>the item's tooltip.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GooCanvasItemSimpleData.visibility-threshold"></a>visibility_threshold</code></em>;</span></p></td>
<td>the threshold scale setting at which to show the item
(if the <em class="parameter"><code>visibility</code></em> setting is set to <code class="literal">VISIBLE_ABOVE_THRESHOLD</code>).</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="GooCanvasItemSimpleData.visibility"></a>visibility</code></em> : 2;</span></p></td>
<td>the <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasItemVisibility" title="enum GooCanvasItemVisibility"><span class="type">GooCanvasItemVisibility</span></a> setting specifying whether the
item is visible, invisible, or visible above a given canvas scale setting.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="GooCanvasItemSimpleData.pointer-events"></a>pointer_events</code></em> : 4;</span></p></td>
<td>the <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasPointerEvents" title="enum GooCanvasPointerEvents"><span class="type">GooCanvasPointerEvents</span></a> setting specifying the events
the item should receive.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="GooCanvasItemSimpleData.can-focus"></a>can_focus</code></em> : 1;</span></p></td>
<td>if the item can take the keyboard focus.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="GooCanvasItemSimpleData.own-style"></a>own_style</code></em> : 1;</span></p></td>
<td>if the item has its own style, rather than using its parent's.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="GooCanvasItemSimpleData.clip-fill-rule"></a>clip_fill_rule</code></em> : 4;</span></p></td>
<td>the <a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-fill-rule-t"><span class="type">cairo_fill_rule_t</span></a> setting specifying the fill rule
used for the clip path.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="GooCanvasItemSimpleData.is-static"></a>is_static</code></em> : 1;</span></p></td>
<td>if the item is static.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimpleClass"></a><h3>struct GooCanvasItemSimpleClass</h3>
<pre class="programlisting">struct GooCanvasItemSimpleClass {
void (* simple_create_path) (GooCanvasItemSimple *simple,
cairo_t *cr);
void (* simple_update) (GooCanvasItemSimple *simple,
cairo_t *cr);
void (* simple_paint) (GooCanvasItemSimple *simple,
cairo_t *cr,
const GooCanvasBounds *bounds);
gboolean (* simple_is_item_at) (GooCanvasItemSimple *simple,
gdouble x,
gdouble y,
cairo_t *cr,
gboolean is_pointer_event);
};
</pre>
<p>
The <span class="type">GooCanvasItemSimpleClass</span> struct contains several methods that
subclasses can override.
</p>
<p>
Simple items need only implement the <code class="function">create_path()</code> method. More complex
items must override the <code class="function">update()</code>, <code class="function">paint()</code> and <code class="function">is_item_at()</code> methods instead.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GooCanvasItemSimpleClass.simple-create-path"></a>simple_create_path</code></em> ()</span></p></td>
<td>simple subclasses that draw basic shapes and paths only
need to override this one method. It creates the path for the item.
All updating, painting and hit-testing is provided automatically by the
<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> class. (This method is used by the builtin
<a class="link" href="GooCanvasEllipse.html" title="GooCanvasEllipse"><span class="type">GooCanvasEllipse</span></a>, <a class="link" href="GooCanvasRect.html" title="GooCanvasRect"><span class="type">GooCanvasRect</span></a> and <a class="link" href="GooCanvasPath.html" title="GooCanvasPath"><span class="type">GooCanvasPath</span></a> items.)
More complicated subclasses must override <em class="parameter"><code>simple_update</code></em>, <em class="parameter"><code>simple_paint</code></em> and
<em class="parameter"><code>simple_is_item_at</code></em> instead.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GooCanvasItemSimpleClass.simple-update"></a>simple_update</code></em> ()</span></p></td>
<td>subclasses should override this to calculate their new
bounds, in user space.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GooCanvasItemSimpleClass.simple-paint"></a>simple_paint</code></em> ()</span></p></td>
<td>subclasses should override this to paint their item.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GooCanvasItemSimpleClass.simple-is-item-at"></a>simple_is_item_at</code></em> ()</span></p></td>
<td>subclasses should override this to do hit-testing.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goo-canvas-item-simple-check-style"></a><h3>goo_canvas_item_simple_check_style ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_item_simple_check_style (<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>);</pre>
<p>
This function is intended to be used by subclasses of <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>,
typically in their <code class="function">update()</code> or <code class="function">get_requested_area()</code> methods.
</p>
<p>
It ensures that the item's style is setup correctly. If the item has its
own <a class="link" href="GooCanvasStyle.html" title="GooCanvasStyle"><span class="type">GooCanvasStyle</span></a> it makes sure the parent is set correctly. If it
doesn't have its own style it uses the parent item's style.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goo-canvas-item-simple-get-line-width"></a><h3>goo_canvas_item_simple_get_line_width ()</h3>
<pre class="programlisting"><span class="returnvalue">gdouble</span> goo_canvas_item_simple_get_line_width
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>);</pre>
<p>
Gets the item's line width.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the item's line width.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goo-canvas-item-simple-get-path-bounds"></a><h3>goo_canvas_item_simple_get_path_bounds ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_item_simple_get_path_bounds
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
<em class="parameter"><code><a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasBounds" title="struct GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);</pre>
<p>
This function is intended to be used by subclasses of <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>,
typically in their <code class="function">update()</code> or <code class="function">get_requested_area()</code> methods.
</p>
<p>
It calculates the bounds of the current path, using the item's style
settings, and stores the results in the given <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasBounds" title="struct GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> struct.
</p>
<p>
The returned bounds contains the bounding box of the path in device space,
converted to user space coordinates. To calculate the bounds completely in
user space, use <a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-Transformations.html#cairo-identity-matrix"><code class="function">cairo_identity_matrix()</code></a> to temporarily reset the current
transformation matrix to the identity matrix.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a cairo context.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bounds</code></em> :</span></p></td>
<td>the <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasBounds" title="struct GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> struct to store the resulting bounding box.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goo-canvas-item-simple-user-bounds-to-device"></a><h3>goo_canvas_item_simple_user_bounds_to_device ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_item_simple_user_bounds_to_device
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
<em class="parameter"><code><a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasBounds" title="struct GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);</pre>
<p>
This function is intended to be used by subclasses of <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>,
typically in their <code class="function">update()</code> or <code class="function">get_requested_area()</code> methods.
</p>
<p>
It converts the item's bounds to a bounding box in the canvas (device)
coordinate space.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a cairo context.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bounds</code></em> :</span></p></td>
<td>the bounds of the item, in the item's coordinate space.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goo-canvas-item-simple-user-bounds-to-parent"></a><h3>goo_canvas_item_simple_user_bounds_to_parent ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_item_simple_user_bounds_to_parent
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
<em class="parameter"><code><a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasBounds" title="struct GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> *bounds</code></em>);</pre>
<p>
This function is intended to be used by subclasses of <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>,
typically in their <code class="function">get_requested_area()</code> method.
</p>
<p>
It converts the item's bounds to a bounding box in its parent's coordinate
space. If the item has no transformation matrix set then no conversion is
needed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a cairo context.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bounds</code></em> :</span></p></td>
<td>the bounds of the item, in the item's coordinate space.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goo-canvas-item-simple-check-in-path"></a><h3>goo_canvas_item_simple_check_in_path ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> goo_canvas_item_simple_check_in_path
(<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
<em class="parameter"><code><a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasPointerEvents" title="enum GooCanvasPointerEvents"><span class="type">GooCanvasPointerEvents</span></a> pointer_events</code></em>);</pre>
<p>
This function is intended to be used by subclasses of <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.
</p>
<p>
It checks if the given point is in the current path, using the item's
style settings.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>the x coordinate of the point.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>the y coordinate of the point.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a cairo context.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pointer_events</code></em> :</span></p></td>
<td>specifies which parts of the path to check.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the given point is in the current path.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goo-canvas-item-simple-paint-path"></a><h3>goo_canvas_item_simple_paint_path ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_item_simple_paint_path (<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a href="/home/damon/gnome/install/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
<p>
This function is intended to be used by subclasses of <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.
</p>
<p>
It paints the current path, using the item's style settings.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a cairo context.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goo-canvas-item-simple-changed"></a><h3>goo_canvas_item_simple_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_item_simple_changed (<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> recompute_bounds</code></em>);</pre>
<p>
This function is intended to be used by subclasses of <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.
</p>
<p>
It is used as a callback for the "changed" signal of the item models.
It requests an update or redraw of the item as appropriate.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>recompute_bounds</code></em> :</span></p></td>
<td>if the item's bounds need to be recomputed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goo-canvas-item-simple-set-model"></a><h3>goo_canvas_item_simple_set_model ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goo_canvas_item_simple_set_model (<em class="parameter"><code><a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a> *item</code></em>,
<em class="parameter"><code><a class="link" href="GooCanvasItemModel.html" title="GooCanvasItemModel"><span class="type">GooCanvasItemModel</span></a> *model</code></em>);</pre>
<p>
This function should be called by subclasses of <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>
in their <code class="function">set_model()</code> method.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple"><span class="type">GooCanvasItemSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the model that <em class="parameter"><code>item</code></em> will view.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GooCanvasItemSimple.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GooCanvasItemSimple--antialias"></a><h3>The <code class="literal">"antialias"</code> property</h3>
<pre class="programlisting"> "antialias" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoAntialias" title="GooCairoAntialias"><span class="type">GooCairoAntialias</span></a> : Read / Write</pre>
<p>The antialiasing mode to use.</p>
<p>Default value: CAIRO_ANTIALIAS_GRAY</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--clip-fill-rule"></a><h3>The <code class="literal">"clip-fill-rule"</code> property</h3>
<pre class="programlisting"> "clip-fill-rule" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoFillRule" title="GooCairoFillRule"><span class="type">GooCairoFillRule</span></a> : Read / Write</pre>
<p>The fill rule used to determine which parts of the item are clipped.</p>
<p>Default value: CAIRO_FILL_RULE_WINDING</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--clip-path"></a><h3>The <code class="literal">"clip-path"</code> property</h3>
<pre class="programlisting"> "clip-path" <span class="type">gchar</span>* : Write</pre>
<p>
The sequence of commands describing the clip path of the item, specified
as a string using the same syntax
as in the <a class="ulink" href="http://www.w3.org/Graphics/SVG/" target="_top">Scalable Vector
Graphics (SVG)</a> path element.
</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--fill-color"></a><h3>The <code class="literal">"fill-color"</code> property</h3>
<pre class="programlisting"> "fill-color" <span class="type">gchar</span>* : Write</pre>
<p>The color to use to paint the interior of the item. To disable painting set the 'fill-pattern' property to NULL.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--fill-color-gdk-rgba"></a><h3>The <code class="literal">"fill-color-gdk-rgba"</code> property</h3>
<pre class="programlisting"> "fill-color-gdk-rgba" <span class="type">GdkRGBA</span>* : Read / Write</pre>
<p>
The color to use to paint the interior of the item, specified as a GdkRGBA. To disable painting set the 'fill-pattern' property to NULL.
</p>
<p class="since">Since 2.0.1</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--fill-color-rgba"></a><h3>The <code class="literal">"fill-color-rgba"</code> property</h3>
<pre class="programlisting"> "fill-color-rgba" <span class="type">guint</span> : Read / Write</pre>
<p>The color to use to paint the interior of the item, specified as a 32-bit integer value. To disable painting set the 'fill-pattern' property to NULL.</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--fill-pattern"></a><h3>The <code class="literal">"fill-pattern"</code> property</h3>
<pre class="programlisting"> "fill-pattern" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoPattern"><span class="type">GooCairoPattern</span></a>* : Read / Write</pre>
<p>The pattern to use to paint the interior of the item, or NULL to disable painting.</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--fill-pixbuf"></a><h3>The <code class="literal">"fill-pixbuf"</code> property</h3>
<pre class="programlisting"> "fill-pixbuf" <span class="type">GdkPixbuf</span>* : Write</pre>
<p>The pixbuf to use to paint the interior of the item. To disable painting set the 'fill-pattern' property to NULL.</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--fill-rule"></a><h3>The <code class="literal">"fill-rule"</code> property</h3>
<pre class="programlisting"> "fill-rule" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoFillRule" title="GooCairoFillRule"><span class="type">GooCairoFillRule</span></a> : Read / Write</pre>
<p>The fill rule used to determine which parts of the item are filled.</p>
<p>Default value: CAIRO_FILL_RULE_WINDING</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--font"></a><h3>The <code class="literal">"font"</code> property</h3>
<pre class="programlisting"> "font" <span class="type">gchar</span>* : Read / Write</pre>
<p>The base font to use for the text.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--font-desc"></a><h3>The <code class="literal">"font-desc"</code> property</h3>
<pre class="programlisting"> "font-desc" <span class="type">PangoFontDescription</span>* : Read / Write</pre>
<p>The attributes specifying which font to use.</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--hint-metrics"></a><h3>The <code class="literal">"hint-metrics"</code> property</h3>
<pre class="programlisting"> "hint-metrics" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoHintMetrics" title="GooCairoHintMetrics"><span class="type">GooCairoHintMetrics</span></a> : Read / Write</pre>
<p>The hinting to be used for font metrics.</p>
<p>Default value: CAIRO_HINT_METRICS_OFF</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--line-cap"></a><h3>The <code class="literal">"line-cap"</code> property</h3>
<pre class="programlisting"> "line-cap" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoLineCap" title="GooCairoLineCap"><span class="type">GooCairoLineCap</span></a> : Read / Write</pre>
<p>The line cap style to use.</p>
<p>Default value: CAIRO_LINE_CAP_BUTT</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--line-dash"></a><h3>The <code class="literal">"line-dash"</code> property</h3>
<pre class="programlisting"> "line-dash" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCanvasLineDash"><span class="type">GooCanvasLineDash</span></a>* : Read / Write</pre>
<p>The dash pattern to use.</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--line-join"></a><h3>The <code class="literal">"line-join"</code> property</h3>
<pre class="programlisting"> "line-join" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoLineJoin" title="GooCairoLineJoin"><span class="type">GooCairoLineJoin</span></a> : Read / Write</pre>
<p>The line join style to use.</p>
<p>Default value: CAIRO_LINE_JOIN_MITER</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--line-join-miter-limit"></a><h3>The <code class="literal">"line-join-miter-limit"</code> property</h3>
<pre class="programlisting"> "line-join-miter-limit" <span class="type">gdouble</span> : Read / Write</pre>
<p>The smallest angle to use with miter joins, in degrees. Bevel joins will be used below this limit.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 10</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--line-width"></a><h3>The <code class="literal">"line-width"</code> property</h3>
<pre class="programlisting"> "line-width" <span class="type">gdouble</span> : Read / Write</pre>
<p>The line width to use for the item's perimeter.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 2</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--operator"></a><h3>The <code class="literal">"operator"</code> property</h3>
<pre class="programlisting"> "operator" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoOperator" title="GooCairoOperator"><span class="type">GooCairoOperator</span></a> : Read / Write</pre>
<p>The compositing operator to use.</p>
<p>Default value: CAIRO_OPERATOR_OVER</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--stroke-color"></a><h3>The <code class="literal">"stroke-color"</code> property</h3>
<pre class="programlisting"> "stroke-color" <span class="type">gchar</span>* : Write</pre>
<p>The color to use for the item's perimeter. To disable painting set the 'stroke-pattern' property to NULL.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--stroke-color-gdk-rgba"></a><h3>The <code class="literal">"stroke-color-gdk-rgba"</code> property</h3>
<pre class="programlisting"> "stroke-color-gdk-rgba" <span class="type">GdkRGBA</span>* : Read / Write</pre>
<p>
The color to use for the item's perimeter, specified as a GdkRGBA. To disable painting set the 'stroke-pattern' property to NULL.
</p>
<p class="since">Since 2.0.1</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--stroke-color-rgba"></a><h3>The <code class="literal">"stroke-color-rgba"</code> property</h3>
<pre class="programlisting"> "stroke-color-rgba" <span class="type">guint</span> : Read / Write</pre>
<p>The color to use for the item's perimeter, specified as a 32-bit integer value. To disable painting set the 'stroke-pattern' property to NULL.</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--stroke-pattern"></a><h3>The <code class="literal">"stroke-pattern"</code> property</h3>
<pre class="programlisting"> "stroke-pattern" <a class="link" href="goocanvas2-GooCanvas-Types.html#GooCairoPattern"><span class="type">GooCairoPattern</span></a>* : Read / Write</pre>
<p>The pattern to use to paint the perimeter of the item, or NULL disable painting.</p>
</div>
<hr>
<div class="refsect2">
<a name="GooCanvasItemSimple--stroke-pixbuf"></a><h3>The <code class="literal">"stroke-pixbuf"</code> property</h3>
<pre class="programlisting"> "stroke-pixbuf" <span class="type">GdkPixbuf</span>* : Write</pre>
<p>The pixbuf to use to draw the item's perimeter. To disable painting set the 'stroke-pattern' property to NULL.</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19.1</div>
</body>
</html>
|