Class: GtkSource::HoverContext

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#bufferGtkSource::Buffer

A convenience function to get the buffer.

Returns:

#get_bounds(begin, end) ⇒ Boolean

Gets the current word bounds of the hover.

If begin is non-nil, it will be set to the start position of the current word being hovered.

If end is non-nil, it will be set to the end position for the current word being hovered.

Parameters:

  • begin (Gtk::TextIter)

    a Gtk::TextIter

  • end (Gtk::TextIter)

    a Gtk::TextIter

Returns:

  • (Boolean)

    true if the marks are still valid and begin or end was set.

#get_iter(iter) ⇒ Boolean

Parameters:

  • iter (Gtk::TextIter)

Returns:

  • (Boolean)

#viewGtkSource::View

Returns the Gtk::SourceView that owns the context.

Returns: