Function

Gimpgradient_segment_range_split_midpoint

since: 2.2

Declaration [src]

gboolean
gimp_gradient_segment_range_split_midpoint (
  const gchar* name,
  gint start_segment,
  gint end_segment
)

Description [src]

Splits each segment in the segment range at midpoint

This function splits each segment in the segment range at its midpoint.

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.
start_segment

Type: gint

The index of the first segment to operate on.

end_segment

Type: gint

The index of the last segment to operate on. If negative, the selection will extend to the end of the string.

Return value

Type: gboolean

TRUE on success.