Method

GimpGradientsegment_get_blending_function

Declaration [src]

gboolean
gimp_gradient_segment_get_blending_function (
  GimpGradient* gradient,
  gint segment,
  GimpGradientSegmentType* blend_func
)

Description [src]

Gets the gradient segment’s blending function

Gets the blending function of the segment at the index. Returns an error when the segment index is out of range.

Available since:2.2

Parameters

segment gint
 

The index of a segment within the gradient.

blend_func GimpGradientSegmentType
 

The blending function of the segment.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: gboolean
 

TRUE on success.