# Gimp.gradient_segment_range_move

    function gradient_segment_range_move(name: String, start_segment: Number(gint), end_segment: Number(gint), delta: Number(gdouble), control_compress: Boolean): Number(gdouble) {
        // Gjs wrapper for gimp_gradient_segment_range_move()
    }

Move the position of an entire segment range by a delta.

This function moves the position of an entire segment range by a delta. The actual delta (which is returned) will be limited by the control points of the neighboring segments.

Since 2.2

name

  The gradient name.

start_segment

  The index of the first segment to operate on.

end_segment

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

delta

  The delta to move the segment range.

control_compress

  Whether or not to compress the neighboring segments.

Returns

  The final delta by which the range moved.