1Gnome2::Canvas::PathDefU(s3e)r Contributed Perl DocumentaGtnioomne2::Canvas::PathDef(3)
2
3
4
6 Gnome2::Canvas::PathDef - wrapper for GnomeCanvasPathDef
7
9 Glib::Boxed
10 +----Gnome2::Canvas::PathDef
11
13 pathdef = Gnome2::Canvas::PathDef->new
14 pathdef = Gnome2::Canvas::PathDef->new_sized ($length)
15 · $length (integer)
16
17 boolean = $path->all_closed
18 boolean = $path->all_open
19 boolean = $path->any_closed
20 boolean = $path->any_open
21 pathdef = $path->close_all
22 pathdef = $path->closed_parts
23 $path->closepath
24 $path->closepath_current
25 pathdef = Gnome2::Canvas::PathDef->concat (...)
26 · ... (list) Gnome2::Canvas::PathDef objects to concatenate
27
28 $dst->copy ($src)
29 · $src (Gnome2::Canvas::PathDef)
30
31 Copy the path from $src into $dst.
32
33 Note: this method has very different semantics than the copy provided
34 by Glib::Boxed. "duplicate" is the analog there.
35
36 $path->curveto ($x0, $y0, $x1, $y1, $x2, $y2)
37 · $x0 (double)
38
39 · $y0 (double)
40
41 · $x1 (double)
42
43 · $y1 (double)
44
45 · $x2 (double)
46
47 · $y2 (double)
48
49 pathdef = $path->duplicate
50 $path->ensure_space ($space)
51 · $space (integer)
52
53 $path->finish
54 boolean = $path->has_currentpoint
55 boolean = $path->is_empty
56 integer = $path->length
57 $path->lineto ($x, $y)
58 · $x (double)
59
60 · $y (double)
61
62 $path->lineto_moving ($x, $y)
63 · $x (double)
64
65 · $y (double)
66
67 $path->moveto ($x, $y)
68 · $x (double)
69
70 · $y (double)
71
72 pathdef = $path->open_parts
73 $path->reset
74 @pathdefs = $path->split
76 Gnome2::Canvas, Glib::Boxed
77
79 Copyright (C) 2003-2004 by the Gtk2-Perl Team.
80
81 This software is licensed under the LGPL; see Gnome2::Canvas for a full
82 notice.
83
84
85
86perl v5.32.0 2021-01-05 Gnome2::Canvas::PathDef(3)