GtkSourceCompletionInfo

GtkSourceCompletionInfo — Calltips object

Functions

Properties

gint max-height Read / Write / Construct
gint max-width Read / Write / Construct
gboolean shrink-height Read / Write / Construct
gboolean shrink-width Read / Write / Construct

Signals

void before-show Action

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBin
                        ╰── GtkWindow
                            ╰── GtkSourceCompletionInfo

Implemented Interfaces

GtkSourceCompletionInfo implements AtkImplementorIface and GtkBuildable.

Includes

#include <gtksourceview/gtksourcecompletioninfo.h>

Description

This object can be used to show a calltip or help for the .* current completion proposal.

Functions

gtk_source_completion_info_new ()

GtkSourceCompletionInfo *
gtk_source_completion_info_new (void);

Returns

The new GtkSourceCompletionInfo.


gtk_source_completion_info_move_to_iter ()

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.

Parameters

info

A GtkSourceCompletionInfo

 

view

A GtkTextView on which the info window should be positioned

 

iter

A GtkTextIter

 

gtk_source_completion_info_set_sizing ()

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.

Parameters

info

A GtkSourceCompletionInfo

 

width

The maximum/requested width of the window (-1 to default)

 

height

The maximum/requested height of the window (-1 to default)

 

shrink_width

Whether to shrink the width of the window to fit its contents

 

shrink_height

Whether to shrink the height of the window to fit its contents

 

gtk_source_completion_info_set_widget ()

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.

Parameters

info

A GtkSourceCompletionInfo

 

widget

A GtkWidget

 

gtk_source_completion_info_get_widget ()

GtkWidget *
gtk_source_completion_info_get_widget (GtkSourceCompletionInfo *info);

Get the current content widget.

Parameters

Returns

The current content widget.


gtk_source_completion_info_process_resize ()

void
gtk_source_completion_info_process_resize
                               (GtkSourceCompletionInfo *info);

Types and Values

struct GtkSourceCompletionInfo

struct GtkSourceCompletionInfo;

Property Details

The “max-height” property

  “max-height”               gint

The maximum allowed height.

Flags: Read / Write / Construct

Allowed values: >= -1

Default value: -1


The “max-width” property

  “max-width”                gint

The maximum allowed width.

Flags: Read / Write / Construct

Allowed values: >= -1

Default value: -1


The “shrink-height” property

  “shrink-height”            gboolean

Whether the window should shrink height to fit the contents.

Flags: Read / Write / Construct

Default value: TRUE


The “shrink-width” property

  “shrink-width”             gboolean

Whether the window should shrink width to fit the contents.

Flags: Read / Write / Construct

Default value: TRUE

Signal Details

The “before-show” signal

void
user_function (GtkSourceCompletionInfo *sourcecompletioninfo,
               gpointer                 user_data)

Flags: Action