Interface

PhocAnimatable

[]

Description [src]

interface Phoc.Animatable : GObject.Object

Something that can be animated.

Objects implementing this interface attach to a frame callback source (usually a PhocOutput and are invoked until the callback is removed.

While often the PhocAnimatable is the object being animated that’s not required. The PhocAnimatable can also e.g. drive a PhocTimedAnimation on a different object.

[]

Prerequisite

In order to implement Animatable, your type must inherit fromGObject.

[]

Instance methods

phoc_animatable_add_frame_callback

Adds a callback to be called before each frame. Until the frame callback is removed, it will be at the frame rate of the output. The frame callback does not automatically imply any repaint. You need to damage the areas you want repainted.

phoc_animatable_remove_frame_callback
No description available.

Interface structure

[]

Virtual methods

Phoc.Animatable.add_frame_callback

Adds a callback to be called before each frame. Until the frame callback is removed, it will be at the frame rate of the output. The frame callback does not automatically imply any repaint. You need to damage the areas you want repainted.

Phoc.Animatable.remove_frame_callback
No description available.