Gapp::Gtk2::Model::List - A list with no set number of columns and can hold arbitrary data
use Gtk2 '-init'; use Gapp::Gtk2; $list = Gapp::Gtk2::List->new; $iter = $list->append( 0 => $value1, 1 => $value2 ); $iter = $list->append_record( $value3, $value4 ); $list->set( $iter, 0, $new_value ); $o = Foo::Bar->new; $list->append( 0 => $o );
<Gapp::Gtk2::Model::List> is a Gtk2::TreeModel implmented in perl. It has an undefined number of columns which can hold any arbitrary data type.
Adds an entry to the list and sets the values of the given columns.
Adds an entry to the list and sets the values of given columns (using the position of the supplied values).
Clears the list.
Removes a row from the model.
Sets the value at the position referenced by the $iter.
$iter
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.
3 POD Errors
The following errors were encountered while parsing the POD:
Unknown directive: =over4
'=item' outside of any '=over'
Unterminated B<...> sequence
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.