Gapp::Widget - The base class for all Gapp widgets
All Gapp widgets inherit from Gapp::Widget.
If args is set, the contents of the ArrayRef will be passed into the constructor when the Gtk+ widget is instantiated. The example below will create a popup window instead of a standard toplevel window.
args
Gapp::Window->new( args => [ 'popup' ] );
This is the class of the CGObject> to be created. Most Gapp widgets provide this in their class definition, but you can override it by passing in your own value.
Gapp::Window->new( gclass => 'Gtk2::Ex::CustomWindow' );
This constructor is called on the gclass to instantiate a Gtk+ widget. Change the constructor if you want to use the helpers provided by Gtk+ like new_with_label or new_with_mnemonic.
gclass
new_with_label
new_with_mnemonic
Setting the customize attribute allows you to tweak the Gtk+ widget after it has been instantiated. Use this sparingly, you should define the appearnce of your widgets using Gapp::Layout.
customize
If you find you need to use customize because parts of Gapp are incomplete, or could be remedied by more robustness, please file a bug or submit a patch.
If the widget should expand inside it's container. (Table widgets ignore this value because widget expansion is determind by the Gapp::TableMap)
If the widget should fill it's container. (Table widgets ignore this value because widget layout is determind by the Gapp::TableMap)
The actual GObject instance. The GObject will be constructed the first time it is requested. After the object has been constructed, changes you make to the Gapp layer will not be reflected in the Gtk+ widget.
GObject
The layout used to determine widget positioning.
Padding around the widget.
The parent widget.
get_property
set_property
The traits to apply to the widget.
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.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
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.