Hover

open class Hover(pointer: <Error class: unknown class><<Error class: unknown class>>)

Interactive tooltips.

GtkSourceHover allows a class@View to provide contextual information. When enabled, if the user hovers over a word in the text editor, a series of registered iface@HoverProvider can populate a class@HoverDisplay with useful information.

To enable call method@View.get_hover and add iface@HoverProvider using method@Hover.add_provider. To disable, remove all registered providers with method@Hover.remove_provider.

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

Skipped during bindings generation

  • method hover-delay: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtksourceHoverPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun addProvider(provider: HoverProvider)
Link copied to clipboard
open fun removeProvider(provider: HoverProvider)