Interface
PhocAnimatable
since: 0
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.
Available since: 0
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.
since: 0
Interface structure
struct PhocAnimatableInterface {
GTypeInterface parent_iface;
guint (* add_frame_callback) (
PhocAnimatable* self,
PhocFrameCallback callback,
gpointer user_data,
GDestroyNotify notify
);
void (* remove_frame_callback) (
PhocAnimatable* self,
guint id
);
}
Interface members
parent_iface |
|
No description available. | |
add_frame_callback |
|
No description available. | |
remove_frame_callback |
|
No description available. |
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.
since: 0