NAME
App::Chart::Gtk2::Ex::TreePath::Subclass -- TreePath constructors with reblessing
SYNOPSIS
package My::TreePath::Variant;
use App::Chart::Gtk2::Ex::TreePath::Subclass;
our @ISA = ('App::Chart::Gtk2::Ex::TreePath::Subclass', 'Gtk2::TreePath');
# ...
package main;
my $path = My::TreePath::Variant->new;
DESCRIPTION
App::Chart::Gtk2::Ex::TreePath::Subclass
helps making Perl subclasses of Gtk2::TreePath
. It provides versions of the following Gtk2::TreePath
constructors
new()
new_first()
new_from_indices()
new_from_string()
They're designed as a multi-inheritance mix-in to override the corresponding base methods in Gtk2::TreePath
. They re-bless the created object into the class name given in the call, which is what you want when subclassing, and which the Gtk2::TreePath
functions don't do (as of Gtk2-Perl version 1.223).
Note that such re-blessing is only a Perl level subclass and so won't be seen if the path object is returned back from some Gtk function, they'll give back only plain Gtk2::TreePath
.
SEE ALSO
HOME PAGE
http://user42.tuxfamily.org/chart/index.html
LICENCE
Copyright 2007, 2008, 2009, 2010, 2011 Kevin Ryde
Chart is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Chart is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Chart; see the file COPYING. Failing that, see http://www.gnu.org/licenses/.