This file is indexed.

/usr/share/gtk-doc/html/goocanvas/GooCanvasItemSimple.html is in libgoocanvas-dev 0.15-1.1ubuntu1.

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
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GooCanvasItemSimple</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GooCanvas Reference Manual">
<link rel="up" href="ch02.html" title="Core Objects">
<link rel="prev" href="goocanvas-goocanvasitemmodel.html" title="GooCanvasItemModel">
<link rel="next" href="GooCanvasItemModelSimple.html" title="GooCanvasItemModelSimple">
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Introduction">
<link rel="chapter" href="ch02.html" title="Core Objects">
<link rel="chapter" href="ch03.html" title="Standard Canvas Items">
<link rel="chapter" href="ch04.html" title="Standard Canvas Item Models">
<link rel="chapter" href="ch05.html" title="Miscellaneous">
</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="2">
<tr valign="middle">
<td><a accesskey="p" href="goocanvas-goocanvasitemmodel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GooCanvas Reference Manual</th>
<td><a accesskey="n" href="GooCanvasItemModelSimple.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3088762" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id3107238" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id3022937" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id3023019" class="shortcut">Implemented Interfaces</a>
                  &#160;|&#160;
                  <a href="#id3096424" class="shortcut">Properties</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GooCanvasItemSimple"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3088762"></a><span class="refentrytitle">GooCanvasItemSimple</span>
</h2>
<p>GooCanvasItemSimple &#8212; the base class for the standard canvas items.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">



                    <a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple-struct">GooCanvasItemSimple</a>;
                    <a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimpleData">GooCanvasItemSimpleData</a>;
                    <a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimpleClass">GooCanvasItemSimpleClass</a>;

void                <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-check-style">goo_canvas_item_simple_check_style</a>  (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-get-line-width">goo_canvas_item_simple_get_line_width</a>
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item);
void                <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-get-path-bounds">goo_canvas_item_simple_get_path_bounds</a>
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr,
                                                         <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds">GooCanvasBounds</a> *bounds);
void                <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-user-bounds-to-device">goo_canvas_item_simple_user_bounds_to_device</a>
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr,
                                                         <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds">GooCanvasBounds</a> *bounds);
void                <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-user-bounds-to-parent">goo_canvas_item_simple_user_bounds_to_parent</a>
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr,
                                                         <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds">GooCanvasBounds</a> *bounds);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-check-in-path">goo_canvas_item_simple_check_in_path</a>
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr,
                                                         <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasPointerEvents">GooCanvasPointerEvents</a> pointer_events);
void                <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-paint-path">goo_canvas_item_simple_paint_path</a>   (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr);
void                <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-changed">goo_canvas_item_simple_changed</a>      (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> recompute_bounds);
void                <a class="link" href="GooCanvasItemSimple.html#goo-canvas-item-simple-set-model">goo_canvas_item_simple_set_model</a>    (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a class="link" href="goocanvas-goocanvasitemmodel.html#GooCanvasItemModel">GooCanvasItemModel</a> *model);


</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3022937"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----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" lang="en">
<a name="id3023019"></a><h2>Implemented Interfaces</h2>
<p>
GooCanvasItemSimple implements
 <a class="link" href="goocanvas-goocanvasitem.html#GooCanvasItem">GooCanvasItem</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3096424"></a><h2>Properties</h2>
<pre class="synopsis">

  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--antialias">antialias</a>"                <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoAntialias">GooCairoAntialias</a>     : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--clip-fill-rule">clip-fill-rule</a>"           <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoFillRule">GooCairoFillRule</a>      : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--clip-path">clip-path</a>"                <a
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-color">fill-color</a>"               <a
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-color-rgba">fill-color-rgba</a>"          <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-pattern">fill-pattern</a>"             <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoPattern">GooCairoPattern</a>       : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-pixbuf">fill-pixbuf</a>"              <a
href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>             : Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--fill-rule">fill-rule</a>"                <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoFillRule">GooCairoFillRule</a>      : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--font">font</a>"                     <a
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--font-desc">font-desc</a>"                <a
href="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoFontDescription"
>PangoFontDescription</a>  : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--hint-metrics">hint-metrics</a>"             <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoHintMetrics">GooCairoHintMetrics</a>   : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-cap">line-cap</a>"                 <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoLineCap">GooCairoLineCap</a>       : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-dash">line-dash</a>"                <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasLineDash">GooCanvasLineDash</a>     : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-join">line-join</a>"                <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoLineJoin">GooCairoLineJoin</a>      : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-join-miter-limit">line-join-miter-limit</a>"    <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>               : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--line-width">line-width</a>"               <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>               : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--operator">operator</a>"                 <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoOperator">GooCairoOperator</a>      : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--stroke-color">stroke-color</a>"             <a
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--stroke-color-rgba">stroke-color-rgba</a>"        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--stroke-pattern">stroke-pattern</a>"           <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoPattern">GooCairoPattern</a>       : Read / Write
  "<a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple--stroke-pixbuf">stroke-pixbuf</a>"            <a
href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>             : Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3107238"></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="goocanvas-goocanvasitem.html#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 <a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
><span class="type">GtkWidget</span></a> is embedded in the <a class="link" href="GooCanvas.html" title="GooCanvas"><span class="type">GooCanvas</span></a> widget
correctly.)</p>
<p>

</p>
</div>
<div class="refsect1" lang="en">
<a name="id3107429"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3107440"></a><h3>
<a name="GooCanvasItemSimple-struct"></a>GooCanvasItemSimple</h3>
<a class="indexterm" name="id3107451"></a><pre class="programlisting">typedef struct {
  GooCanvas *canvas;
  GooCanvasItem *parent;
  GooCanvasItemModelSimple *model;
  GooCanvasItemSimpleData *simple_data;
  GooCanvasBounds bounds;
  guint	need_update			: 1;
  guint need_entire_subtree_update      : 1;
} GooCanvasItemSimple;
</pre>
<p>
The <a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimple-struct"><span class="type">GooCanvasItemSimple</span></a> struct contains the basic data needed to
implement canvas items.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="GooCanvas.html" title="GooCanvas">GooCanvas</a>&#160;*<em class="structfield"><code>canvas</code></em>;</span></p></td>
<td> the canvas.
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="goocanvas-goocanvasitem.html#GooCanvasItem">GooCanvasItem</a>&#160;*<em class="structfield"><code>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">GooCanvasItemModelSimple</a>&#160;*<em class="structfield"><code>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">GooCanvasItemSimpleData</a>&#160;*<em class="structfield"><code>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"><span class="type">GooCanvasItemSimpleData</span></a>, otherwise the canvas item will have its own
 <a class="link" href="GooCanvasItemSimple.html#GooCanvasItemSimpleData"><span class="type">GooCanvasItemSimpleData</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds">GooCanvasBounds</a>&#160;<em class="structfield"><code>bounds</code></em>;</span></p></td>
<td> the bounds of the item, in device space.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>need_update</code></em>&#160;:&#160;1;</span></p></td>
<td> if the item needs to recompute its bounds and redraw.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>need_entire_subtree_update</code></em>&#160;:&#160;1;</span></p></td>
<td> if all descendants need to be updated.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3104303"></a><h3>
<a name="GooCanvasItemSimpleData"></a>GooCanvasItemSimpleData</h3>
<a class="indexterm" name="id3104314"></a><pre class="programlisting">typedef struct {
  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;
} GooCanvasItemSimpleData;
</pre>
<p>
This is the data common to both the model and view classes.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="GooCanvasStyle.html" title="GooCanvasStyle">GooCanvasStyle</a>&#160;*<em class="structfield"><code>style</code></em>;</span></p></td>
<td> the style to draw with.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html#cairo-matrix-t"
>cairo_matrix_t</a>&#160;*<em class="structfield"><code>transform</code></em>;</span></p></td>
<td> the transformation matrix of the item, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Arrays.html#GArray"
>GArray</a>&#160;*<em class="structfield"><code>clip_path_commands</code></em>;</span></p></td>
<td> an array of <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasPathCommand"><span class="type">GooCanvasPathCommand</span></a> specifying the clip
 path of the item, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>&#160;*<em class="structfield"><code>tooltip</code></em>;</span></p></td>
<td> the item's tooltip.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>&#160;<em class="structfield"><code>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"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>visibility</code></em>&#160;:&#160;2;</span></p></td>
<td> the <a class="link" href="goocanvas-GooCanvas-Types.html#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"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>pointer_events</code></em>&#160;:&#160;4;</span></p></td>
<td> the <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasPointerEvents"><span class="type">GooCanvasPointerEvents</span></a> setting specifying the events
 the item should receive.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>can_focus</code></em>&#160;:&#160;1;</span></p></td>
<td> if the item can take the keyboard focus.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>own_style</code></em>&#160;:&#160;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"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>clip_fill_rule</code></em>&#160;:&#160;4;</span></p></td>
<td> the <a
href="/usr/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"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>is_static</code></em>&#160;:&#160;1;</span></p></td>
<td> if the item is static.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3104638"></a><h3>
<a name="GooCanvasItemSimpleClass"></a>GooCanvasItemSimpleClass</h3>
<a class="indexterm" name="id3104649"></a><pre class="programlisting">typedef struct {
  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);
} GooCanvasItemSimpleClass;
</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>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="structfield"><code>simple_create_path</code></em>&#160;()</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>simple_update</code></em>&#160;()</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>simple_paint</code></em>&#160;()</span></p></td>
<td> subclasses should override this to paint their item.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>simple_is_item_at</code></em>&#160;()</span></p></td>
<td> subclasses should override this to do hit-testing.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3104847"></a><h3>
<a name="goo-canvas-item-simple-check-style"></a>goo_canvas_item_simple_check_style ()</h3>
<a class="indexterm" name="id3104861"></a><pre class="programlisting">void                goo_canvas_item_simple_check_style  (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item);</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>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em>&#160;:</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" lang="en">
<a name="id3104958"></a><h3>
<a name="goo-canvas-item-simple-get-line-width"></a>goo_canvas_item_simple_get_line_width ()</h3>
<a class="indexterm" name="id3104971"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             goo_canvas_item_simple_get_line_width
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item);</pre>
<p>
Gets the item's line width.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em>&#160;:</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>&#160;:</span></p></td>
<td> the item's line width.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3105040"></a><h3>
<a name="goo-canvas-item-simple-get-path-bounds"></a>goo_canvas_item_simple_get_path_bounds ()</h3>
<a class="indexterm" name="id3105054"></a><pre class="programlisting">void                goo_canvas_item_simple_get_path_bounds
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr,
                                                         <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds">GooCanvasBounds</a> *bounds);</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="goocanvas-GooCanvas-Types.html#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="/usr/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>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em>&#160;:</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>&#160;:</span></p></td>
<td> a cairo context.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bounds</code></em>&#160;:</span></p></td>
<td> the <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds"><span class="type">GooCanvasBounds</span></a> struct to store the resulting bounding box.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3105219"></a><h3>
<a name="goo-canvas-item-simple-user-bounds-to-device"></a>goo_canvas_item_simple_user_bounds_to_device ()</h3>
<a class="indexterm" name="id3105233"></a><pre class="programlisting">void                goo_canvas_item_simple_user_bounds_to_device
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr,
                                                         <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds">GooCanvasBounds</a> *bounds);</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>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em>&#160;:</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>&#160;:</span></p></td>
<td> a cairo context.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bounds</code></em>&#160;:</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" lang="en">
<a name="id3105368"></a><h3>
<a name="goo-canvas-item-simple-user-bounds-to-parent"></a>goo_canvas_item_simple_user_bounds_to_parent ()</h3>
<a class="indexterm" name="id3105382"></a><pre class="programlisting">void                goo_canvas_item_simple_user_bounds_to_parent
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr,
                                                         <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasBounds">GooCanvasBounds</a> *bounds);</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>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em>&#160;:</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>&#160;:</span></p></td>
<td> a cairo context.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bounds</code></em>&#160;:</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" lang="en">
<a name="id3105508"></a><h3>
<a name="goo-canvas-item-simple-check-in-path"></a>goo_canvas_item_simple_check_in_path ()</h3>
<a class="indexterm" name="id3105521"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            goo_canvas_item_simple_check_in_path
                                                        (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr,
                                                         <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasPointerEvents">GooCanvasPointerEvents</a> pointer_events);</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>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em>&#160;:</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>&#160;:</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>&#160;:</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>&#160;:</span></p></td>
<td> a cairo context.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pointer_events</code></em>&#160;:</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>&#160;:</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the given point is in the current path.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3105700"></a><h3>
<a name="goo-canvas-item-simple-paint-path"></a>goo_canvas_item_simple_paint_path ()</h3>
<a class="indexterm" name="id3105714"></a><pre class="programlisting">void                goo_canvas_item_simple_paint_path   (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"
>cairo_t</a> *cr);</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>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em>&#160;:</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>&#160;:</span></p></td>
<td> a cairo context.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3105805"></a><h3>
<a name="goo-canvas-item-simple-changed"></a>goo_canvas_item_simple_changed ()</h3>
<a class="indexterm" name="id3105818"></a><pre class="programlisting">void                goo_canvas_item_simple_changed      (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> recompute_bounds);</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>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em>&#160;:</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>&#160;:</span></p></td>
<td> if the item's bounds need to be recomputed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3105912"></a><h3>
<a name="goo-canvas-item-simple-set-model"></a>goo_canvas_item_simple_set_model ()</h3>
<a class="indexterm" name="id3105925"></a><pre class="programlisting">void                goo_canvas_item_simple_set_model    (<a class="link" href="GooCanvasItemSimple.html" title="GooCanvasItemSimple">GooCanvasItemSimple</a> *item,
                                                         <a class="link" href="goocanvas-goocanvasitemmodel.html#GooCanvasItemModel">GooCanvasItemModel</a> *model);</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>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em>&#160;:</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>&#160;:</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" lang="en">
<a name="id3106029"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3106040"></a><h3>
<a name="GooCanvasItemSimple--antialias"></a>The <code class="literal">"antialias"</code> property</h3>
<a class="indexterm" name="id3106056"></a><pre class="programlisting">  "antialias"                <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoAntialias">GooCairoAntialias</a>     : Read / Write</pre>
<p>The antialiasing mode to use.</p>
<p>Default value: CAIRO_ANTIALIAS_GRAY</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3106082"></a><h3>
<a name="GooCanvasItemSimple--clip-fill-rule"></a>The <code class="literal">"clip-fill-rule"</code> property</h3>
<a class="indexterm" name="id3106098"></a><pre class="programlisting">  "clip-fill-rule"           <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoFillRule">GooCairoFillRule</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" lang="en">
<a name="id3106126"></a><h3>
<a name="GooCanvasItemSimple--clip-path"></a>The <code class="literal">"clip-path"</code> property</h3>
<a class="indexterm" name="id3106141"></a><pre class="programlisting">  "clip-path"                <a
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : 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>

</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3106180"></a><h3>
<a name="GooCanvasItemSimple--fill-color"></a>The <code class="literal">"fill-color"</code> property</h3>
<a class="indexterm" name="id3106196"></a><pre class="programlisting">  "fill-color"               <a
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : 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" lang="en">
<a name="id3106223"></a><h3>
<a name="GooCanvasItemSimple--fill-color-rgba"></a>The <code class="literal">"fill-color-rgba"</code> property</h3>
<a class="indexterm" name="id3106240"></a><pre class="programlisting">  "fill-color-rgba"          <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : 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" lang="en">
<a name="id3106269"></a><h3>
<a name="GooCanvasItemSimple--fill-pattern"></a>The <code class="literal">"fill-pattern"</code> property</h3>
<a class="indexterm" name="id3106285"></a><pre class="programlisting">  "fill-pattern"             <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoPattern">GooCairoPattern</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" lang="en">
<a name="id3121696"></a><h3>
<a name="GooCanvasItemSimple--fill-pixbuf"></a>The <code class="literal">"fill-pixbuf"</code> property</h3>
<a class="indexterm" name="id3121711"></a><pre class="programlisting">  "fill-pixbuf"              <a
href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>             : 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" lang="en">
<a name="id3121732"></a><h3>
<a name="GooCanvasItemSimple--fill-rule"></a>The <code class="literal">"fill-rule"</code> property</h3>
<a class="indexterm" name="id3121747"></a><pre class="programlisting">  "fill-rule"                <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoFillRule">GooCairoFillRule</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" lang="en">
<a name="id3121770"></a><h3>
<a name="GooCanvasItemSimple--font"></a>The <code class="literal">"font"</code> property</h3>
<a class="indexterm" name="id3121783"></a><pre class="programlisting">  "font"                     <a
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write</pre>
<p>The base font to use for the text.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3121806"></a><h3>
<a name="GooCanvasItemSimple--font-desc"></a>The <code class="literal">"font-desc"</code> property</h3>
<a class="indexterm" name="id3121821"></a><pre class="programlisting">  "font-desc"                <a
href="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoFontDescription"
>PangoFontDescription</a>  : Read / Write</pre>
<p>The attributes specifying which font to use.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3121841"></a><h3>
<a name="GooCanvasItemSimple--hint-metrics"></a>The <code class="literal">"hint-metrics"</code> property</h3>
<a class="indexterm" name="id3121856"></a><pre class="programlisting">  "hint-metrics"             <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoHintMetrics">GooCairoHintMetrics</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" lang="en">
<a name="id3121880"></a><h3>
<a name="GooCanvasItemSimple--line-cap"></a>The <code class="literal">"line-cap"</code> property</h3>
<a class="indexterm" name="id3121895"></a><pre class="programlisting">  "line-cap"                 <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoLineCap">GooCairoLineCap</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" lang="en">
<a name="id3121918"></a><h3>
<a name="GooCanvasItemSimple--line-dash"></a>The <code class="literal">"line-dash"</code> property</h3>
<a class="indexterm" name="id3121932"></a><pre class="programlisting">  "line-dash"                <a class="link" href="goocanvas-GooCanvas-Types.html#GooCanvasLineDash">GooCanvasLineDash</a>     : Read / Write</pre>
<p>The dash pattern to use.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3121952"></a><h3>
<a name="GooCanvasItemSimple--line-join"></a>The <code class="literal">"line-join"</code> property</h3>
<a class="indexterm" name="id3121966"></a><pre class="programlisting">  "line-join"                <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoLineJoin">GooCairoLineJoin</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" lang="en">
<a name="id3121990"></a><h3>
<a name="GooCanvasItemSimple--line-join-miter-limit"></a>The <code class="literal">"line-join-miter-limit"</code> property</h3>
<a class="indexterm" name="id3122005"></a><pre class="programlisting">  "line-join-miter-limit"    <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>               : 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: &gt;= 0</p>
<p>Default value: 10</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3122033"></a><h3>
<a name="GooCanvasItemSimple--line-width"></a>The <code class="literal">"line-width"</code> property</h3>
<a class="indexterm" name="id3122048"></a><pre class="programlisting">  "line-width"               <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>               : Read / Write</pre>
<p>The line width to use for the item's perimeter.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 2</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3122075"></a><h3>
<a name="GooCanvasItemSimple--operator"></a>The <code class="literal">"operator"</code> property</h3>
<a class="indexterm" name="id3122090"></a><pre class="programlisting">  "operator"                 <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoOperator">GooCairoOperator</a>      : Read / Write</pre>
<p>The compositing operator to use.</p>
<p>Default value: CAIRO_OPERATOR_OVER</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3122114"></a><h3>
<a name="GooCanvasItemSimple--stroke-color"></a>The <code class="literal">"stroke-color"</code> property</h3>
<a class="indexterm" name="id3122128"></a><pre class="programlisting">  "stroke-color"             <a
href="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : 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" lang="en">
<a name="id3122153"></a><h3>
<a name="GooCanvasItemSimple--stroke-color-rgba"></a>The <code class="literal">"stroke-color-rgba"</code> property</h3>
<a class="indexterm" name="id3122168"></a><pre class="programlisting">  "stroke-color-rgba"        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : 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" lang="en">
<a name="id3122194"></a><h3>
<a name="GooCanvasItemSimple--stroke-pattern"></a>The <code class="literal">"stroke-pattern"</code> property</h3>
<a class="indexterm" name="id3122208"></a><pre class="programlisting">  "stroke-pattern"           <a class="link" href="goocanvas-GooCanvas-Types.html#GooCairoPattern">GooCairoPattern</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" lang="en">
<a name="id3122229"></a><h3>
<a name="GooCanvasItemSimple--stroke-pixbuf"></a>The <code class="literal">"stroke-pixbuf"</code> property</h3>
<a class="indexterm" name="id3122244"></a><pre class="programlisting">  "stroke-pixbuf"            <a
href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>             : 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 class="refsect1" lang="en">
<a name="id3122266"></a><div class="refsect2" lang="en"><a name="id3122267"></a></div>
<hr>
<div class="refsect2" lang="en"><a name="id3122268"></a></div>
</div>
</div>
</body>
</html>