Move default paint volume computation into a function

This should reduce the amount of copy and paste for actor sub-classes
that use the default paint volume from the allocation.
This commit is contained in:
Emmanuele Bassi
2010-09-09 12:30:29 +01:00
committed by Robert Bragg
parent fd41024d29
commit 16f7ee13f2
5 changed files with 62 additions and 60 deletions

View File

@ -530,6 +530,10 @@ void _clutter_util_fully_transform_vertices (const CoglMatrix *mo
ClutterVertex *vertices_out,
int n_vertices);
gboolean _clutter_actor_set_default_paint_volume (ClutterActor *self,
GType check_gtype,
ClutterPaintVolume *volume);
G_END_DECLS
#endif /* _HAVE_CLUTTER_PRIVATE_H */