| 1 | package Wx::Perl::ListView::Model; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Wx::Perl::ListView::Model - virtual list control model class | ||
| 6 | |||
| 7 | =head1 DESCRIPTION | ||
| 8 | |||
| 9 | An abstract base class for all models. | ||
| 10 | |||
| 11 | =head1 METHODS | ||
| 12 | |||
| 13 | =cut | ||
| 14 | |||
| 15 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | =head2 get_item | ||
| 18 | |||
| 19 | my $item = $model->get_item( $row, $column ); | ||
| 20 | |||
| 21 | Where item has the form (only C<string> is mandatory): | ||
| 22 | |||
| 23 | { string => 'text', | ||
| 24 | image => $image_index, | ||
| 25 | attr => $list_item_attribute, | ||
| 26 | foreground => $foreground_colour, | ||
| 27 | background => $background_colour, | ||
| 28 | font => $font, | ||
| 29 | } | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | 0 | ▶ | sub get_item { my( $self, $row, $column ) = @_; die 'Implement me'; } |
|
Subroutine
get_item: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 34 | |||
| 35 | =head2 get_item_count | ||
| 36 | |||
| 37 | my $count = $model->get_item_count; | ||
| 38 | |||
| 39 | Returns the number of items in the model. | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | 0 | ▶ | sub get_item_count { my( $self ) = @_; die 'Implement me'; } |
|
Subroutine
get_item_count: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 44 | |||
| 45 | 2 | 1; | |