Wx::Perl::TreeView::Model - virtual tree control model class
An abstract base class for all models.
my( $cookie, $string, $image, $data ) = $model->get_root;
$cookie is an opaque identifier specific to the model implementation that can be used to access model nodes. $string, $image and $data are the item's label, image and client data (the latter two are optional).
$cookie
$string
$image
$data
my $count = $model->get_child_count( $cookie );
Return the numer of childrens of a given node.
my( $cookie, $string, $image, $data ) = $model->get_child( $cookie, $index );
Return the n-th child of the given node. See get_root for the return values.
get_root
my $has_children = $model->has_children( $cookie );
Return true if the given item has childrens. The default implementation uses get_child_count return value.
get_child_count
To install Wx::Perl::TreeView, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wx::Perl::TreeView
CPAN shell
perl -MCPAN -e shell install Wx::Perl::TreeView
For more information on module installation, please visit the detailed CPAN module installation guide.