Clutter::Path::Node.3pm

Langue: en

Version: 2010-08-25 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Clutter::Path::Node - wrapper for ClutterPathNode

DESCRIPTION

A Clutter::Path::Node is a node inside a Clutter::Path. Each node is represented by a hash reference with two keys: type and points. The value for type can be one of the following:
move-to
line-to
curve-to
close

The value for points is an array reference which contains zero or more points. Points are represented by either a hash reference with two keys x and y, or by an array reference that contains two doubles.

The necessary number of points depends on the type of the path node:

move-to: 1 point
line-to: 1 point
curve-to: 3 points
close: 0 points

The semantics and ordering of the coordinate values are consistent with Clutter::Path::add_move_to(), Clutter::Path::add_line_to(), Clutter::Path::add_curve_to() and Clutter::Path::add_close().

HIERARCHY

   Glib::Boxed
   +----Clutter::Path::Node
 
 

METHODS

boolean = $node_a->equal ($node_b)

$node_b (Clutter::Path::Node)

ENUMS AND FLAGS

enum Clutter::Path::NodeType

'move-to' / 'CLUTTER_PATH_MOVE_TO'
'line-to' / 'CLUTTER_PATH_LINE_TO'
'curve-to' / 'CLUTTER_PATH_CURVE_TO'
'close' / 'CLUTTER_PATH_CLOSE'
'rel-move-to' / 'CLUTTER_PATH_REL_MOVE_TO'
'rel-line-to' / 'CLUTTER_PATH_REL_LINE_TO'
'rel-curve-to' / 'CLUTTER_PATH_REL_CURVE_TO'

SEE ALSO

Clutter, Glib::Boxed Copyright (C) 2006, 2007, 2008 OpenedHand Ltd

Copyright (C) 2009 Intel Corporation

This module is free software; you can redistribute it and/or modify it under the terms of either:

the GNU Lesser General Public Library version 2.1; or
the Artistic License, version 2.0.

See Clutter for the full copyright notice.