Mattia Barbon > Wx-Perl-ListView > Wx::Perl::ListView::Model

Download:
Wx-Perl-ListView-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Wx::Perl::ListView::Model - virtual list control model class

DESCRIPTION ^

An abstract base class for all models.

METHODS ^

get_item

  my $item = $model->get_item( $row, $column );

Where item has the form (only string is mandatory):

  { string     => 'text',
    image      => $image_index,
    attr       => $list_item_attribute,
    foreground => $foreground_colour,
    background => $background_colour,
    font       => $font,
    }

get_item_count

  my $count = $model->get_item_count;

Returns the number of items in the model.

syntax highlighting: