Phoc.Animatable
Description: Reference for Phoc.Animatable

### 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 from`GObject`.

#### Implementations

- PhocLayerSurface
- PhocOutput
- PhocOutputShield

#### 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

    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
      );

    }

No description available.

###### Interface members

`parent_iface` |
    GTypeInterface
| No description available.
`add_frame_callback` |
    guint (* add_frame_callback) (
        PhocAnimatable* self,
        PhocFrameCallback callback,
        gpointer user_data,
        GDestroyNotify notify
      )
| No description available.
`remove_frame_callback` |
    void (* remove_frame_callback) (
        PhocAnimatable* self,
        guint id
      )
| 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.

###### Phoc.Animatable.remove_frame_callback

No description available.