Top | ![]() |
![]() |
![]() |
![]() |
IdeCompletionDisplay * | ide_completion_get_display () |
GtkSourceView * | ide_completion_get_view () |
GtkTextBuffer * | ide_completion_get_buffer () |
void | ide_completion_block_interactive () |
void | ide_completion_unblock_interactive () |
void | ide_completion_add_provider () |
void | ide_completion_remove_provider () |
guint | ide_completion_get_n_rows () |
void | ide_completion_set_n_rows () |
void | ide_completion_hide () |
void | ide_completion_show () |
void | ide_completion_cancel () |
gboolean | ide_completion_is_visible () |
void | ide_completion_move_cursor () |
gboolean | ide_completion_fuzzy_match () |
gchar * | ide_completion_fuzzy_highlight () |
GtkTextView * | buffer | Read |
guint | n-rows | Read / Write |
GtkSourceView * | view | Read / Write / Construct Only |
void | hide | Action |
void | provider-added | Run Last |
void | provider-removed | Run Last |
void | show | Action |
IdeCompletionDisplay *
ide_completion_get_display (IdeCompletion *self
);
Gets the display for completion.
Since: 3.30
void
ide_completion_unblock_interactive (IdeCompletion *self
);
void ide_completion_add_provider (IdeCompletion *self
,IdeCompletionProvider *provider
);
Adds an IdeCompletionProvider to the list of providers to be queried for completion results.
Since: 3.30
void ide_completion_remove_provider (IdeCompletion *self
,IdeCompletionProvider *provider
);
Removes an IdeCompletionProvider previously added with
ide_completion_add_provider()
.
Since: 3.30
void
ide_completion_hide (IdeCompletion *self
);
Emits the "hide" signal.
When the "hide" signal is emitted, the completion window will be dismissed.
Since: 3.30
void
ide_completion_show (IdeCompletion *self
);
Emits the "show" signal.
When the "show" signal is emitted, the completion window will be displayed if there are any results available.
Since: 3.30
gboolean
ide_completion_is_visible (IdeCompletion *self
);
Checks if the completion display is visible.
Since: 3.30
void ide_completion_move_cursor (IdeCompletion *self
,GtkMovementStep step
,gint direction
);
gboolean ide_completion_fuzzy_match (const gchar *haystack
,const gchar *casefold_needle
,guint *priority
);
This helper function can do a fuzzy match for you giving a haystack and
casefolded needle. Casefold your needle using g_utf8_casefold()
before
running the query.
Score will be set with the score of the match upon success. Otherwise, it will be set to zero.
haystack |
the string to be searched. |
[nullable] |
casefold_needle |
A |
|
priority |
An optional location for the score of the match. |
[out][allow-none] |
Since: 3.30
gchar * ide_completion_fuzzy_highlight (const gchar *haystack
,const gchar *casefold_query
);
This will add <b> tags around matched characters in haystack
based on casefold_query
.
haystack |
the string to be highlighted |
|
casefold_query |
the typed-text used to highlight |
Since: 3.30
“buffer”
property “buffer” GtkTextView *
The GtkTextBuffer for the “view”. This is a convenience property for providers.
Flags: Read
Since: 3.30
“n-rows”
property “n-rows” guint
The number of rows to display to the user.
Flags: Read / Write
Allowed values: [1,32]
Default value: 5
Since: 3.30
“view”
property“view” GtkSourceView *
The "view" property is the GtkTextView for which this IdeCompletion is providing completion features.
Flags: Read / Write / Construct Only
Since: 3.30
“hide”
signalvoid user_function (IdeCompletion *self, gpointer user_data)
The "hide" signal is emitted when the completion window should be hidden.
Flags: Action
Since: 3.30
“provider-added”
signalvoid user_function (IdeCompletion *self, IdeCompletionProvider *provider, gpointer user_data)
The "provided-added" signal is emitted when a new provider is added to the completion.
self |
an ideCompletion |
|
provider |
||
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.30
“provider-removed”
signalvoid user_function (IdeCompletion *self, IdeCompletionProvider *provider, gpointer user_data)
The "provided-removed" signal is emitted when a provider has been removed from the completion.
self |
an ideCompletion |
|
provider |
||
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.30
“show”
signalvoid user_function (IdeCompletion *self, gpointer user_data)
The "show" signal is emitted when the completion window should be shown.
Flags: Action
Since: 3.30