Constructor
AdapSpringAnimationnew
Declaration [src]
AdapAnimation*
adap_spring_animation_new (
GtkWidget* widget,
double from,
double to,
AdapSpringParams* spring_params,
AdapAnimationTarget* target
)
Description [src]
Creates a new AdapSpringAnimation on widget.
The animation will animate target from from to to with the dynamics of a
spring described by spring_params.
Parameters
widget-
Type:
GtkWidgetA widget to create animation on.
The data is owned by the caller of the function. from-
Type:
doubleA value to animate from.
to-
Type:
doubleA value to animate to.
spring_params-
Type:
AdapSpringParamsPhysical parameters of the spring.
The called function takes ownership of the data, and is responsible for freeing it. target-
Type:
AdapAnimationTargetA target value to animate.
The called function takes ownership of the data, and is responsible for freeing it.
Return value
Type: AdapAnimation
The newly created animation.
| The data is owned by the called function. |