gtksource.hover_context
Module for [HoverContext] class
Types 3
Context for populating class@HoverDisplay contents.
[gtksource.hover_context.HoverContext] contains information about the request to populate contents for a class@HoverDisplay.
It can be used to retrieve the class@View, class@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
HoverContext self()Returns `this`, for use in `with` statements.HoverContextGidBuilder builder()Get builder for [gtksource.hover_context.HoverContext] Returns: New builder objectbool getBounds(out gtk.text_iter.TextIter begin, out gtk.text_iter.TextIter end)Gets the current word bounds of the hover.gtksource.buffer.Buffer getBuffer()A convenience function to get the buffer. Returns: The #GtkSourceBuffer for the viewbool getIter(gtk.text_iter.TextIter iter)Fluent builder for [gtksource.hover_context.HoverContext]
Methods