![]() |
![]() |
![]() |
GtkSourceView 3 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
#include <gtksourceview/gtksourcecompletioninfo.h> GtkSourceCompletionInfo; GtkSourceCompletionInfo * gtk_source_completion_info_new (void
); void gtk_source_completion_info_move_to_iter (GtkSourceCompletionInfo *info
,GtkTextView *view
,GtkTextIter *iter
); void gtk_source_completion_info_set_widget (GtkSourceCompletionInfo *info
,GtkWidget *widget
); GtkWidget * gtk_source_completion_info_get_widget (GtkSourceCompletionInfo *info
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkSourceCompletionInfo
GtkSourceCompletionInfo * gtk_source_completion_info_new
(void
);
Returns : |
a new GtkSourceCompletionInfo. |
void gtk_source_completion_info_move_to_iter (GtkSourceCompletionInfo *info
,GtkTextView *view
,GtkTextIter *iter
);
Moves the GtkSourceCompletionInfo to iter
. If iter
is NULL
info
is
moved to the cursor position. Moving will respect the GdkGravity setting
of the info window and will ensure the line at iter
is not occluded by
the window.
|
a GtkSourceCompletionInfo. |
|
a GtkTextView on which the info window should be positioned. |
|
a GtkTextIter. [allow-none] |
void gtk_source_completion_info_set_widget (GtkSourceCompletionInfo *info
,GtkWidget *widget
);
Sets the content widget of the info window. If widget
does not fit within
the size requirements of the window, a GtkScrolledWindow will automatically
be created and added to the window. See that the previous widget will lose
a reference and it can be destroyed, so if you do not want this to happen
you must g_object_ref()
before calling this method.
|
a GtkSourceCompletionInfo. |
|
a GtkWidget. [allow-none] |
GtkWidget * gtk_source_completion_info_get_widget
(GtkSourceCompletionInfo *info
);
Get the current content widget.
|
a GtkSourceCompletionInfo. |
Returns : |
The current content widget. [transfer none] |
"before-show"
signalvoid user_function (GtkSourceCompletionInfo *info,
gpointer user_data) : Action
This signal is emitted before any "show" management. You can connect to this signal if you want to change some properties or position before the real "show".
|
The GtkSourceCompletionInfo who emits the signal |
|
user data set when the signal handler was connected. |