Adw.SpringAnimation.set_clamp

### Method

# Adw SpringAnimationset_clamp

since: 1.0

#### Declaration [src]

    void
    adw_spring_animation_set_clamp (
      AdwSpringAnimation* self,
      gboolean clamp
    )

#### Description [src]

Sets whether `self` should be clamped.

If set to `TRUE`, the animation will abruptly end as soon as it reaches the final value, preventing overshooting.

It won’t prevent overshooting `AdwSpringAnimation:value-from` if a relative negative `AdwSpringAnimation:initial-velocity` is set.

Available since: 1.0

Sets property | `Adw.SpringAnimation:clamp`

#### Parameters

`clamp`

  Type: `gboolean`

  The new value.