GimpUi.Ruler.prototype.add_track_widget

function add_track_widget(widget: Gtk.Widget): void {
    // Gjs wrapper for gimp_ruler_add_track_widget()
}
  

Adds a "track widget" to the ruler. The ruler will connect to GtkWidget:motion-notify-event: on the track widget and update its position marker accordingly. The marker is correctly updated also for the track widget's children, regardless of whether they are ordinary children of off-screen children.

Since 2.8

widget

the track widget to add