| GtkSourceView 2 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | 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_sizing
(GtkSourceCompletionInfo *info,
gint width,
gint height,
gboolean shrink_width,
gboolean shrink_height);
void gtk_source_completion_info_set_widget
(GtkSourceCompletionInfo *info,
GtkWidget *widget);
GtkWidget * gtk_source_completion_info_get_widget
(GtkSourceCompletionInfo *info);
void gtk_source_completion_info_process_resize
(GtkSourceCompletionInfo *info);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkSourceCompletionInfo
"max-height" gint : Read / Write / Construct "max-width" gint : Read / Write / Construct "shrink-height" gboolean : Read / Write / Construct "shrink-width" gboolean : Read / Write / Construct
GtkSourceCompletionInfo * gtk_source_completion_info_new (void);
Returns : |
The 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 |
void gtk_source_completion_info_set_sizing
(GtkSourceCompletionInfo *info,
gint width,
gint height,
gboolean shrink_width,
gboolean shrink_height);
Set sizing information for the info window. If shrink_width or
shrink_height is TRUE, the info window will try to resize to fit the
window contents, with a maximum size given by width and height. Setting
width or height to -1 removes the maximum size of respectively the width
and height of the window.
|
A GtkSourceCompletionInfo |
|
The maximum/requested width of the window (-1 to default) |
|
The maximum/requested height of the window (-1 to default) |
|
Whether to shrink the width of the window to fit its contents |
|
Whether to shrink the height of the window to fit its contents |
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.
|
A GtkSourceCompletionInfo |
|
A GtkWidget |
GtkWidget * gtk_source_completion_info_get_widget (GtkSourceCompletionInfo *info);
Get the current content widget.
|
A GtkSourceCompletionInfo |
Returns : |
The current content widget. |
void gtk_source_completion_info_process_resize
(GtkSourceCompletionInfo *info);
|
"max-height" property"max-height" gint : Read / Write / Construct
The maximum allowed height.
Allowed values: >= -1
Default value: -1
"max-width" property"max-width" gint : Read / Write / Construct
The maximum allowed width.
Allowed values: >= -1
Default value: -1
"shrink-height" property"shrink-height" gboolean : Read / Write / Construct
Whether the window should shrink height to fit the contents.
Default value: TRUE
"shrink-width" property"shrink-width" gboolean : Read / Write / Construct
Whether the window should shrink width to fit the contents.
Default value: TRUE
"before-show" signalvoid user_function (GtkSourceCompletionInfo *sourcecompletioninfo, gpointer user_data) : Run Last / Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |