GtkSourceCompletion 2.0 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#define GSC_COMPLETION_ERROR GscCompletionPrivate; enum GscCompletionError; GscCompletion; GscCompletion * gsc_completion_get_from_view (GtkTextView *view); GQuark gsc_completion_error_quark (void); GscCompletion * gsc_completion_new (GtkTextView *source_view); gboolean gsc_completion_add_provider (GscCompletion *completion, GscProvider *provider, GError **error); gboolean gsc_completion_remove_provider (GscCompletion *completion, GscProvider *provider, GError **error); GList * gsc_completion_get_providers (GscCompletion *completion, const gchar *capabilities); gboolean gsc_completion_show (GscCompletion *completion, GList *providers, GtkTextIter *place); void gsc_completion_hide (GscCompletion *completion); GscInfo * gsc_completion_get_info_window (GscCompletion *completion); GtkTextView * gsc_completion_get_view (GscCompletion *completion);
"auto-complete-delay" guint : Read / Write / Construct "manage-completion-keys" gboolean : Read / Write / Construct "remember-info-visibility" gboolean : Read / Write / Construct "select-on-show" gboolean : Read / Write / Construct "view" GtkTextView* : Read / Write / Construct Only
typedef enum { GSC_COMPLETION_ERROR_ALREADY_BOUND = 0, GSC_COMPLETION_ERROR_NOT_BOUND, } GscCompletionError;
GscCompletion * gsc_completion_get_from_view (GtkTextView *view);
|
The GtkTextView associated with a GscCompletion |
Returns : |
The GscCompletion associated with a view or NULL .
|
GscCompletion * gsc_completion_new (GtkTextView *source_view);
Create a new GscCompletion associated with view
.
|
|
Returns : |
The new Gsc. |
gboolean gsc_completion_add_provider (GscCompletion *completion, GscProvider *provider, GError **error);
Add a new GscProvider to the completion object. This will
add a reference provider
, so make sure to unref your own copy when you
no longer need it.
|
A Gsc |
|
A GscProvider |
|
A GError |
Returns : |
TRUE if provider was successfully added, otherwise if error
is provided, it will be set with the error and FALSE is returned.
|
gboolean gsc_completion_remove_provider (GscCompletion *completion, GscProvider *provider, GError **error);
Remove provider
from the completion.
|
A Gsc |
|
A GscProvider |
|
A GError |
Returns : |
TRUE if provider was successfully removed, otherwise if error
is provided, it will be set with the error and FALSE is returned.
|
GList * gsc_completion_get_providers (GscCompletion *completion, const gchar *capabilities);
|
|
|
|
Returns : |
gboolean gsc_completion_show (GscCompletion *completion, GList *providers, GtkTextIter *place);
Shows the show completion window. If place
if NULL
the popup window will
be placed on the cursor position.
|
A Gsc |
|
A list of GscProvider |
|
The place where you want to position the popup window, or NULL
|
Returns : |
TRUE if it was possible to the show completion window.
|
void gsc_completion_hide (GscCompletion *completion);
Hides the completion if it is active (visible).
|
A Gsc |
GscInfo * gsc_completion_get_info_window (GscCompletion *completion);
The info widget is the window where the completion displays optional extra information of the proposal.
|
A Gsc |
Returns : |
The GscInfo window. |
GtkTextView * gsc_completion_get_view (GscCompletion *completion);
The GtkTextView associated with completion
.
|
A Gsc |
Returns : |
The GtkTextView associated with completion .
|
"auto-complete-delay"
property"auto-complete-delay" guint : Read / Write / Construct
Completion popup delay for interactive completion.
Default value: 250
"manage-completion-keys"
property"manage-completion-keys" gboolean : Read / Write / Construct
Manage keys to navigate proposal selection.
Default value: TRUE
"remember-info-visibility"
property"remember-info-visibility" gboolean : Read / Write / Construct
Remember the last info window visibility state.
Default value: FALSE
"select-on-show"
property"select-on-show" gboolean : Read / Write / Construct
Select first proposal when completion is shown.
Default value: TRUE
"view"
property"view" GtkTextView* : Read / Write / Construct Only
The GtkTextView bound to the completion.
"hide"
signalvoid user_function (GscCompletion *gsccompletion, gpointer user_data) : Run Last / Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"show"
signalvoid user_function (GscCompletion *gsccompletion, gpointer user_data) : Run Last / Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |