| GtkSourceView 3 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
GtkSourceCompletionWordsGtkSourceCompletionWords — A GtkSourceCompletionProvider for the completion of words |
#include <gtksourceview/completion-providers/words/gtksourcecompletionwords.h> struct GtkSourceCompletionWords; GtkSourceCompletionWords * gtk_source_completion_words_new (const gchar *name,GdkPixbuf *icon); void gtk_source_completion_words_register (GtkSourceCompletionWords *words,GtkTextBuffer *buffer); void gtk_source_completion_words_unregister (GtkSourceCompletionWords *words,GtkTextBuffer *buffer);
"activation" GtkSourceCompletionActivation : Read / Write / Construct "icon" GdkPixbuf* : Read / Write / Construct "interactive-delay" gint : Read / Write / Construct "minimum-word-size" guint : Read / Write / Construct "name" gchar* : Read / Write / Construct "priority" gint : Read / Write / Construct "proposals-batch-size" guint : Read / Write / Construct "scan-batch-size" guint : Read / Write / Construct
The GtkSourceCompletionWords is an example of an implementation of the GtkSourceCompletionProvider interface. The proposals are words appearing in the registered GtkTextBuffers.
GtkSourceCompletionWords * gtk_source_completion_words_new (const gchar *name,GdkPixbuf *icon);
|
The name for the provider. [allow-none] |
|
A specific icon for the provider. [allow-none] |
Returns : |
a new GtkSourceCompletionWords provider |
void gtk_source_completion_words_register (GtkSourceCompletionWords *words,GtkTextBuffer *buffer);
Registers buffer in the words provider.
|
a GtkSourceCompletionWords |
|
a GtkTextBuffer |
void gtk_source_completion_words_unregister (GtkSourceCompletionWords *words,GtkTextBuffer *buffer);
Unregisters buffer from the words provider.
|
a GtkSourceCompletionWords |
|
a GtkTextBuffer |
"activation" property"activation" GtkSourceCompletionActivation : Read / Write / Construct
The type of activation.
Default value: GTK_SOURCE_COMPLETION_ACTIVATION_INTERACTIVE|GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED
Since 3.10
"interactive-delay" property"interactive-delay" gint : Read / Write / Construct
The delay before initiating interactive completion.
Allowed values: >= -1
Default value: 50
"minimum-word-size" property"minimum-word-size" guint : Read / Write / Construct
The minimum word size to complete.
Allowed values: >= 2
Default value: 2
"priority" property"priority" gint : Read / Write / Construct
Provider priority.
Default value: 0
"proposals-batch-size" property"proposals-batch-size" guint : Read / Write / Construct
Number of proposals added in one batch.
Allowed values: >= 1
Default value: 300
"scan-batch-size" property"scan-batch-size" guint : Read / Write / Construct
Number of lines scanned in one batch.
Allowed values: >= 1
Default value: 50