| Top |
GtkSourceHoverContextGtkSourceHoverContext — Context for populating GtkSourceHoverDisplay contents |
GtkSourceHoverContext contains information about the request to populate contents for a GtkSourceHoverDisplay.
It can be used to retrieve the GtkSourceView, GtkSourceBuffer, and GtkTextIter for the regions of text which are being displayed.
Use gtk_source_hover_context_get_bounds() to get the word that was
requested. gtk_source_hover_contents_get_iter() will get you the location
of the pointer when the request was made.
gboolean gtk_source_hover_context_get_bounds (GtkSourceHoverContext *self,GtkTextIter *begin,GtkTextIter *end);
GtkSourceBuffer *
gtk_source_hover_context_get_buffer (GtkSourceHoverContext *self);
A convenience function to get the buffer.
gboolean gtk_source_hover_context_get_iter (GtkSourceHoverContext *self,GtkTextIter *iter);
GtkSourceView *
gtk_source_hover_context_get_view (GtkSourceHoverContext *self);