Method

GimpGradientsegment_set_left_pos

Declaration [src]

gboolean
gimp_gradient_segment_set_left_pos (
  GimpGradient* gradient,
  gint segment,
  gdouble pos,
  gdouble* final_pos
)

Description [src]

Sets the left endpoint position of the segment

Sets the position of the left endpoint of the segment of the gradient. The final position will be the given fraction from the midpoint to the left to the midpoint of the current segment. Returns the final position. Returns an error when gradient is not editable or segment index is out of range.

Available since:2.2

Parameters

segment gint
 

The index of a segment within the gradient.

pos gdouble
 

The position to set the guidepoint to.

final_pos gdouble*
 

The return position.

 The argument will be set by the function.

Return value

Returns: gboolean
 

TRUE on success.