| GtkSourceCompletion Reference Manual | ||||
|---|---|---|---|---|
#define GTK_SOURCE_COMPLETION_TRIGGER_GET_INTERFACE(obj) GtkSourceCompletionTrigger; GtkSourceCompletionTriggerIface; const gchar* gtk_source_completion_trigger_get_name (GtkSourceCompletionTrigger *self); gboolean gtk_source_completion_trigger_activate (GtkSourceCompletionTrigger *self); gboolean gtk_source_completion_trigger_deactivate (GtkSourceCompletionTrigger *self);
GtkSourceCompletionTrigger is implemented by GscUserRequestTrigger and GscAutocompletionTrigger.
#define GTK_SOURCE_COMPLETION_TRIGGER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_SOURCE_COMPLETION_TYPE_TRIGGER, GtkSourceCompletionTriggerIface))
obj : |
typedef struct {
GTypeInterface parent;
const gchar* (*get_name) (GtkSourceCompletionTrigger *self);
gboolean (*activate) (GtkSourceCompletionTrigger* self);
gboolean (*deactivate) (GtkSourceCompletionTrigger* self);
} GtkSourceCompletionTriggerIface;
const gchar* gtk_source_completion_trigger_get_name
(GtkSourceCompletionTrigger *self);
The trigger name. By example: "C autocompletion trigger"
self : |
the GtkSourceCompletionTrigger |
| Returns : | The trigger's name |
gboolean gtk_source_completion_trigger_activate
(GtkSourceCompletionTrigger *self);
Activate the completion trigger.
self : |
the GtkSourceCompletionTrigger |
| Returns : | TRUE if activation is OK, FALSE if not. |
gboolean gtk_source_completion_trigger_deactivate
(GtkSourceCompletionTrigger *self);
Deactive the completion trigger
self : |
the GtkSourceCompletionTrigger |
| Returns : | TRUE if activation is OK, FALSE if not. |