Jeffrey Ray Hallock > Gapp > Gapp::Gtk2::SimpleList

Download:
Gapp-0.60.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Gapp::Gtk2::SimpleList - A sngle column list that can hold arbitrary values

SYNOPSIS ^

  use Gtk2 '-init';

  use Gapp::Gtk2;

  $list = Gapp::Gtk2::List::Simple->new;

  $iter = $list->append( $value );

  $list->set( $iter, $new_value );

DESCRIPTION ^

<Gapp::Gtk2::SimpleList> is a very simpleGtk2::TreeModel that is implmented in perl. It has only one column with no restrictions on the data type it can hold. Nodes can not have children.

OBJECT HEIRARCHY ^

Glib::Object
+-- Gapp::Gtk2::Model::SimpleList

Implemented Interfaces

Gtk2::TreeModel

PROVIDED METHODS ^

append ( $value )

Adds the value to the list, returns an $iter to reference the position.

clear

Clears the list.

remove ( $iter )

Removes a row from the model.

set( $iter, $value )

Sets the value at the position referenced by the $iter.

AUTHOR ^

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>

COPYRIGHT ^

    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.
syntax highlighting: