Gapp::Meta::Widget::Native::Role::HasAction - action attribute for widgets
use Gapp::Actions::Basic qw( Quit ); Gapp::Button->new( action => Quit ); Gapp::ImageMenuItem->new( action => Quit ); Gapp::ToolButton->new( action => Quit );
Specifies an action for the widget is activated. The action defines a callback to be executed and properties of the widget, such as icon, label, and tooltip. You spcify arguments to pass to the call-back by using an ArrayRef containing the action and the arguments:
icon
label
tooltip
ArrayRef
Gapp::Button->new( action => [Quit, @args ] );
Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>
Copyright (c) 2011-2012 Jeffrey Ray Hallock. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Gapp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gapp
CPAN shell
perl -MCPAN -e shell install Gapp
For more information on module installation, please visit the detailed CPAN module installation guide.