[cluttermm] PropertyTransition class added.



commit f0e7c502a483da1e1877559514d48508b9c0f6d1
Author: Ian Martin <martin_id vodafone co nz>
Date:   Thu Mar 27 14:34:22 2014 +1300

    PropertyTransition class added.
    
    Adds the class and alters the build to include it.

 clutter/cluttermm.h                              |    1 +
 clutter/src/filelist.am                          |    1 +
 clutter/src/property-transition.ccg              |   23 ++++++++++
 clutter/src/property-transition.hg               |   52 ++++++++++++++++++++++
 codegen/extradefs/generate_extra_defs_clutter.cc |    1 +
 5 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/clutter/cluttermm.h b/clutter/cluttermm.h
index fd8cafd..33b7e43 100644
--- a/clutter/cluttermm.h
+++ b/clutter/cluttermm.h
@@ -99,6 +99,7 @@
 #include <cluttermm/offscreen-effect.h>
 #include <cluttermm/page-turn-effect.h>
 #include <cluttermm/path.h>
+#include <cluttermm/property-transition.h>
 #include <cluttermm/rectangle.h>
 #include <cluttermm/score.h>
 #include <cluttermm/script.h>
diff --git a/clutter/src/filelist.am b/clutter/src/filelist.am
index af7c549..7944d49 100644
--- a/clutter/src/filelist.am
+++ b/clutter/src/filelist.am
@@ -55,6 +55,7 @@ files_hg =                    \
        offscreen-effect.hg \
        page-turn-effect.hg \
        path.hg                 \
+       property-transition.hg  \
        rectangle.hg            \
        score.hg                \
        script.hg               \
diff --git a/clutter/src/property-transition.ccg b/clutter/src/property-transition.ccg
new file mode 100644
index 0000000..66c2098
--- /dev/null
+++ b/clutter/src/property-transition.ccg
@@ -0,0 +1,23 @@
+/* Copyright (C) 2014 The cluttermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <clutter/clutter.h>
+
+namespace Clutter
+{
+
+} //namespace Clutter
diff --git a/clutter/src/property-transition.hg b/clutter/src/property-transition.hg
new file mode 100644
index 0000000..cbee8ec
--- /dev/null
+++ b/clutter/src/property-transition.hg
@@ -0,0 +1,52 @@
+/* Copyright (C) 2014 The cluttermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <glibmm/object.h>
+#include <glibmm/ustring.h>
+#include <cluttermm/transition.h>
+#include <cluttermm/scriptable.h>
+
+_DEFS(cluttermm,clutter)
+_PINCLUDE(glibmm/private/object_p.h)
+_PINCLUDE(cluttermm/private/transition_p.h)
+
+namespace Clutter
+{
+
+class PropertyTransition : public Transition, public Scriptable
+{
+  _CLASS_GOBJECT(PropertyTransition, ClutterPropertyTransition, CLUTTER_PROPERTY_TRANSITION, Transition, 
ClutterTransition)
+  _IMPLEMENTS_INTERFACE(Scriptable)
+
+protected:
+
+  _WRAP_CTOR(PropertyTransition(const Glib::ustring& property_name), clutter_property_transition_new)
+
+public:
+  /** Creates a new PropertyTransition.
+   * The property name must be an animatable property of Actor.
+   */
+  _WRAP_CREATE(const Glib::ustring& property_name)
+
+  _WRAP_METHOD(void set_property_name(const Glib::ustring& property_name), 
clutter_property_transition_set_property_name)
+  _WRAP_METHOD(Glib::ustring get_property_name() const, clutter_property_transition_get_property_name)
+
+
+  _WRAP_PROPERTY("property-name", Glib::ustring)
+};
+
+} // namespace Clutter
diff --git a/codegen/extradefs/generate_extra_defs_clutter.cc 
b/codegen/extradefs/generate_extra_defs_clutter.cc
index e63f615..02343cc 100644
--- a/codegen/extradefs/generate_extra_defs_clutter.cc
+++ b/codegen/extradefs/generate_extra_defs_clutter.cc
@@ -62,6 +62,7 @@ int main(int argc, char** argv)
     << get_defs(CLUTTER_TYPE_LAYOUT_META)
     << get_defs(CLUTTER_TYPE_MEDIA)
     << get_defs(CLUTTER_TYPE_PATH)
+    << get_defs(CLUTTER_TYPE_PROPERTY_TRANSITION)
     << get_defs(CLUTTER_TYPE_RECTANGLE)
     << get_defs(CLUTTER_TYPE_SCORE)
     << get_defs(CLUTTER_TYPE_SCRIPT)


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