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

NAME

6       Gtk2::List - wrapper for GtkList
7

DESCRIPTION

9       Gtk2::List is deprecated; use Gtk2::TreeView and a Gtk2::ListStore
10       instead.
11
12       Gtk2::List is included in Gtk2-Perl only because Gtk2::Combo still
13       makes use of it, and Gtk2::Combo's replacement, Gtk2::ComboBox, didn't
14       appear in gtk+ until 2.4.0.
15

HIERARCHY

17         Glib::Object
18         +----Glib::InitiallyUnowned
19              +----Gtk2::Object
20                   +----Gtk2::Widget
21                        +----Gtk2::Container
22                             +----Gtk2::List
23

INTERFACES

25         Glib::Object::_Unregistered::AtkImplementorIface
26         Gtk2::Buildable
27

METHODS

29   widget = Gtk2::List->new
30   $list->append_items (...)
31       •   ... (list) of Gtk2::ListItem's to be appended
32
33   integer = $list->child_position ($child)
34       •   $child (Gtk2::Widget)
35
36   $list->clear_items ($start, $end)
37       •   $start (integer)
38
39       •   $end (integer)
40
41   $list->end_drag_selection
42   $list->end_selection
43   $list->extend_selection ($scroll_type, $position, $auto_start_selection)
44       •   $scroll_type (Gtk2::ScrollType)
45
46       •   $position (double)
47
48       •   $auto_start_selection (boolean)
49
50   $list->insert_items ($position, ...)
51       •   $position (integer)
52
53       •   ... (list) of Gtk2::ListItem's to be inserted
54
55   $list->prepend_items (..., $list_item)
56       •   ... (list) of Gtk2::ListItem's to be prepended
57
58       •   $list_item (Gtk2::ListItem)
59
60   $list->remove_items (..., $list_item)
61       •   ... (list) of Gtk2::ListItem's to be removed
62
63       •   $list_item (Gtk2::ListItem)
64
65   $list->scroll_horizontal ($scroll_type, $position)
66       •   $scroll_type (Gtk2::ScrollType)
67
68       •   $position (double)
69
70   $list->scroll_vertical ($scroll_type, $position)
71       •   $scroll_type (Gtk2::ScrollType)
72
73       •   $position (double)
74
75   $list->select_all
76   $list->select_child ($child)
77       •   $child (Gtk2::Widget)
78
79   $list->select_item ($item)
80       •   $item (integer)
81
82   $list->set_selection_mode ($mode)
83       •   $mode (Gtk2::SelectionMode)
84
85   $list->start_selection
86   $list->toggle_add_mode
87   $list->toggle_focus_row
88   $list->toggle_row ($item)
89       •   $item (Gtk2::Widget)
90
91   $list->undo_selection
92   $list->unselect_all
93   $list->unselect_child ($child)
94       •   $child (Gtk2::Widget)
95
96   $list->unselect_item ($item)
97       •   $item (integer)
98

PROPERTIES

100       'selection-mode' (Gtk2::SelectionMode : default "none" : readable /
101       writable / private)
102

SIGNALS

104       select-child (Gtk2::List, Gtk2::Widget)
105       selection-changed (Gtk2::List)
106       unselect-child (Gtk2::List, Gtk2::Widget)
107

ENUMS AND FLAGS

109   enum Gtk2::ScrollType
110       •   'none' / 'GTK_SCROLL_NONE'
111
112       •   'jump' / 'GTK_SCROLL_JUMP'
113
114       •   'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
115
116       •   'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
117
118       •   'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
119
120       •   'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
121
122       •   'step-up' / 'GTK_SCROLL_STEP_UP'
123
124       •   'step-down' / 'GTK_SCROLL_STEP_DOWN'
125
126       •   'page-up' / 'GTK_SCROLL_PAGE_UP'
127
128       •   'page-down' / 'GTK_SCROLL_PAGE_DOWN'
129
130       •   'step-left' / 'GTK_SCROLL_STEP_LEFT'
131
132       •   'step-right' / 'GTK_SCROLL_STEP_RIGHT'
133
134       •   'page-left' / 'GTK_SCROLL_PAGE_LEFT'
135
136       •   'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
137
138       •   'start' / 'GTK_SCROLL_START'
139
140       •   'end' / 'GTK_SCROLL_END'
141
142   enum Gtk2::SelectionMode
143       •   'none' / 'GTK_SELECTION_NONE'
144
145       •   'single' / 'GTK_SELECTION_SINGLE'
146
147       •   'browse' / 'GTK_SELECTION_BROWSE'
148
149       •   'multiple' / 'GTK_SELECTION_MULTIPLE'
150
151       •   'extended' / 'GTK_SELECTION_EXTENDED'
152

SEE ALSO

154       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
155       Gtk2::Container
156
158       Copyright (C) 2003-2011 by the gtk2-perl team.
159
160       This software is licensed under the LGPL.  See Gtk2 for a full notice.
161
162
163
164perl v5.38.0                      2023-07-20                     Gtk2::List(3)
Impressum