gtksource.hover_context

Module for [HoverContext] class

Types 3

Context for populating gtksource.hover_display.HoverDisplay contents.

gtksource.hover_context.HoverContext contains information about the request to populate contents for a gtksource.hover_display.HoverDisplay.

It can be used to retrieve the gtksource.view.View, gtksource.buffer.Buffer, and gtk.text_iter.TextIter for the regions of text which are being displayed.

Use gtksource.hover_context.HoverContext.getBounds to get the word that was requested. gtksource.hover_context.HoverContext.getIter will get you the location of the pointer when the request was made.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
HoverContext self() nothrowReturns `this`, for use in `with` statements.
HoverContextGidBuilder builder() static nothrowGet builder for [gtksource.hover_context.HoverContext] Returns: New builder object
bool getBounds(out gtk.text_iter.TextIter begin, out gtk.text_iter.TextIter end) nothrowGets the current word bounds of the hover.
gtksource.buffer.Buffer getBuffer() nothrowA convenience function to get the buffer. Returns: The #GtkSourceBuffer for the view
bool getIter(gtk.text_iter.TextIter iter) nothrow
Constructors
this(void * ptr, Flag!"Take" take)
Methods
HoverContext build() nothrowCreate object from builder. Returns: New object