Top | ![]() |
![]() |
![]() |
![]() |
gint | max-height | Read / Write / Construct |
gint | max-width | Read / Write / Construct |
gboolean | shrink-height | Read / Write / Construct |
gboolean | shrink-width | Read / Write / Construct |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkSourceCompletionInfo
This object can be used to show a calltip or help for the .* current completion proposal.
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.
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.
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.
GtkWidget *
gtk_source_completion_info_get_widget (GtkSourceCompletionInfo *info
);
Get the current content widget.
void
gtk_source_completion_info_process_resize
(GtkSourceCompletionInfo *info
);
“max-height”
property “max-height” gint
The maximum allowed height.
Flags: Read / Write / Construct
Allowed values: >= -1
Default value: -1
“max-width”
property “max-width” gint
The maximum allowed width.
Flags: Read / Write / Construct
Allowed values: >= -1
Default value: -1
“shrink-height”
property “shrink-height” gboolean
Whether the window should shrink height to fit the contents.
Flags: Read / Write / Construct
Default value: TRUE
“before-show”
signalvoid user_function (GtkSourceCompletionInfo *sourcecompletioninfo, gpointer user_data)
Flags: Action