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
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 implementation template for gtksource.hover_context.HoverContext
Fluent builder for gtksource.hover_context.HoverContext
Methods
HoverContext build()Create object from builder. Returns: New object