Constructor

AdapCallbackAnimationTargetnew

Declaration [src]

AdapAnimationTarget*
adap_callback_animation_target_new (
  AdapAnimationTargetFunc callback,
  gpointer user_data,
  GDestroyNotify destroy
)

Description [src]

Creates a new AdapAnimationTarget that calls the given callback during the animation.

Parameters

callback

Type: AdapAnimationTargetFunc

The callback to call.

user_data

Type: gpointer

The data to be passed to callback.

The argument can be NULL.
The data is owned by the caller of the function.
destroy

Type: GDestroyNotify

The function to be called when the callback action is finalized.

Return value

Type: AdapAnimationTarget

The newly created callback target.

The caller of the function takes ownership of the data, and is responsible for freeing it.