<?xml version="1.0"?>
<page id="Gimp.Gradient.segment_set_right_pos"
      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.Gradient" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Boolean</api:type>
      </api:returns>
      <api:name>gimp_gradient_segment_set_right_pos</api:name>
      <api:arg>
        <api:type>Number(gint)</api:type>
        <api:name>segment</api:name>
      </api:arg>
      <api:arg>
        <api:type>Number(gdouble)</api:type>
        <api:name>pos</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Gradient.prototype.segment_set_right_pos</title>
  <synopsis><code mime="text/x-gjs">
function segment_set_right_pos(segment: Number(gint), pos: Number(gdouble)): [ok: Boolean, final_pos: Number(gdouble)] {
    // Gjs wrapper for gimp_gradient_segment_set_right_pos()
}
  </code></synopsis>
  <p>Sets the right endpoint position of the segment</p>  <p>Sets the right endpoint position of the segment of the gradient. The
final position will be the given fraction from the midpoint of the
current segment to the midpoint of the segment to the right.
Returns the final position. Returns an error when gradient is not
editable or segment index is out of range.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>segment</code></title>
  <p>The index of a segment within the gradient.</p>
</item>
<item>
<title><code>pos</code></title>
  <p>The position to set the right endpoint to.</p>
</item>
<item>
<title><code>ok</code></title>
  <p>TRUE on success.</p>
</item>
<item>
<title><code>final_pos</code></title>
  <p>The return position.</p>
</item>
</terms>

</page>
