This file is indexed.

/usr/share/gtk-doc/html/goffice-0.10/GocItem.html is in libgoffice-0.10-doc 0.10.9-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GocItem</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GOffice Reference Manual">
<link rel="up" href="ch04.html" title="Base objects">
<link rel="prev" href="GocCanvas.html" title="GocCanvas">
<link rel="next" href="GocGroup.html" title="GocGroup">
<meta name="generator" content="GTK-Doc V1.19 (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="2">
<tr valign="middle">
<td><a accesskey="p" href="GocCanvas.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch04.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">GOffice Reference Manual</th>
<td><a accesskey="n" href="GocGroup.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GocItem.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#GocItem.description" class="shortcut">Description</a>
                   | 
                  <a href="#GocItem.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#GocItem.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="GocItem"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GocItem.top_of_page"></a>GocItem</span></h2>
<p>GocItem — Base canvas item.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GocItem.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="GocItem.html#GocItem-struct" title="GocItem">GocItem</a>;
struct              <a class="link" href="GocItem.html#GocItemClass" title="struct GocItemClass">GocItemClass</a>;
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-bounds-changed" title="goc_item_bounds_changed ()">goc_item_bounds_changed</a>             (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-destroy" title="goc_item_destroy ()">goc_item_destroy</a>                    (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<span class="returnvalue">double</span>              <a class="link" href="GocItem.html#goc-item-distance" title="goc_item_distance ()">goc_item_distance</a>                   (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> y</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> **near_item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-draw" title="goc_item_draw ()">goc_item_draw</a>                       (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> const *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GocItem.html#goc-item-draw-region" title="goc_item_draw_region ()">goc_item_draw_region</a>                (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> const *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/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><span class="type">double</span> x0</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> y0</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> x1</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> y1</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-get-bounds" title="goc_item_get_bounds ()">goc_item_get_bounds</a>                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> const *item</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *x0</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *y0</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *y1</code></em>);
<a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-operator-t"><span class="returnvalue">cairo_operator_t</span></a>    <a class="link" href="GocItem.html#goc-item-get-operator" title="goc_item_get_operator ()">goc_item_get_operator</a>               (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<a class="link" href="GocGroup.html" title="GocGroup"><span class="returnvalue">GocGroup</span></a> *          <a class="link" href="GocItem.html#goc-item-get-parent" title="goc_item_get_parent ()">goc_item_get_parent</a>                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<a href="/usr/share/gtk-doc/html/gtk3/GtkStyleContext.html"><span class="returnvalue">GtkStyleContext</span></a> *   <a class="link" href="GocItem.html#goc-item-get-style-context" title="goc_item_get_style_context ()">goc_item_get_style_context</a>          (<em class="parameter"><code>const <a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<a href="/usr/share/gtk-doc/html/gdk3/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="GocItem.html#goc-item-get-window" title="goc_item_get_window ()">goc_item_get_window</a>                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-grab" title="goc_item_grab ()">goc_item_grab</a>                       (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-hide" title="goc_item_hide ()">goc_item_hide</a>                       (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-invalidate" title="goc_item_invalidate ()">goc_item_invalidate</a>                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GocItem.html#goc-item-is-visible" title="goc_item_is_visible ()">goc_item_is_visible</a>                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-lower" title="goc_item_lower ()">goc_item_lower</a>                      (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-lower-to-bottom" title="goc_item_lower_to_bottom ()">goc_item_lower_to_bottom</a>            (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<a class="link" href="GocItem.html" title="GocItem"><span class="returnvalue">GocItem</span></a> *           <a class="link" href="GocItem.html#goc-item-new" title="goc_item_new ()">goc_item_new</a>                        (<em class="parameter"><code><a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a> *parent</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_arg_name</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-raise" title="goc_item_raise ()">goc_item_raise</a>                      (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-raise-to-top" title="goc_item_raise_to_top ()">goc_item_raise_to_top</a>               (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-set" title="goc_item_set ()">goc_item_set</a>                        (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_arg_name</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-set-operator" title="goc_item_set_operator ()">goc_item_set_operator</a>               (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-operator-t"><span class="type">cairo_operator_t</span></a> op</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-set-transform" title="goc_item_set_transform ()">goc_item_set_transform</a>              (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html#cairo-matrix-t"><span class="type">cairo_matrix_t</span></a> *m</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-set-visible" title="goc_item_set_visible ()">goc_item_set_visible</a>                (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-show" title="goc_item_show ()">goc_item_show</a>                       (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GocItem.html#goc-item-ungrab" title="goc_item_ungrab ()">goc_item_ungrab</a>                     (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GocItem.object-hierarchy"></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>
   +----GocItem
         +----<a class="link" href="GocStyledItem.html" title="GocStyledItem">GocStyledItem</a>
         +----GocComponent
         +----<a class="link" href="GocGraph.html" title="GocGraph">GocGraph</a>
         +----<a class="link" href="GocGroup.html" title="GocGroup">GocGroup</a>
         +----GocImage
         +----<a class="link" href="GocPixbuf.html" title="GocPixbuf">GocPixbuf</a>
         +----<a class="link" href="GocWidget.html" title="GocWidget">GocWidget</a>
</pre>
</div>
<div class="refsect1">
<a name="GocItem.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GocItem.html#GocItem--canvas" title='The "canvas" property'>canvas</a>"                   <a class="link" href="GocCanvas.html" title="GocCanvas"><span class="type">GocCanvas</span></a>*            : Read
  "<a class="link" href="GocItem.html#GocItem--parent" title='The "parent" property'>parent</a>"                   <a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a>*             : Read
</pre>
</div>
<div class="refsect1">
<a name="GocItem.description"></a><h2>Description</h2>
<p>
<a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> is the virtual base object for canvas items.
</p>
</div>
<div class="refsect1">
<a name="GocItem.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GocItem-struct"></a><h3>GocItem</h3>
<pre class="programlisting">typedef struct _GocItem GocItem;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GocItemClass"></a><h3>struct GocItemClass</h3>
<pre class="programlisting">struct GocItemClass {
	GObjectClass	 base;

	double			(*distance) (GocItem *item,
					     double x, double y, GocItem **near_item);
	void			(*draw) (GocItem const *item, cairo_t *cr);
	gboolean		(*draw_region) (GocItem const *item, cairo_t *cr,
						double x0, double y0, double x1, double y1);
	void			(*update_bounds) (GocItem *item);
	/* events related functions */
	gboolean		(*button_pressed) (GocItem *item, int button, double x, double y);
	gboolean		(*button2_pressed) (GocItem *item, int button, double x, double y);
	gboolean		(*button_released) (GocItem *item, int button, double x, double y);
	gboolean		(*motion) (GocItem *item, double x, double y);
	gboolean		(*enter_notify) (GocItem *item, double x, double y);
	gboolean		(*leave_notify) (GocItem *item, double x, double y);
	void			(*realize) (GocItem *item);
	void			(*unrealize) (GocItem *item);
	void			(*notify_scrolled) (GocItem *item);
#ifdef GOFFICE_WITH_GTK
	gboolean		(*key_pressed) (GocItem *item, GdkEventKey* ev);
	gboolean		(*key_released) (GocItem *item, GdkEventKey* ev);
	GdkWindow*		(*get_window) (GocItem *item);
#endif
};
</pre>
<p>
The base class for all 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 href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="GocItemClass.base"></a>base</code></em>;</span></p></td>
<td>the parent class</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.distance"></a>distance</code></em> ()</span></p></td>
<td>returns the distance between the item and the point defined by
<em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. When the distance is larger than a few pixels, the result is not
relevant, so an approximate value or even G_MAXDOUBLE might be returned.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.draw"></a>draw</code></em> ()</span></p></td>
<td>draws the item to the cairo context.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.draw-region"></a>draw_region</code></em> ()</span></p></td>
<td>draws the item in the region defined by <em class="parameter"><code>x0</code></em>, <em class="parameter"><code>y0</code></em>, <em class="parameter"><code>x1</code></em> and <em class="parameter"><code>y1</code></em>.
Should return TRUE when successfull. If FALSE is returned, <em class="parameter"><code>draw</code></em> will be
called. There is no need to implement both methods for an item. Large items
should implement <em class="parameter"><code>draw_region</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.update-bounds"></a>update_bounds</code></em> ()</span></p></td>
<td>updates the bounds stored in <a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> as fields <span class="type">x0</span>, <span class="type">y0</span>,
<span class="type">x1</span>,and <span class="type">y1</span>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.button-pressed"></a>button_pressed</code></em> ()</span></p></td>
<td>callback for a button press event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.button2-pressed"></a>button2_pressed</code></em> ()</span></p></td>
<td>callback for a double click event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.button-released"></a>button_released</code></em> ()</span></p></td>
<td>callback for a button release event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.motion"></a>motion</code></em> ()</span></p></td>
<td>callback for a motion event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.enter-notify"></a>enter_notify</code></em> ()</span></p></td>
<td>callback for an enter notify event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.leave-notify"></a>leave_notify</code></em> ()</span></p></td>
<td>callback for a leave notify event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.realize"></a>realize</code></em> ()</span></p></td>
<td>callback for a realizes event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.unrealize"></a>unrealize</code></em> ()</span></p></td>
<td>callback for an unrealize event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.notify-scrolled"></a>notify_scrolled</code></em> ()</span></p></td>
<td>callback for a notify scrolled event. This is useful to
reposition children of the GtkLayout parent of the canvas to their new
position.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.key-pressed"></a>key_pressed</code></em> ()</span></p></td>
<td>callback for a key press event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.key-released"></a>key_released</code></em> ()</span></p></td>
<td>callback for a key release event.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GocItemClass.get-window"></a>get_window</code></em> ()</span></p></td>
<td>returns the<a href="/usr/share/gtk-doc/html/gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> for the item if any.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-bounds-changed"></a><h3>goc_item_bounds_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_bounds_changed             (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<p>
This function needs to be called each time the bounds of <em class="parameter"><code>item</code></em> change. It
is normally called from inside the implementation of items derived 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"><em class="parameter"><code>item</code></em> :</span></p></td>
<td><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-destroy"></a><h3>goc_item_destroy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_destroy                    (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<p>
Destroys <em class="parameter"><code>item</code></em>, removes it from its parent group and updates the canvas
accordingly.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-distance"></a><h3>goc_item_distance ()</h3>
<pre class="programlisting"><span class="returnvalue">double</span>              goc_item_distance                   (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> y</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> **near_item</code></em>);</pre>
<p>
Evaluates the distance between the point with canvas coordinates <em class="parameter"><code>x</code></em>,<em class="parameter"><code>y</code></em>
and the nearest point of <em class="parameter"><code>item</code></em>. <em class="parameter"><code>near_item</code></em> is set with either <em class="parameter"><code>item</code></em> or
its appropriate child.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>horizontal position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>vertical position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>near_item</code></em> :</span></p></td>
<td>where to store the nearest item</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the evaluated distance.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-draw"></a><h3>goc_item_draw ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_draw                       (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> const *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
<p>
Renders <em class="parameter"><code>item</code></em> using <em class="parameter"><code>cr</code></em>. There is no need to call this function directly.
Invalidating the item is the way to go.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-draw-region"></a><h3>goc_item_draw_region ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            goc_item_draw_region                (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> const *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/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><span class="type">double</span> x0</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> y0</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> x1</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> y1</code></em>);</pre>
<p>
Renders <em class="parameter"><code>item</code></em> using <em class="parameter"><code>cr</code></em>, limiting all drawings to the region limited by
<em class="parameter"><code>x0</code></em>, <em class="parameter"><code>y0</code></em>, <em class="parameter"><code>x1</code></em>, and <em class="parameter"><code>y1</code></em>. If this function returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, <a class="link" href="GocItem.html#goc-item-draw" title="goc_item_draw ()"><span class="type">goc_item_draw</span></a>
should be called. There is no need to call this function directly.
Invalidating the item is the way to go.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
<td>the lowest horizontal bound of the region to draw</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
<td>the lowest vertical bound of the region to draw</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
<td>the highest horizontal bound of the region to draw</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
<td>the highest vertical bound of the region to draw</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</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 successful.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-get-bounds"></a><h3>goc_item_get_bounds ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_get_bounds                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> const *item</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *x0</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *y0</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> *y1</code></em>);</pre>
<p>
Retrieves the bounds of <em class="parameter"><code>item</code></em> in canvas coordinates.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
<td>where to store the lowest horizontal bound</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
<td>where to store the lowest vertical bound</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
<td>where to store the highest horizontal bound</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
<td>where to store the highest vertical bound</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-get-operator"></a><h3>goc_item_get_operator ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-operator-t"><span class="returnvalue">cairo_operator_t</span></a>    goc_item_get_operator               (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the operator used when drawing the item.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-get-parent"></a><h3>goc_item_get_parent ()</h3>
<pre class="programlisting"><a class="link" href="GocGroup.html" title="GocGroup"><span class="returnvalue">GocGroup</span></a> *          goc_item_get_parent                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The item parent <a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-get-style-context"></a><h3>goc_item_get_style_context ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkStyleContext.html"><span class="returnvalue">GtkStyleContext</span></a> *   goc_item_get_style_context          (<em class="parameter"><code>const <a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The style context to use for the item. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-get-window"></a><h3>goc_item_get_window ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gdk3/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         goc_item_get_window                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The <a href="/usr/share/gtk-doc/html/gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> associated with the item if any or
NULL. Only <a class="link" href="GocWidget.html" title="GocWidget"><span class="type">GocWidget</span></a> owns a <a href="/usr/share/gtk-doc/html/gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-grab"></a><h3>goc_item_grab ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_grab                       (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<p>
Grabs the item. This function will fail if another item is grabbed.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-hide"></a><h3>goc_item_hide ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_hide                       (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<p>
Hides <em class="parameter"><code>item</code></em>.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-invalidate"></a><h3>goc_item_invalidate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_invalidate                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<p>
Force a redraw of <em class="parameter"><code>item</code></em> bounding region.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-is-visible"></a><h3>goc_item_is_visible ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            goc_item_is_visible                 (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</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 <em class="parameter"><code>item</code></em> is visible.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-lower"></a><h3>goc_item_lower ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_lower                      (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>);</pre>
<p>
Lowers <em class="parameter"><code>item</code></em> by <em class="parameter"><code>n</code></em> steps inside its parent <a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a> (or less if the list
is too short) in the item list so that it is displayed more deeply in the
items stack.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>the rank change</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-lower-to-bottom"></a><h3>goc_item_lower_to_bottom ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_lower_to_bottom            (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<p>
Lowers <em class="parameter"><code>item</code></em> to bottom inside its parent <a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a> so that it will be at
least partly hidden by any overlapping item.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-new"></a><h3>goc_item_new ()</h3>
<pre class="programlisting"><a class="link" href="GocItem.html" title="GocItem"><span class="returnvalue">GocItem</span></a> *           goc_item_new                        (<em class="parameter"><code><a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a> *parent</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_arg_name</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Creates a new item of type <em class="parameter"><code>type</code></em> in group <em class="parameter"><code>group</code></em>. Properties can be
set just the same way they are in <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-new"><span class="type">g_object_new</span></a>.
</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>parent</code></em> :</span></p></td>
<td>parent <a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a> for the new item</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the new item</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_arg_name</code></em> :</span></p></td>
<td>property name 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"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>value for the first property, followed optionally by more
name/value pairs, followed by <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"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly created <a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-raise"></a><h3>goc_item_raise ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_raise                      (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n</code></em>);</pre>
<p>
Raises <em class="parameter"><code>item</code></em> by <em class="parameter"><code>n</code></em> steps inside its parent <a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a> (or less if the list
is too short) in the item list so that it is displayed nearer the top of
the items stack.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>the rank change</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-raise-to-top"></a><h3>goc_item_raise_to_top ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_raise_to_top               (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<p>
Raises <em class="parameter"><code>item</code></em> to front so that it becomes the toplevel item inside
its parent <a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a>.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-set"></a><h3>goc_item_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_set                        (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_arg_name</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Set properties and updates the canvas. Using <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-set"><span class="type">g_object_set</span></a> instead would
set the properties, but not update the canvas.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_arg_name</code></em> :</span></p></td>
<td>property name 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"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>value for the first property, followed optionally by more
name/value pairs, followed by <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-set-operator"></a><h3>goc_item_set_operator ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_set_operator               (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-operator-t"><span class="type">cairo_operator_t</span></a> op</code></em>);</pre>
<p>
Set the operator used when drawing the item.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>op</code></em> :</span></p></td>
<td><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-operator-t"><span class="type">cairo_operator_t</span></a></td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-set-transform"></a><h3>goc_item_set_transform ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_set_transform              (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html#cairo-matrix-t"><span class="type">cairo_matrix_t</span></a> *m</code></em>);</pre>
<p>
Set the matrix used to transform the item.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td>
<td><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html#cairo-matrix-t"><span class="type">cairo_matrix_t</span></a></td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-set-visible"></a><h3>goc_item_set_visible ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_set_visible                (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible</code></em>);</pre>
<p>
Either hides or shows <em class="parameter"><code>item</code></em> 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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visible</code></em> :</span></p></td>
<td>whether the item should be visible</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-show"></a><h3>goc_item_show ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_show                       (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<p>
Makes <em class="parameter"><code>item</code></em> visible.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goc-item-ungrab"></a><h3>goc_item_ungrab ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                goc_item_ungrab                     (<em class="parameter"><code><a class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a> *item</code></em>);</pre>
<p>
Ungrabs the item. This function will fail if <em class="parameter"><code>item</code></em> is not grabbed.
</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 class="link" href="GocItem.html" title="GocItem"><span class="type">GocItem</span></a></td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GocItem.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GocItem--canvas"></a><h3>The <code class="literal">"canvas"</code> property</h3>
<pre class="programlisting">  "canvas"                   <a class="link" href="GocCanvas.html" title="GocCanvas"><span class="type">GocCanvas</span></a>*            : Read</pre>
<p>The canvas object on which the item resides.</p>
</div>
<hr>
<div class="refsect2">
<a name="GocItem--parent"></a><h3>The <code class="literal">"parent"</code> property</h3>
<pre class="programlisting">  "parent"                   <a class="link" href="GocGroup.html" title="GocGroup"><span class="type">GocGroup</span></a>*             : Read</pre>
<p>The group in which the item resides.</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.19</div>
</body>
</html>