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

NAME

6       Gtk2::TreePath - wrapper for GtkTreePath
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 the
26       list with a -1, but Perl doesn't need list terminators, so don't do
27       that.
28
29       This is specially implemented to be available for all gtk+ versions.
30
31   treepath or undef = Gtk2::TreePath->new_from_string ($path=undef)
32       ·   $path (string)
33
34   $path->append_index ($index_)
35       ·   $index_ (integer)
36
37   integer = $a->compare ($b)
38       ·   $b (Gtk2::TreePath)
39
40       Compares two paths.  If $a appears before $b in the three, returns -1.
41       If $b appears before $a, returns 1.  If the nodes are equal, returns 0.
42
43   integer = $path->get_depth
44   $path->down
45       Moves $path to point to the first child of the current path.
46
47   list = $path->get_indices
48       Returns a list of integers describing the current indices of $path.
49
50   boolean = $path->is_ancestor ($descendant)
51       ·   $descendant (Gtk2::TreePath)
52
53   boolean = $path->is_descendant ($ancestor)
54       ·   $ancestor (Gtk2::TreePath)
55
56   $path->next
57       Moves $path to point to the next node at the current depth.
58
59   $path->prepend_index ($index_)
60       ·   $index_ (integer)
61
62   boolean = $path->prev
63       Moves $path to point to the previous node at the current depth, if it
64       exists.  Returns true if there is a previous node and $path was
65       modified.
66
67   string = $path->to_string
68   boolean = $path->up
69       Moves $path to point to its parent node; returns false if there is no
70       parent.
71

SEE ALSO

73       Gtk2, Glib::Boxed
74
76       Copyright (C) 2003-2011 by the gtk2-perl team.
77
78       This software is licensed under the LGPL.  See Gtk2 for a full notice.
79
80
81
82perl v5.30.1                      2020-01-30                 Gtk2::TreePath(3)
Impressum