File: libgnomecanvas-gnome-canvas-path-def.html

package info (click to toggle)
libgnomecanvas 2.30.3-1.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,868 kB
  • sloc: ansic: 15,402; sh: 11,080; makefile: 204
file content (917 lines) | stat: -rw-r--r-- 60,980 bytes parent folder | download | duplicates (5)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gnome-canvas-path-def</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GNOME Canvas Library Reference Manual">
<link rel="up" href="ch02.html" title="GNOME Canvas Library (libgnomecanvas)">
<link rel="prev" href="GnomeCanvasWidget.html" title="GnomeCanvasWidget">
<link rel="next" href="libgnomecanvas-gnome-canvas-util.html" title="gnome-canvas-util">
<meta name="generator" content="GTK-Doc V1.16 (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="GnomeCanvasWidget.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">GNOME Canvas Library Reference Manual</th>
<td><a accesskey="n" href="libgnomecanvas-gnome-canvas-util.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libgnomecanvas-gnome-canvas-path-def.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libgnomecanvas-gnome-canvas-path-def.description" class="shortcut">Description</a>
                   | 
                  <a href="#libgnomecanvas-gnome-canvas-path-def.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="libgnomecanvas-gnome-canvas-path-def"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgnomecanvas-gnome-canvas-path-def.top_of_page"></a>gnome-canvas-path-def</span></h2>
<p>gnome-canvas-path-def — Container and functions for manipulating ArtBpaths</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgnomecanvas-gnome-canvas-path-def.synopsis"></a><h2>Synopsis</h2>
<a name="GnomeCanvasPathDef"></a><pre class="synopsis">
#include &lt;libgnomecanvas/libgnomecanvas.h&gt;

                    <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef-struct" title="GnomeCanvasPathDef">GnomeCanvasPathDef</a>;
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new" title="gnome_canvas_path_def_new ()">gnome_canvas_path_def_new</a>         (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-sized" title="gnome_canvas_path_def_new_sized ()">gnome_canvas_path_def_new_sized</a>   (<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> length</code></em>);
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-from-bpath" title="gnome_canvas_path_def_new_from_bpath ()">gnome_canvas_path_def_new_from_bpath</a>
                                                        (<em class="parameter"><code><span class="type">ArtBpath</span> *bpath</code></em>);
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-from-static-bpath" title="gnome_canvas_path_def_new_from_static_bpath ()">gnome_canvas_path_def_new_from_static_bpath</a>
                                                        (<em class="parameter"><code><span class="type">ArtBpath</span> *bpath</code></em>);
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-from-foreign-bpath" title="gnome_canvas_path_def_new_from_foreign_bpath ()">gnome_canvas_path_def_new_from_foreign_bpath</a>
                                                        (<em class="parameter"><code><span class="type">ArtBpath</span> *bpath</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-ref" title="gnome_canvas_path_def_ref ()">gnome_canvas_path_def_ref</a>           (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-finish" title="gnome_canvas_path_def_finish ()">gnome_canvas_path_def_finish</a>        (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-ensure-space" title="gnome_canvas_path_def_ensure_space ()">gnome_canvas_path_def_ensure_space</a>  (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> space</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-copy" title="gnome_canvas_path_def_copy ()">gnome_canvas_path_def_copy</a>          (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *dst</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *src</code></em>);
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-duplicate" title="gnome_canvas_path_def_duplicate ()">gnome_canvas_path_def_duplicate</a>   (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-concat" title="gnome_canvas_path_def_concat ()">gnome_canvas_path_def_concat</a>      (<em class="parameter"><code>const <a href="../glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *list</code></em>);
<a href="../glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *            <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-split" title="gnome_canvas_path_def_split ()">gnome_canvas_path_def_split</a>         (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-open-parts" title="gnome_canvas_path_def_open_parts ()">gnome_canvas_path_def_open_parts</a>  (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-closed-parts" title="gnome_canvas_path_def_closed_parts ()">gnome_canvas_path_def_closed_parts</a>
                                                        (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-close-all" title="gnome_canvas_path_def_close_all ()">gnome_canvas_path_def_close_all</a>   (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-unref" title="gnome_canvas_path_def_unref ()">gnome_canvas_path_def_unref</a>         (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-reset" title="gnome_canvas_path_def_reset ()">gnome_canvas_path_def_reset</a>         (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-moveto" title="gnome_canvas_path_def_moveto ()">gnome_canvas_path_def_moveto</a>        (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-lineto" title="gnome_canvas_path_def_lineto ()">gnome_canvas_path_def_lineto</a>        (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-lineto-moving" title="gnome_canvas_path_def_lineto_moving ()">gnome_canvas_path_def_lineto_moving</a> (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-curveto" title="gnome_canvas_path_def_curveto ()">gnome_canvas_path_def_curveto</a>       (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x0</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y0</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x1</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y1</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x2</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y2</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-closepath" title="gnome_canvas_path_def_closepath ()">gnome_canvas_path_def_closepath</a>     (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-closepath-current" title="gnome_canvas_path_def_closepath_current ()">gnome_canvas_path_def_closepath_current</a>
                                                        (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<span class="returnvalue">ArtBpath</span> *          <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-bpath" title="gnome_canvas_path_def_bpath ()">gnome_canvas_path_def_bpath</a>         (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-length" title="gnome_canvas_path_def_length ()">gnome_canvas_path_def_length</a>        (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-is-empty" title="gnome_canvas_path_def_is_empty ()">gnome_canvas_path_def_is_empty</a>      (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-has-currentpoint" title="gnome_canvas_path_def_has_currentpoint ()">gnome_canvas_path_def_has_currentpoint</a>
                                                        (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-currentpoint" title="gnome_canvas_path_def_currentpoint ()">gnome_canvas_path_def_currentpoint</a>  (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><span class="type">ArtPoint</span> *p</code></em>);
<span class="returnvalue">ArtBpath</span> *          <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-last-bpath" title="gnome_canvas_path_def_last_bpath ()">gnome_canvas_path_def_last_bpath</a>    (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<span class="returnvalue">ArtBpath</span> *          <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-first-bpath" title="gnome_canvas_path_def_first_bpath ()">gnome_canvas_path_def_first_bpath</a>   (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-any-open" title="gnome_canvas_path_def_any_open ()">gnome_canvas_path_def_any_open</a>      (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-all-open" title="gnome_canvas_path_def_all_open ()">gnome_canvas_path_def_all_open</a>      (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-any-closed" title="gnome_canvas_path_def_any_closed ()">gnome_canvas_path_def_any_closed</a>    (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-all-closed" title="gnome_canvas_path_def_all_closed ()">gnome_canvas_path_def_all_closed</a>    (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libgnomecanvas-gnome-canvas-path-def.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GBoxed
   +----GnomeCanvasPathDef
</pre>
</div>
<div class="refsect1">
<a name="libgnomecanvas-gnome-canvas-path-def.description"></a><h2>Description</h2>
<p>
Convenient container and functions for manipulating ArtBpaths, which are paths
defined by line and curve segments.
</p>
</div>
<div class="refsect1">
<a name="libgnomecanvas-gnome-canvas-path-def.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GnomeCanvasPathDef-struct"></a><h3>GnomeCanvasPathDef</h3>
<pre class="programlisting">typedef struct _GnomeCanvasPathDef GnomeCanvasPathDef;</pre>
<p>
This structure should not be accessed directly. Use the functions defined
below.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-new"></a><h3>gnome_canvas_path_def_new ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_new         (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
This function creates a new empty <span class="type">gnome_canvas_path_def</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new canvas path definition.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-new-sized"></a><h3>gnome_canvas_path_def_new_sized ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_new_sized   (<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> length</code></em>);</pre>
<p>
This function creates a new <span class="type">gnome_canvas_path_def</span> with <em class="parameter"><code>length</code></em>
number of points allocated. It is useful, if you know the exact
number of points in path, so you can avoid automatic point
array reallocation.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>number of points to allocate for the path</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new canvas path definition</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-new-from-bpath"></a><h3>gnome_canvas_path_def_new_from_bpath ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_new_from_bpath
                                                        (<em class="parameter"><code><span class="type">ArtBpath</span> *bpath</code></em>);</pre>
<p>
This function constructs a new <span class="type">gnome_canvas_path_def</span> and uses the
passed <em class="parameter"><code>bpath</code></em> as the contents.  The passed bpath should not be
static as the path definition is editable when constructed with
this function. Also, passed bpath will be freed with art_free, if
path is destroyed, so use it with caution.
For constructing a <span class="type">gnome_canvas_path_def</span>
from (non-modifiable) bpath use
<a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-from-static-bpath" title="gnome_canvas_path_def_new_from_static_bpath ()"><span class="type">gnome_canvas_path_def_new_from_static_bpath</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bpath</code></em> :</span></p></td>
<td>libart bezier path</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new canvas path definition that is populated with the
passed bezier path, if the <em class="parameter"><code>bpath</code></em> is bad NULL is returned.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-new-from-static-bpath"></a><h3>gnome_canvas_path_def_new_from_static_bpath ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_new_from_static_bpath
                                                        (<em class="parameter"><code><span class="type">ArtBpath</span> *bpath</code></em>);</pre>
<p>
This function constructs a new <span class="type">gnome_canvas_path_def</span> and
references the passed <em class="parameter"><code>bpath</code></em> as its contents.  The
<span class="type">gnome_canvas_path_def</span> returned from this function is to be
considered static and non-editable (meaning you cannot change the
path from what you passed in <em class="parameter"><code>bpath</code></em>). The bpath will not be freed,
if path will be destroyed, so use it with caution.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bpath</code></em> :</span></p></td>
<td>libart bezier path</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new canvas path definition that references the passed
<em class="parameter"><code>bpath</code></em>, or if the path is bad NULL is returned.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-new-from-foreign-bpath"></a><h3>gnome_canvas_path_def_new_from_foreign_bpath ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_new_from_foreign_bpath
                                                        (<em class="parameter"><code><span class="type">ArtBpath</span> *bpath</code></em>);</pre>
<p>
This function constructs a new <span class="type">gnome_canvas_path_def</span> and
duplicates the contents of the passed <em class="parameter"><code>bpath</code></em> in the definition.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bpath</code></em> :</span></p></td>
<td>libart bezier path</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly created <span class="type">gnome_canvas_path_def</span> or NULL if the
path is invalid.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-ref"></a><h3>gnome_canvas_path_def_ref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_ref           (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
Increment the reference count of the GnomeCanvasPathDef.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-finish"></a><h3>gnome_canvas_path_def_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_finish        (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
Trims dynamic point array to exact length of path.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-ensure-space"></a><h3>gnome_canvas_path_def_ensure_space ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_ensure_space  (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> space</code></em>);</pre>
<p>
This function ensures that enough space for <em class="parameter"><code>space</code></em> points is
allocated at the end of the path.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>space</code></em> :</span></p></td>
<td>number of points to guarantee are allocated at the end of
the path.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-copy"></a><h3>gnome_canvas_path_def_copy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_copy          (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *dst</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *src</code></em>);</pre>
<p>
This function copies the contents <em class="parameter"><code>src</code></em> to <em class="parameter"><code>dest</code></em>. The old <em class="parameter"><code>dest</code></em> path
array is freed and <em class="parameter"><code>dest</code></em> is marked as non-static (editable),
regardless of the status of <em class="parameter"><code>src</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dst</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef where the contents of <em class="parameter"><code>src</code></em> will be stored.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef whose contents will be copied it <em class="parameter"><code>src</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-duplicate"></a><h3>gnome_canvas_path_def_duplicate ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_duplicate   (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function duplicates the passed <em class="parameter"><code>path</code></em>. The new path is
marked as non-static regardless of the state of original.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef to duplicate</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a GnomeCanvasPathDef which is a duplicate of <em class="parameter"><code>path</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-concat"></a><h3>gnome_canvas_path_def_concat ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_concat      (<em class="parameter"><code>const <a href="../glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *list</code></em>);</pre>
<p>
This function concatenates a list of GnomeCanvasPathDefs into one
newly created GnomeCanvasPathDef.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td>a GSList of GnomeCanvasPathDefs to concatenate into one new
path.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new GnomeCanvasPathDef</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-split"></a><h3>gnome_canvas_path_def_split ()</h3>
<pre class="programlisting"><a href="../glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *            gnome_canvas_path_def_split         (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function splits the passed <em class="parameter"><code>path</code></em> into a list of
GnomeCanvasPathDefs which represent each segment of the origional
path.  The path is split when ever an ART_MOVETO or ART_MOVETO_OPEN
is encountered. The closedness of resulting paths is set accordingly
to closedness of corresponding segment.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a list of GnomeCanvasPathDef(s).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-open-parts"></a><h3>gnome_canvas_path_def_open_parts ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_open_parts  (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function creates a new GnomeCanvasPathDef that contains all of
the open segments on the passed <em class="parameter"><code>path</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new GnomeCanvasPathDef that contains all of the open segemtns in <em class="parameter"><code>path</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-closed-parts"></a><h3>gnome_canvas_path_def_closed_parts ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_closed_parts
                                                        (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function returns a new GnomeCanvasPathDef that contains the
all of close parts of passed <em class="parameter"><code>path</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new GnomeCanvasPathDef that contains all of the closed
parts of passed <em class="parameter"><code>path</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-close-all"></a><h3>gnome_canvas_path_def_close_all ()</h3>
<pre class="programlisting"><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="returnvalue">GnomeCanvasPathDef</span></a> *  gnome_canvas_path_def_close_all   (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function closes all of the open segments in the passed path
and returns a new GnomeCanvasPathDef.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a GnomeCanvasPathDef that contains the contents of <em class="parameter"><code>path</code></em>
but has modified the path is fully closed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-unref"></a><h3>gnome_canvas_path_def_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_unref         (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
Decrease the reference count of the passed <em class="parameter"><code>path</code></em>.  If the reference
count is &lt; 1 the path is deallocated.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-reset"></a><h3>gnome_canvas_path_def_reset ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_reset         (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function clears the contents of the passed <em class="parameter"><code>path</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-moveto"></a><h3>gnome_canvas_path_def_moveto ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_moveto        (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
<p>
This function adds starts new subpath on <em class="parameter"><code>path</code></em>, and sets its
starting point to <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. If current subpath is empty, it
simply changes its starting coordinates to new values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y coordinate</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-lineto"></a><h3>gnome_canvas_path_def_lineto ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_lineto        (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
<p>
This function add a line segment to the passed <em class="parameter"><code>path</code></em> with the
specified <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> coordinates.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y coordinate</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-lineto-moving"></a><h3>gnome_canvas_path_def_lineto_moving ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_lineto_moving (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
<p>
This functions adds a new line segment with loose endpoint to the path, or
if endpoint is already loose, changes its coordinates to <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>. You
can change the coordinates of loose endpoint as many times as you want,
the last ones set will be fixed, if you continue line. This is useful
for handling drawing with mouse.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y coordinate</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-curveto"></a><h3>gnome_canvas_path_def_curveto ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_curveto       (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x0</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y0</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x1</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y1</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x2</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y2</code></em>);</pre>
<p>
This function adds a bezier curve segment to the path definition.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
<td>first control point x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
<td>first control point y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
<td>second control point x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
<td>second control point y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x2</code></em> :</span></p></td>
<td>end of curve x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y2</code></em> :</span></p></td>
<td>end of curve y coordinate</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-closepath"></a><h3>gnome_canvas_path_def_closepath ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_closepath     (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function closes the last subpath of <em class="parameter"><code>path</code></em>, adding a ART_LINETO to
subpath starting point, if needed and changing starting pathcode to
ART_MOVETO
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-closepath-current"></a><h3>gnome_canvas_path_def_closepath_current ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_closepath_current
                                                        (<em class="parameter"><code><a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function closes the last subpath by setting the coordinates of
the endpoint of the last segment (line or curve) to starting point.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-bpath"></a><h3>gnome_canvas_path_def_bpath ()</h3>
<pre class="programlisting"><span class="returnvalue">ArtBpath</span> *          gnome_canvas_path_def_bpath         (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function returns a ArtBpath that consists of the path
definition.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>ArtBpath</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-length"></a><h3>gnome_canvas_path_def_length ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gnome_canvas_path_def_length        (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function returns the length of the path definition.  Not
Euclidian length of the path but rather the number of points on the
path.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>integer, number of points on the path.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-is-empty"></a><h3>gnome_canvas_path_def_is_empty ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_canvas_path_def_is_empty      (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function is a boolean test to see if the path is empty,
meaning containing no line segments.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>boolean, indicating if the path is empty.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-has-currentpoint"></a><h3>gnome_canvas_path_def_has_currentpoint ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_canvas_path_def_has_currentpoint
                                                        (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function is a boolean test checking to see if the path has a
current point defined. Current point will be set by line operators,
and cleared by closing subpath.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathdef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>boolean, indicating if the path has a current point defined.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-currentpoint"></a><h3>gnome_canvas_path_def_currentpoint ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_canvas_path_def_currentpoint  (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>,
                                                         <em class="parameter"><code><span class="type">ArtPoint</span> *p</code></em>);</pre>
<p>
Stores the current point of the path definition in the passed ArtPoint <em class="parameter"><code>p</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
<td>a ArtPoint where to store the current point</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-last-bpath"></a><h3>gnome_canvas_path_def_last_bpath ()</h3>
<pre class="programlisting"><span class="returnvalue">ArtBpath</span> *          gnome_canvas_path_def_last_bpath    (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function returns pointer to the last ArtBpath segment in the path
definition.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>ArtBpath, being the last segment in the path definition or
null if no line segments have been defined.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-first-bpath"></a><h3>gnome_canvas_path_def_first_bpath ()</h3>
<pre class="programlisting"><span class="returnvalue">ArtBpath</span> *          gnome_canvas_path_def_first_bpath   (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function returns the first ArtBpath point in the definition.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>ArtBpath being the first point in the path definition or
null if no points are defined</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-any-open"></a><h3>gnome_canvas_path_def_any_open ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_canvas_path_def_any_open      (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function returns a boolean value indicating if the path has
any open segments.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>boolean, indicating if the path has any open segments.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-all-open"></a><h3>gnome_canvas_path_def_all_open ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_canvas_path_def_all_open      (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function returns a boolean value indicating if the path only
contains open segments.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>boolean, indicating if the path has all open segments.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-any-closed"></a><h3>gnome_canvas_path_def_any_closed ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_canvas_path_def_any_closed    (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function returns a boolean valid indicating if the path has
any closed segements.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>boolean, indicating if the path has any closed segments.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gnome-canvas-path-def-all-closed"></a><h3>gnome_canvas_path_def_all_closed ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_canvas_path_def_all_closed    (<em class="parameter"><code>const <a class="link" href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef"><span class="type">GnomeCanvasPathDef</span></a> *path</code></em>);</pre>
<p>
This function returns a boolean value indicating if the path only
contains closed segments.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a GnomeCanvasPathDef</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>boolean, indicating if the path has all closed segments.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.16</div>
</body>
</html>