1Gtk2::TreePath(3)     User Contributed Perl Documentation    Gtk2::TreePath(3)
2
3
4

NAME

6       Gtk2::TreePath
7

HIERARCHY

9         Glib::Boxed
10         +----Gtk2::TreePath
11

METHODS

13   treepath or undef = Gtk2::TreePath->new ($path=undef)
14           ·   $path (string)
15
16           Create a new path.  For convenience, if you pass a value for $path,
17           this is just an alias for "new_from_string".
18
19   treepath = Gtk2::TreePath->new_first
20   treepath or undef = Gtk2::TreePath->new_from_indices ($first_index, ...)
21           ·   $first_index (integer) a non-negative index value
22
23           ·   ... (list) of zero or more index values
24
25           The C API reference docs for this function say to mark the end of
26           the list with a -1, but Perl doesn't need list terminators, so
27           don't do that.
28
29           This is specially implemented to be available for all gtk+
30           versions.
31
32   treepath or undef = Gtk2::TreePath->new_from_string ($path=undef)
33           ·   $path (string)
34
35   $path->append_index ($index_)
36           ·   $index_ (integer)
37
38   integer = $a->compare ($b)
39           ·   $b (Gtk2::TreePath)
40
41           Compares two paths.  If $a appears before $b in the three, returns
42           -1.  If $b appears before $a, returns 1.  If the nodes are equal,
43           returns 0.
44
45   integer = $path->get_depth
46   $path->down
47           Moves $path to point to the first child of the current path.
48
49   list = $path->get_indices
50           Returns a list of integers describing the current indices of $path.
51
52   boolean = $path->is_ancestor ($descendant)
53           ·   $descendant (Gtk2::TreePath)
54
55   boolean = $path->is_descendant ($ancestor)
56           ·   $ancestor (Gtk2::TreePath)
57
58   $path->next
59           Moves $path to point to the next node at the current depth.
60
61   $path->prepend_index ($index_)
62           ·   $index_ (integer)
63
64   boolean = $path->prev
65           Moves $path to point to the previous node at the current depth, if
66           it exists.  Returns true if there is a previous node and $path was
67           modified.
68
69   string = $path->to_string
70   boolean = $path->up
71           Moves $path to point to its parent node; returns false if there is
72           no parent.
73

SEE ALSO

75       Gtk2, Glib::Boxed
76
78       Copyright (C) 2003-2008 by the gtk2-perl team.
79
80       This software is licensed under the LGPL.  See Gtk2 for a full notice.
81
82
83
84perl v5.12.0                      2010-05-02                 Gtk2::TreePath(3)
Impressum