![]() |
![]() |
![]() |
GtkSourceCompletion 2.0 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
GscInfoPrivate; GscInfo; GscInfoClass; GscInfo * gsc_info_new (void
); void gsc_info_move_to_cursor (GscInfo *self
,GtkTextView *view
); void gsc_info_set_markup (GscInfo *self
,const gchar *markup
); void gsc_info_set_adjust_height (GscInfo *self
,gboolean adjust
,gint max_height
); void gsc_info_set_adjust_width (GscInfo *self
,gboolean adjust
,gint max_width
); void gsc_info_set_custom (GscInfo *self
,GtkWidget *custom_widget
); GtkWidget * gsc_info_get_custom (GscInfo *self
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GscInfo
void gsc_info_move_to_cursor (GscInfo *self
,GtkTextView *view
);
Moves the GscInfo to under the view
cursor. If it cannot be shown down,
it will be shown up
|
The GscInfo |
|
The current GtkTextView where we want to show the info |
void gsc_info_set_markup (GscInfo *self
,const gchar *markup
);
Sets the text markup to be shown into the GscInfo window.
|
The GscInfo |
|
Text markup to be shown (see Pango markup format). |
void gsc_info_set_adjust_height (GscInfo *self
,gboolean adjust
,gint max_height
);
TRUE
adjust height to the content. If the content is only a line, the info
will be small and if there are a lot of lines, the info will be large to the
max_height
|
The GscInfo |
|
TRUE to adjust height to content, FALSE to fixed height |
|
if adjust = TRUE, set the max height. -1 to preserve the current value |
void gsc_info_set_adjust_width (GscInfo *self
,gboolean adjust
,gint max_width
);
TRUE
adjust width to the content. If the content is only a line, the info
will be small and if there are a lot of lines, the info will be large to the
max_width
|
The GscInfo |
|
TRUE to adjust width to content, FALSE to fixed width |
|
if adjust = TRUE, set the max height. -1 to preserve the current value |
void gsc_info_set_custom (GscInfo *self
,GtkWidget *custom_widget
);
Replaces the widget packed into the window with custom_widget. By default a box with a GtkScrolledWindow and a GtkLabel is embedded in the window.
"show-info"
signalvoid user_function (GscInfo *info, gpointer user_data) : Run Last / Action
This signal is emited before any "show" management. You can connect to this signal if you want to change some properties or position before to so the real "show".
|
The GscInf who emits the signal |
|
user data set when the signal handler was connected. |