HoverContext

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

Context for populating class@HoverDisplay contents.

GtkSourceHoverContext contains information about the request to populate contents for a class@HoverDisplay.

It can be used to retrieve the class@View, class@Buffer, and struct@Gtk.TextIter for the regions of text which are being displayed.

Use method@HoverContext.get_bounds to get the word that was requested. method@HoverContext.get_iter will get you the location of the pointer when the request was made.

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 gtksourceHoverContextPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun getBounds(begin: <Error class: unknown class>?, end: <Error class: unknown class>?): Boolean

Gets the current word bounds of the hover.

Link copied to clipboard
open fun getBuffer(): Buffer

A convenience function to get the buffer.

Link copied to clipboard
open fun getIter(iter: <Error class: unknown class>): Boolean
Link copied to clipboard
open fun getView(): View