NAME
IWL::Image - an image widget
INHERITANCE
IWL::Object -> IWL::Widget -> IWL::Image
DESCRIPTION
The Image widget provides a wrapper for the <img> markup tag.
CONSTRUCTOR
IWL::Image->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-values corresponding to the attributes that a regular <img> markup would have.
IWL::Image->newFromStock (STOCK_ID, [%ARGS])
Where STOCK_ID is the IWL::Stock id.
SIGNALS
- load
-
Fires when the image has finished loading
METHODS
- set (SRC)
-
Set sets the given source for the image widget.
Parameters: SRC - the source for the image
- setAlt (TEXT)
-
Sets the alternative text of the image
Parameters: TEXT - the text to be set
- setFromStock (STOCK_ID, [SIZE])
-
Sets the image from the stock id
Parameters: STOCK_ID - the stock id, SIZE - optional size ['small']
- getSrc
-
Returns the URL of the image
- getAlt
-
Returns the alternative text of the image
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 154:
You forgot a '=back' before '=head1'