GimpUi.Ruler.new

function new(orientation: Gtk.Orientation): Gtk.Widget {
    // Gjs wrapper for gimp_ruler_new()
}
  

Creates a new ruler.

Since 2.8

orientation

the ruler's orientation.

Returns

a new GimpUi.Ruler widget.