<?xml version="1.0"?>
<page id="Gimp.Item.transform_rotate_simple"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Item" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gimp.Item</api:type>
      </api:returns>
      <api:name>gimp_item_transform_rotate_simple</api:name>
      <api:arg>
        <api:type>Gimp.RotationType</api:type>
        <api:name>rotate_type</api:name>
      </api:arg>
      <api:arg>
        <api:type>Boolean</api:type>
        <api:name>auto_center</api:name>
      </api:arg>
      <api:arg>
        <api:type>Number(gdouble)</api:type>
        <api:name>center_x</api:name>
      </api:arg>
      <api:arg>
        <api:type>Number(gdouble)</api:type>
        <api:name>center_y</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Item.prototype.transform_rotate_simple</title>
  <synopsis><code mime="text/x-gjs">
function transform_rotate_simple(rotate_type: <link xref="Gimp.RotationType">Gimp.RotationType</link>, auto_center: Boolean, center_x: Number(gdouble), center_y: Number(gdouble)): <link xref="Gimp.Item">Gimp.Item</link> {
    // Gjs wrapper for gimp_item_transform_rotate_simple()
}
  </code></synopsis>
  <p>Rotate the specified item about given coordinates through the
specified angle.</p>  <p>This function rotates the specified item.</p>  <p>If a selection exists and the item is a drawable, the portion of the
drawable which lies under the selection is cut from the drawable and
made into a floating selection which is then rotated by the
specified amount. If auto_center is set to TRUE, the rotation is
around the selection's center. Otherwise, the coordinate of the
center point needs to be specified. The return value is the ID of
the rotated floating selection.</p>  <p>If there is no selection or the item is not a drawable, the entire
item will be rotated around its center if auto_center is set to
TRUE, otherwise the coordinate of the center point needs to be
specified.
The return value will be equal to the item ID supplied as input.</p>  <p>This procedure is affected by the following context setters:
<link xref="Gimp.context_set_transform_resize"/>.</p>
  <p>Since 2.8</p>
<terms>
<item>
<title><code>rotate_type</code></title>
  <p>Type of rotation.</p>
</item>
<item>
<title><code>auto_center</code></title>
  <p>Whether to automatically rotate around the selection center.</p>
</item>
<item>
<title><code>center_x</code></title>
  <p>The hor. coordinate of the center of rotation.</p>
</item>
<item>
<title><code>center_y</code></title>
  <p>The vert. coordinate of the center of rotation.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>The rotated item.</p>
</item>
</terms>

</page>
