<?xml version="1.0"?>
<page id="GimpUi.Ruler.new"
      type="topic"
      style="constructor"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="GimpUi.Ruler" group="constructor" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_ruler_new</api:name>
      <api:arg>
        <api:type>Gtk.Orientation</api:type>
        <api:name>orientation</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.Ruler.new</title>
  <synopsis><code mime="text/x-gjs">
function new(orientation: <link href="../Gtk-3.0/Gtk.Orientation.html">Gtk.Orientation</link>): <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> {
    // Gjs wrapper for gimp_ruler_new()
}
  </code></synopsis>
  <p>Creates a new ruler.</p>
  <p>Since 2.8</p>
<terms>
<item>
<title><code>orientation</code></title>
  <p>the ruler's orientation.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>a new <link xref="GimpUi.Ruler"/> widget.</p>
</item>
</terms>

</page>
