Gimp.gradient_segment_set_right_pos
Description: Reference for Gimp.gradient_segment_set_right_pos

### Function

# Gimpgradient_segment_set_right_pos

since: 2.2

#### Declaration [src]

    gboolean
    gimp_gradient_segment_set_right_pos (
      const gchar* name,
      gint segment,
      gdouble pos,
      gdouble* final_pos
    )

#### Description [src]

Sets the right endpoint position of the specified segment

This procedure sets the right endpoint position of the specified segment of the specified gradient. The final position will be between the position of the middle point of the current segment and the middle point of the segment to the right. This procedure returns the final position.

Available since: 2.2

#### Parameters

`name`

  Type: `const gchar*`

  The gradient name.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`segment`

  Type: `gint`

  The index of the segment within the gradient.

`pos`

  Type: `gdouble`

  The position to set the guidepoint to.

`final_pos`

  Type: `gdouble*`

  The return position.

  The argument will be set by the function.

#### Return value

Type: `gboolean`

TRUE on success.