GtkSourceHover

GtkSourceHover — Interactive tooltips

Functions

Properties

guint hover-delay Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GtkSourceHover

Includes

#include <gtksourceview/gtksource.h>

Description

GtkSourceHover allows a GtkSourceView to provide contextual information. When enabled, if the user hovers over a word in the text editor, a series of registered GtkSourceHoverProvider can populate a GtkSourceHoverDisplay with useful information.

To enable call gtk_source_view_get_hover() and add GtkSourceHoverProvider using gtk_source_hover_add_provider(). To disable, remove all registered providers with gtk_source_hover_remove_provider().

You can change how long to wait to display the interactive tooltip by setting the “hover-delay” property in milliseconds.

Functions

gtk_source_hover_add_provider ()

void
gtk_source_hover_add_provider (GtkSourceHover *self,
                               GtkSourceHoverProvider *provider);

gtk_source_hover_remove_provider ()

void
gtk_source_hover_remove_provider (GtkSourceHover *self,
                                  GtkSourceHoverProvider *provider);

Types and Values

GtkSourceHover

typedef struct _GtkSourceHover GtkSourceHover;

Property Details

The “hover-delay” property

  “hover-delay”              guint

The "hover-delay" property contains the number of milliseconds to delay before showing the hover assistant.

Owner: GtkSourceHover

Flags: Read / Write

Allowed values: [1,5000]

Default value: 500

See Also

GtkSourceHoverProvider, GtkSourceHoverDisplay, and GtkSourceHoverContext.