Gtk.Tooltip.prototype.set_tip_area

function set_tip_area(rect:Gdk.Rectangle):void {
    // Gjs wrapper for gtk_tooltip_set_tip_area()
}

Sets the area of the widget, where the contents of this tooltip apply, to be rect (in widget coordinates). This is especially useful for properly setting tooltips on Gtk.TreeView rows and cells, #GtkIconViews, etc.

For setting tooltips on Gtk.TreeView, please refer to the convenience functions for this: Gtk.set_tooltip_row and Gtk.set_tooltip_cell.

Since 2.12

rect

a Gdk.Rectangle