Savio Dimatteo > CSS-SpriteMaker-0.07 > CSS::SpriteMaker::Layout::Packed::Node

Download:
CSS-SpriteMaker-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.01   Source   Latest Release: CSS-SpriteMaker-0.15

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.
syntax highlighting: