1Gtk2::EntryCompletion(3U)ser Contributed Perl DocumentatiGotnk2::EntryCompletion(3)
2
3
4

NAME

6       Gtk2::EntryCompletion - wrapper for GtkEntryCompletion
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::EntryCompletion
11

INTERFACES

13         Gtk2::CellLayout
14         Gtk2::Buildable
15

METHODS

17   entrycompletion = Gtk2::EntryCompletion->new
18   $completion->complete
19   string or undef = $completion->get_completion_prefix
20       Since: gtk+ 2.12
21
22   $completion->delete_action ($index)
23       •   $index (integer)
24
25   widget = $entry->get_entry
26   boolean = $completion->get_inline_completion
27       Since: gtk+ 2.6
28
29   $completion->set_inline_completion ($inline_completion)
30       •   $inline_completion (boolean)
31
32       Since: gtk+ 2.6
33
34   boolean = $completion->get_inline_selection
35       Since: gtk+ 2.12
36
37   $completion->set_inline_selection ($inline_selection)
38       •   $inline_selection (boolean)
39
40       Since: gtk+ 2.12
41
42   $completion->insert_action_markup ($index, $markup)
43       •   $index (integer)
44
45       •   $markup (string)
46
47   $completion->insert_action_text ($index, $text)
48       •   $index (integer)
49
50       •   $text (string)
51
52   $completion->insert_prefix
53       Since: gtk+ 2.6
54
55   $completion->set_match_func ($func, $func_data=undef)
56       •   $func (scalar)
57
58       •   $func_data (scalar)
59
60   integer = $completion->get_minimum_key_length
61   $completion->set_minimum_key_length ($length)
62       •   $length (integer)
63
64   treemodel = $completion->get_model
65   $completion->set_model ($model)
66       •   $model (Gtk2::TreeModel or undef)
67
68   boolean = $completion->get_popup_completion
69       Since: gtk+ 2.6
70
71   $completion->set_popup_completion ($popup_completion)
72       •   $popup_completion (boolean)
73
74       Since: gtk+ 2.6
75
76   boolean = $completion->get_popup_set_width
77       Since: gtk+ 2.8
78
79   $completion->set_popup_set_width ($popup_set_width)
80       •   $popup_set_width (boolean)
81
82       Since: gtk+ 2.8
83
84   boolean = $completion->get_popup_single_match
85       Since: gtk+ 2.8
86
87   $completion->set_popup_single_match ($popup_single_match)
88       •   $popup_single_match (boolean)
89
90       Since: gtk+ 2.8
91
92   integer = $completion->get_text_column
93       Since: gtk+ 2.6
94
95   $completion->set_text_column ($column)
96       •   $column (integer)
97

PROPERTIES

99       'inline-completion' (boolean : default false : readable / writable /
100       private / static-nick / static-blurb)
101           Whether the common prefix should be inserted automatically
102
103       'inline-selection' (boolean : default false : readable / writable /
104       private / static-nick / static-blurb)
105           Your description here
106
107       'minimum-key-length' (integer : default 1 : readable / writable /
108       private / static-nick / static-blurb)
109           Minimum length of the search key in order to look up matches
110
111       'model' (Gtk2::TreeModel : default undef : readable / writable /
112       private / static-nick / static-blurb)
113           The model to find matches in
114
115       'popup-completion' (boolean : default true : readable / writable /
116       private / static-nick / static-blurb)
117           Whether the completions should be shown in a popup window
118
119       'popup-set-width' (boolean : default true : readable / writable /
120       private / static-nick / static-blurb)
121           If TRUE, the popup window will have the same size as the entry
122
123       'popup-single-match' (boolean : default true : readable / writable /
124       private / static-nick / static-blurb)
125           If TRUE, the popup window will appear for a single match.
126
127       'text-column' (integer : default -1 : readable / writable / private /
128       static-nick / static-blurb)
129           The column of the model containing the strings.
130

SIGNALS

132       action-activated (Gtk2::EntryCompletion, integer)
133       boolean = cursor-on-match (Gtk2::EntryCompletion, Gtk2::TreeModel,
134       Gtk2::TreeIter)
135       boolean = insert-prefix (Gtk2::EntryCompletion, string)
136       boolean = match-selected (Gtk2::EntryCompletion, Gtk2::TreeModel,
137       Gtk2::TreeIter)
138

SEE ALSO

140       Gtk2, Glib::Object
141
143       Copyright (C) 2003-2011 by the gtk2-perl team.
144
145       This software is licensed under the LGPL.  See Gtk2 for a full notice.
146
147
148
149perl v5.32.1                      2021-01-27          Gtk2::EntryCompletion(3)
Impressum