Skip to content
  • Emmanuele Bassi's avatar
    animatable: Allow passing a NULL animation · c23b2839
    Emmanuele Bassi authored
    The Animatable interface was created specifically for the Animation
    class. It turns out that it might be fairly useful to others - such as
    ClutterAnimator and ClutterState.
    
    The newly-added API in this cycle for querying and accessing custom
    properties should not require that we pass a ClutterAnimation to the
    implementations: the Animatable itself should be enough.
    
    This is necessary to allow language bindings to wrap
    clutter_actor_animate() correctly and do type validation and
    demarshalling between native values and GValues; an Animation instance
    is not available until the animate() call returns, and validation must
    be performed before that happens.
    
    There is nothing we can do about the animate_property() virtual
    function - but in that case we might want to be able to access the
    animation from an Animatable implementation to get the Interval for
    the property, just like ClutterActor does in order to animate
    ClutterActorMeta objects.
    c23b2839