actor: Make Actor instantiatable

ClutterActor now has all the API and capabilities for being a concrete
class:

  - layout management, through delegation
  - container implementation and API
  - background color

This means that a simple scene can be built straight out of actors
without using subclasses except for the Stage.

This is the first step towards the deprecation of most of the Actor
subclasses provided by Clutter.
This commit is contained in:
Emmanuele Bassi
2011-12-06 16:09:53 +00:00
committed by Emmanuele Bassi
parent 8caee3e97e
commit 7fd35edd3f
3 changed files with 48 additions and 20 deletions

View File

@ -261,7 +261,9 @@ struct _ClutterActorClass
gpointer _padding_dummy[28];
};
GType clutter_actor_get_type (void) G_GNUC_CONST;
GType clutter_actor_get_type (void) G_GNUC_CONST;
ClutterActor * clutter_actor_new (void);
void clutter_actor_set_flags (ClutterActor *self,
ClutterActorFlags flags);