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

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 - Layout items trying to minimize the size of the resulting file.

    my $DirectoryBasedLayout = CSS::SpriteMaker::Layout::Packed->new(
        {
            "1" => {
                width => 128,
                height => 128,
                pathname => '/full/path/to/file1.png',
                parentdir => '/full/path/to',
            },
            ...
        }
    );

All items will be packed throughcontained in the same sub directory are cascaded on the same row of the layout.

Input hashref items must contain the following keys for this layout to produce a result:

- pathname : the full pathname of the file;

- width : the width in pixels of the image;

- height : the height in pixels of the image;

- parentdir: the full pathname of the parent directory the image is contained in.

VERSION ^

Version 0.01

new

Instantiates the layout:

    my $PackedLayout = CSS::SpriteMaker::Layout::Packed->new(
        $rh_item_info
    );

_layout_items

see POD of super class CSS::SpriteMaker::Layout::_layout_items for more information.

syntax highlighting: