The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IWL::Icon - an icon widget for the iconbox

INHERITANCE

IWL::Object -> IWL::Widget -> IWL::Container -> IWL::Iconbox::Icon

DESCRIPTION

The Icon widget is a basic widget for the iconbox. It features an icon, and a title underneath it.

CONSTRUCTOR

IWL::Iconbox::Icon->new ([%ARGS])

Where %ARGS is an optional hash parameter with with key-value options. These include: direction: the direction in which the icon will float in the iconbox margin: the margin around the icon. Defaults to '5px'

METHODS

setImage (IMAGE, [ALT])

Sets the image of the icon to the one provided

Parameters: IMAGE - the location of the image, ALT - the alt text of the image

setText (TEXT)

Sets the text underneath the icon to the one provided

Parameters: TEXT - the text string

setSelected (BOOL)

Sets whether the icon should be selected.

Parameters: BOOL - true if the icon should be selected;

setDimensions (WIDTH, [HEIGHT])

Sets the dimensions of the icon to the given ones.

Parameters: WIDTH - the width, HEIGHT - the height.

Note: the dimension units should be provided. Thus, the above parameters will be strings, with the dimension integer, and the given unit to it. E.g.: "64px". Omitting the units might not work on some user agents.

LICENCE AND COPYRIGHT

Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 178:

You forgot a '=back' before '=head1'