Wx::Perl::TreeView::Model - virtual tree control model class |
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).
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.
my $has_children = $model->has_children( $cookie );
Return true if the given item has childrens. The default implementation
uses get_child_count
return value.
Wx::Perl::TreeView::Model - virtual tree control model class |