[clutter] types: Add INIT_ZERO macro for ActorBox



commit 46211a65db186e1af66cfa1e5ebaafddcb8a560c
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Aug 9 16:55:41 2012 +0100

    types: Add INIT_ZERO macro for ActorBox
    
    Last type that was missing this macro.

 clutter/clutter-types.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-types.h b/clutter/clutter-types.h
index 17c1d3a..e7ede14 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]