VisuAnimation

VisuAnimation — Defines a class to setup animation of a property.

Functions

Properties

Types and Values

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuAnimation

Description

Use this object to animate smoothly a change between to values ofg a given object property.

Functions

visu_animation_new ()

VisuAnimation *
visu_animation_new (GObject *obj,
                    const gchar *property);

Create an animation for property of obj .

Parameters

obj

a GObject object.

[transfer none]

property

a property name.

 

Returns

a new VisuAnimation object.

[transfer full]

Since: 3.8


visu_animation_start ()

gboolean
visu_animation_start (VisuAnimation *anim,
                      const GValue *to,
                      gulong tick,
                      gulong duration,
                      gboolean loop,
                      VisuAnimationType type);

Starts anim , to go to the value to from its current value following type evolution. tick is the current clock time and the animation is scheduled to last for duration . If loop is true, when the animation reaches to it restarts again from the initial value. Use visu_animation_abort() to stop it.

Parameters

anim

a VisuAnimation object.

 

to

a final value.

 

tick

the current clock time.

 

duration

a duration in micro-seconds.

 

loop

a boolean.

 

type

a type.

 

Returns

TRUE if the animation is actually started.

Since: 3.8


visu_animation_animate ()

gboolean
visu_animation_animate (VisuAnimation *anim,
                        gulong tick);

Update the property animated by anim to the value it should take at tick .

Parameters

anim

a VisuAnimation object.

 

tick

a time clock.

 

Returns

TRUE if the animation is finished.

Since: 3.8


visu_animation_isRunning ()

gboolean
visu_animation_isRunning (const VisuAnimation *anim);

Inquires if anim is currently running.

Parameters

anim

a VisuAnimation object.

 

Returns

TRUE if anim is running.

Since: 3.8


visu_animation_getFrom ()

void
visu_animation_getFrom (const VisuAnimation *anim,
                        GValue *from);

Retrieves the initial value of anim . The animation should be running for this value to be defined.

Parameters

anim

a VisuAnimation object.

 

from

a location to store the initial value of anim .

[out caller-allocates]

Since: 3.8


visu_animation_getTo ()

void
visu_animation_getTo (const VisuAnimation *anim,
                      GValue *to);

Retrieves the final value of anim . The animation should be running for this value to be defined.

Parameters

anim

a VisuAnimation object.

 

to

a location to store the final value of anim .

[out caller-allocates]

Since: 3.8


visu_animation_abort ()

void
visu_animation_abort (VisuAnimation *anim);

Stop the current animation.

Parameters

anim

a VisuAnimation object.

 

Since: 3.8

Types and Values

struct VisuAnimation

struct VisuAnimation;

Common name to refer to a _VisuAnimation.


struct VisuAnimationClass

struct VisuAnimationClass {
  VisuObjectClass parent;
};

Common name to refer to a _VisuAnimationClass.

Members

VisuObjectClass parent;

private.

 

Property Details

The “running” property

  “running”                  gboolean

animation is running.

Flags: Read

Default value: FALSE