IWL::Widget - the base widget object
IWL::Object -> IWL::Widget
The Widget package provides basic methods that every widget inherits.
IWL::Widget->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-value options.
IWL::Widget->newMultiple (ARGS, ARGS, ...)
Returns an array of multiple widgets, one for each ARGS.
Parameters: ARGS - a hash ref of arguments, or a integer, specifying how many widgets to create without any arguments
Fires when the pointing device button is clicked over an element. A click is defined as a mousedown and mouseup over the same screen location. The sequence of these events is:
- mousedown - mouseup - click
Fires when the pointing device button is double clicked over an element
Fires when the pointing device button is pressed over an element
Fires when the pointing device button is released over an element
Fires when the pointing device is moved onto an element. Note that it is also fired when the pointing device enters the element, after leaving a child element
Fires when the pointing device is moved while it is over an element
Fires when the pointing device is moved away from an element. Note that it is also fired when the mouse goes over a child of the element
Fires when the pointing device is moved onto an element. Unlike mouseover, this signal is not fired again if the pointing device enters a child of the element.
Fires when the pointing device is moved away from an element. Unlike mouseout, this signal is not fired again if the pointing device leaves a child of the element.
Fires when the pointing device's scroll wheel has been turned
Fires when a key on the keyboard is "clicked". A keypress is defined as a keydown and keyup on the same key. The sequence of these events is:
- keydown - keyup - keypress
Fires when a key on the keyboard is pressed
Fires when a key on the keyboard is released
Registers a javascript expression to be evaluated on each emission of the SIGNAL from the widget.
Parameters: SIGNAL - the signal string, EXPR - the javascript expression to be invoked
Returns: returns false if the signal is invalid
Disconnects the expression from the signal handler
Parameters: SIGNAL - the signal, EXPR - the javascript expression to be disconnected
Disconnects all of the expressions from the signal handler
Parameters: SIGNAL - the signal
setStyle sets the given style attributes for the current widget.
Parameters: STYLE - the given style, in a hash format.
Returns the given value for the style attribute, or the whole hash if no style was specified.
Parameters: ATTR - the attribute style property to be returned
Deletes the given style attribute
Parameters: ATTR - the style attribute name to be deleted
setId sets the given id for the current widget. It overwrites any previous id set for the widget.
Parameters: ID - the given id
Returns the id of the current widget
setClass sets the given class for the current widget. It overwrites any previous class set for the widget.
Parameters: CLASS - the given class
Appends a class to the current list of classes for the widget
Prepends a class to the current list of classes for the widget
Returns true if the widget belongs to the given class
Parameters: CLASS - the class to be checked
Removes the given class from the class list
Parameters: CLASS - the class to remove
Returns the class of the current widget
Sets the name of the current widget to the given name.
Parameters: NAME - the given name
Gets the name of the current widget
Sets the given title for the current widget. It overwrites any previous title set for the widget.
Parameters: TITLE - the given title
Gets the title of the current widget.
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:
You forgot a '=back' before '=head1'
To install IWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IWL
CPAN shell
perl -MCPAN -e shell install IWL
For more information on module installation, please visit the detailed CPAN module installation guide.