Gnome2::Canvas::PathDef.3pm

Langue: en

Version: 2010-05-12 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Gnome2::Canvas::PathDef

HIERARCHY

   Glib::Boxed
   +----Gnome2::Canvas::PathDef
 
 

METHODS

pathdef = Gnome2::Canvas::PathDef->new

pathdef = Gnome2::Canvas::PathDef->new_sized ($length)

*
$length (integer)

boolean = $path->all_closed

boolean = $path->all_open

boolean = $path->any_closed

boolean = $path->any_open

pathdef = $path->close_all

pathdef = $path->closed_parts

$path->closepath

$path->closepath_current

pathdef = Gnome2::Canvas::PathDef->concat (...)

*
... (list) Gnome2::Canvas::PathDef objects to concatenate

$dst->copy ($src)

*
$src (Gnome2::Canvas::PathDef)

Copy the path from $src into $dst.
Note: this method has very different semantics than the copy provided by Glib::Boxed. "duplicate" is the analog there.

$path->curveto ($x0, $y0, $x1, $y1, $x2, $y2)

*
$x0 (double)
*
$y0 (double)
*
$x1 (double)
*
$y1 (double)
*
$x2 (double)
*
$y2 (double)

pathdef = $path->duplicate

$path->ensure_space ($space)

*
$space (integer)

$path->finish

boolean = $path->has_currentpoint

boolean = $path->is_empty

integer = $path->length

$path->lineto ($x, $y)

*
$x (double)
*
$y (double)

$path->lineto_moving ($x, $y)

*
$x (double)
*
$y (double)

$path->moveto ($x, $y)

*
$x (double)
*
$y (double)

pathdef = $path->open_parts

$path->reset

@pathdefs = $path->split

SEE ALSO

Gnome2::Canvas, Glib::Boxed Copyright (C) 2003-2004 by the Gtk2-Perl Team.

This software is licensed under the LGPL; see Gnome2::Canvas for a full notice.