---
name: "Clutter::Path::Node"
section: "3pm"
platform: "linux"
package: "libclutter-perl"
version: "1.002-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Clutter::Path::Node"
---

# Clutter::Path::Node(3pm)

wrapper for ClutterPathNode

## 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

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.
