GObject.Object
Gtk.EntryCompletion
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkEntryCompletion |
Class : | EntryCompletion |
Implements: | Gtk.Buildable, Gtk.CellLayout |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
inline_completion : Boolean
Determines whether the common prefix of the possible completions should be inserted automatically in the entry.
Determines whether the common prefix of the possible completions should be inserted automatically in the entry. Note that this requires text-column to be set, even if you are using a custom match function.
|
Gtk.EntryCompletion | |
inline_selection : Boolean
Determines whether the possible completions on the popup will appear in the entry as you navigate through them.
Determines whether the possible completions on the popup will appear in the entry as you navigate through them.
|
Gtk.EntryCompletion | |
minimum_key_length : Number
|
Gtk.EntryCompletion | |
model : Gtk.TreeModel
|
Gtk.EntryCompletion | |
parent_instance : GObject.Object
read only
|
Gtk.EntryCompletion | |
popup_completion : Boolean
Determines whether the possible completions should be shown in a popup window.
Determines whether the possible completions should be shown in a popup window.
|
Gtk.EntryCompletion | |
popup_set_width : Boolean
Determines whether the completions popup window will be resized to the width of the entry.
Determines whether the completions popup window will be resized to the width of the entry.
|
Gtk.EntryCompletion | |
popup_single_match : Boolean
Determines whether the completions popup window will shown for a single possible completion.
Determines whether the completions popup window will shown for a single possible completion. You probably want to set this to FALSE if you are using inline completion.
|
Gtk.EntryCompletion | |
priv : Gtk.EntryCompletionPrivate
read only
|
Gtk.EntryCompletion | |
text_column : Number
The column of the model containing the strings.
The column of the model containing the strings. Note that the strings must be UTF-8.
|
Gtk.EntryCompletion |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.EntryCompletion
(Object properties)
Create a new Gtk.EntryCompletion
Create a new Gtk.EntryCompletion
|
||
Adds an attribute mapping to the list in cell_layout.
Adds an attribute mapping to the list in cell_layout. The column is the column of the model to get a value from, and the attribute is the parameter on cell to be set from the value. So for example if column 2 of the model contains strings, you could have the "text" attribute of a GtkCellRendererText get its values from column 2.
|
Gtk.CellLayout | |
Adds a child to buildable.
Adds a child to buildable. type is an optional string describing how the child should be added.
|
Gtk.Buildable | |
clear
()
:
none
Unsets all the mappings on all renderers on cell_layout and removes all renderers from cell_layout.
Unsets all the mappings on all renderers on cell_layout and removes all renderers from cell_layout.
|
Gtk.CellLayout | |
clear_attributes
(CellRenderer cell)
:
none
Clears all existing attributes previously set with gtk_cell_layout_set_attributes().
Clears all existing attributes previously set with gtk_cell_layout_set_attributes().
|
Gtk.CellLayout | |
complete
()
:
none
Requests a completion operation, or in other words a refiltering of the current list with completions, using the current key.
Requests a completion operation, or in other words a refiltering of the current list with completions, using the current key. The completion list view will be updated accordingly.
|
Gtk.EntryCompletion | |
Constructs a child of buildable with the name name.
Constructs a child of buildable with the name name. GtkBuilder calls this function if a "constructor" has been specified in the UI definition.
|
Gtk.Buildable | |
This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.
This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.
|
Gtk.Buildable | |
This is called at the end of each custom element handled by the buildable.
This is called at the end of each custom element handled by the buildable.
|
Gtk.Buildable | |
custom_tag_start
(Builder builder, Object child, String tagname, MarkupParser parser, void* data)
:
Boolean
This is called for each unknown element under <child>.
This is called for each unknown element under <child>. if it doesn't.
|
Gtk.Buildable | |
delete_action
(Number index_)
:
none
Deletes the action at index_ from completion's action list.
Deletes the action at index_ from completion's action list.
|
Gtk.EntryCompletion | |
get_cells
()
:
Array
Returns the cell renderers which have been added to cell_layout.
Returns the cell renderers which have been added to cell_layout. renderers has been newly allocated and should be freed with g_list_free() when no longer needed.
|
Gtk.CellLayout | |
get_completion_prefix
()
:
String
Get the original text entered by the user that triggered the completion or NULL if there's no completion ongoing.
Get the original text entered by the user that triggered the completion or NULL if there's no completion ongoing.
|
Gtk.EntryCompletion | |
get_entry
()
:
Gtk.Widget
Gets the entry completion has been attached to.
Gets the entry completion has been attached to.
|
Gtk.EntryCompletion | |
get_inline_completion
()
:
Boolean
Returns whether the common prefix of the possible completions should be automatically inserted in the entry.
Returns whether the common prefix of the possible completions should be automatically inserted in the entry.
|
Gtk.EntryCompletion | |
get_inline_selection
()
:
Boolean
Returns TRUE if inline-selection mode is turned on.
Returns TRUE if inline-selection mode is turned on.
|
Gtk.EntryCompletion | |
Get the internal child called childname of the buildable object.
Get the internal child called childname of the buildable object.
|
Gtk.Buildable | |
get_minimum_key_length
()
:
Number
Returns the minimum key length as set for completion.
Returns the minimum key length as set for completion.
|
Gtk.EntryCompletion | |
get_model
()
:
Gtk.TreeModel
Returns the model the GtkEntryCompletion is using as data source.
Returns the model the GtkEntryCompletion is using as data source. Returns NULL if the model is unset.
|
Gtk.EntryCompletion | |
get_name
()
:
String
Gets the name of the buildable object.
Gets the name of the buildable object. GtkBuilder sets the name based on the the GtkBuilder UI definition used to construct the buildable.
|
Gtk.Buildable | |
get_popup_completion
()
:
Boolean
Returns whether the completions should be presented in a popup window.
Returns whether the completions should be presented in a popup window.
|
Gtk.EntryCompletion | |
get_popup_set_width
()
:
Boolean
Returns whether the completion popup window will be resized to the width of the entry.
Returns whether the completion popup window will be resized to the width of the entry. the entry
|
Gtk.EntryCompletion | |
get_popup_single_match
()
:
Boolean
Returns whether the completion popup window will appear even if there is only a single match.
Returns whether the completion popup window will appear even if there is only a single match. number of matches.
|
Gtk.EntryCompletion | |
get_text_column
()
:
Number
Returns the column in the model of completion to get strings from.
Returns the column in the model of completion to get strings from.
|
Gtk.EntryCompletion | |
Gtk.EntryCompletion | ||
Inserts an action in completion's action item list at position index_ with text text.
|
Gtk.EntryCompletion | |
insert_prefix
()
:
none
Requests a prefix insertion.
Requests a prefix insertion.
|
Gtk.EntryCompletion | |
pack_end
(CellRenderer cell, Boolean expand)
:
none
Adds the cell to the end of cell_layout.
Adds the cell to the end of cell_layout. If expand is FALSE, then the divided evenly between cells for which expand is TRUE. Note that reusing the same cell renderer is not supported.
|
Gtk.CellLayout | |
pack_start
(CellRenderer cell, Boolean expand)
:
none
Packs the cell into the beginning of cell_layout.
Packs the cell into the beginning of cell_layout. If expand is FALSE, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE. Note that reusing the same cell renderer is not supported.
|
Gtk.CellLayout | |
parser_finished
(Builder builder)
:
none
Called when the builder finishes the parsing of a GtkBuilder UI definition.
Called when the builder finishes the parsing of a GtkBuilder UI definition. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.
|
Gtk.Buildable | |
reorder
(CellRenderer cell, Number position)
:
none
Re-inserts cell at position.
Re-inserts cell at position. Note that cell has already to be packed into cell_layout for this to function properly.
|
Gtk.CellLayout | |
Sets the property name name to value on the buildable object.
Sets the property name name to value on the buildable object.
|
Gtk.Buildable | |
Sets the GtkCellLayoutDataFunc to use for cell_layout.
Sets the GtkCellLayoutDataFunc to use for cell_layout. This function is used instead of the standard attributes mapping for setting the column value, and should set the value of cell_layout's cell renderer(s) as appropriate. func may be NULL to remove and older one.
|
Gtk.CellLayout | |
set_inline_completion
(Boolean inline_completion)
:
none
Sets whether the common prefix of the possible completions should be automatically inserted in the entry.
Sets whether the common prefix of the possible completions should be automatically inserted in the entry.
|
Gtk.EntryCompletion | |
set_inline_selection
(Boolean inline_selection)
:
none
Sets whether it is possible to cycle through the possible completions inside the entry.
Sets whether it is possible to cycle through the possible completions inside the entry.
|
Gtk.EntryCompletion | |
Sets the match function for completion to be func.
Sets the match function for completion to be func. The match function is used to determine if a row should or should not be in the completion list.
|
Gtk.EntryCompletion | |
set_minimum_key_length
(Number length)
:
none
Requires the length of the search key for completion to be at least key takes a lot of time and will come up with meaningless results anyway (ie, a too large dataset).
Requires the length of the search key for completion to be at least key takes a lot of time and will come up with meaningless results anyway (ie, a too large dataset).
|
Gtk.EntryCompletion | |
set_model
(TreeModel model)
:
none
Sets the model for a GtkEntryCompletion.
Sets the model for a GtkEntryCompletion. If completion already has a model set, it will remove it before setting the new model. If model is NULL, then it will unset the model.
|
Gtk.EntryCompletion | |
set_name
(String name)
:
none
Sets the name of the buildable object.
Sets the name of the buildable object.
|
Gtk.Buildable | |
set_popup_completion
(Boolean popup_completion)
:
none
Sets whether the completions should be presented in a popup window.
Sets whether the completions should be presented in a popup window.
|
Gtk.EntryCompletion | |
set_popup_set_width
(Boolean popup_set_width)
:
none
Sets whether the completion popup window will be resized to be the same width as the entry.
Sets whether the completion popup window will be resized to be the same width as the entry.
|
Gtk.EntryCompletion | |
set_popup_single_match
(Boolean popup_single_match)
:
none
Sets whether the completion popup window will appear even if there is only a single match.
Sets whether the completion popup window will appear even if there is only a single match. You may want to set this to FALSE if you are using inline completion.
|
Gtk.EntryCompletion | |
set_text_column
(Number column)
:
none
completion list with just strings.
completion list with just strings. This function will set up completion to have a list displaying all (and just) strings in the completion list, and to get those strings from column in the model of completion. This functions creates and adds a GtkCellRendererText for the selected column. If you need to set the text column, but don't want the cell renderer, use g_object_set() to set the ::text_column property directly.
|
Gtk.EntryCompletion |
Event | Defined By | |
---|---|---|
action_activated (EntryCompletion self, Number index)
:
none
Gets emitted when an action is activated.
Gets emitted when an action is activated.
|
Gtk.EntryCompletion | |
Gets emitted when a match from the cursor is on a match of the list.The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by iter.
Gets emitted when a match from the cursor is on a match of the list.The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by iter.
|
Gtk.EntryCompletion | |
Gets emitted when the inline autocompletion is triggered.
Gets emitted when the inline autocompletion is triggered. The default behaviour is to make the entry display the whole prefix and select the newly inserted part. Applications may connect to this signal in order to insert only a smaller part of the prefix into the entry - e.g. the entry used in the GtkFileChooser inserts only the part of the prefix up to the next '/'.
|
Gtk.EntryCompletion | |
Gets emitted when a match from the list is selected.
Gets emitted when a match from the list is selected. The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by iter.
|
Gtk.EntryCompletion |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.Entry
Method |
set_completion
(EntryCompletion completion)
:
none
Sets completion to be the auxiliary completion object to use with entry.
|
Gtk.Entry
Method |
get_completion
()
:
Gtk.EntryCompletion
Returns the auxiliary completion object currently in use by entry.
|