NAME

CSS::SpriteMaker::Layout::Packed::Node - A node of the Packed Layout

VERSION

Version 0.01

METHODS

new

Node constructor.

Parameters:

X coordinate.
Y coordinate.
Image width.
Image height.
Flag to determine if the node is used.
Down (Node class).
Right (Node class).

find

Find a node to allocate this image size (width, height).

Node to search in.

Parameters:

Pixels to grow down (width).
Pixels to grow down (height).

grow

Grow the canvas to the most appropriate direction.

Parameters:

Pixels to grow down (width).
Pixels to grow down (height).

clone

Clone this object.

grow_right

Grow the canvas to the right.

Parameters:

Pixels to grow down (width).
Pixels to grow down (height).

grow_down

Grow the canvas down.

Parameters:

Pixels to grow down (width).
Pixels to grow down (height).

split

Split the node to allocate a new one of this size.

Parameters:

Node to be splitted.
New node width.
New node height.