From 46211a65db186e1af66cfa1e5ebaafddcb8a560c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 9 Aug 2012 16:55:41 +0100 Subject: [PATCH] types: Add INIT_ZERO macro for ActorBox Last type that was missing this macro. --- clutter/clutter-types.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/clutter/clutter-types.h b/clutter/clutter-types.h index 17c1d3a2f..e7ede1452 100644 --- a/clutter/clutter-types.h +++ b/clutter/clutter-types.h @@ -461,6 +461,20 @@ struct _ClutterActorBox */ #define CLUTTER_ACTOR_BOX_INIT(x_1,y_1,x_2,y_2) { (x_1), (y_1), (x_2), (y_2) } +/** + * CLUTTER_ACTOR_BOX_INIT_ZERO: + * + * A simple macro for initializing a #ClutterActorBox to 0 when + * declaring it, e.g.: + * + * |[ + * ClutterActorBox box = CLUTTER_ACTOR_BOX_INIT_ZERO; + * ]| + * + * Since: 1.12 + */ +#define CLUTTER_ACTOR_BOX_INIT_ZERO CLUTTER_ACTOR_BOX_INIT (0.f, 0.f, 0.f, 0.f) + GType clutter_actor_box_get_type (void) G_GNUC_CONST; ClutterActorBox *clutter_actor_box_new (gfloat x_1, gfloat y_1,