gnomemm r1294 - in cluttermm/trunk: . clutter/cluttermm clutter/cluttermm/private clutter/src
- From: jjongsma svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1294 - in cluttermm/trunk: . clutter/cluttermm clutter/cluttermm/private clutter/src
- Date: Mon, 21 Jan 2008 03:51:22 +0000 (GMT)
Author: jjongsma
Date: Mon Jan 21 03:51:22 2008
New Revision: 1294
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1294&view=rev
Log:
* clutter/src/Makefile_list_of_hg.am_fragment:
* clutter/src/clutter_vfuncs.defs:
* clutter/src/scriptable.ccg:
* clutter/src/scriptable.hg: add new Scriptable Interface
Added:
cluttermm/trunk/clutter/src/scriptable.ccg
cluttermm/trunk/clutter/src/scriptable.hg
Modified:
cluttermm/trunk/ChangeLog
cluttermm/trunk/clutter/cluttermm/ (props changed)
cluttermm/trunk/clutter/cluttermm/private/ (props changed)
cluttermm/trunk/clutter/src/Makefile_list_of_hg.am_fragment
cluttermm/trunk/clutter/src/clutter_vfuncs.defs
Modified: cluttermm/trunk/clutter/src/Makefile_list_of_hg.am_fragment
==============================================================================
--- cluttermm/trunk/clutter/src/Makefile_list_of_hg.am_fragment (original)
+++ cluttermm/trunk/clutter/src/Makefile_list_of_hg.am_fragment Mon Jan 21 03:51:22 2008
@@ -27,5 +27,6 @@
behaviour-scale.hg \
score.hg \
shader.hg \
-script.hg
+script.hg \
+scriptable.hg
#layout.hg box.hg margin.hg
Modified: cluttermm/trunk/clutter/src/clutter_vfuncs.defs
==============================================================================
--- cluttermm/trunk/clutter/src/clutter_vfuncs.defs (original)
+++ cluttermm/trunk/clutter/src/clutter_vfuncs.defs Mon Jan 21 03:51:22 2008
@@ -201,3 +201,39 @@
)
)
+; ClutterScriptable
+
+(define-vfunc set_id
+ (of-object "ClutterScriptable")
+ (return-type "void")
+ (parameters
+ '("const-gchar*" "name")
+ )
+)
+
+(define-vfunc get_id
+ (of-object "ClutterScriptable")
+ (return-type "const-gchar*")
+)
+
+(define-vfunc parse_custom_node
+ (of-object "ClutterScriptable")
+ (return-type "gboolean")
+ (parameters
+ '("ClutterScript*" "script")
+ '("GValue*" "value")
+ '("const-gchar*" "name")
+ '("JSonNode*" "node")
+ )
+)
+
+(define-vfunc set_custom_property
+ (of-object "ClutterScriptable")
+ (return-type "void")
+ (parameters
+ '("ClutterScript*" "script")
+ '("const-gchar*" "name")
+ '("GValue*" "value")
+ )
+)
+
Added: cluttermm/trunk/clutter/src/scriptable.ccg
==============================================================================
--- (empty file)
+++ cluttermm/trunk/clutter/src/scriptable.ccg Mon Jan 21 03:51:22 2008
@@ -0,0 +1,24 @@
+/* Copyright (C) 2007 The cluttermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library 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-scriptable.h>
+
+
+namespace Clutter
+{
+} //namespace Clutter
+
Added: cluttermm/trunk/clutter/src/scriptable.hg
==============================================================================
--- (empty file)
+++ cluttermm/trunk/clutter/src/scriptable.hg Mon Jan 21 03:51:22 2008
@@ -0,0 +1,51 @@
+/* Copyright (C) 2007 The cluttermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <cluttermm/actor.h>
+#include <glibmm/interface.h>
+#include <glibmm/ustring.h>
+#include <clutter/clutter-scriptable.h>
+
+_DEFS(cluttermm,clutter)
+_PINCLUDE(glibmm/private/interface_p.h)
+
+
+namespace Clutter
+{
+
+class Scriptable : public Glib::Interface
+{
+ _CLASS_INTERFACE(Scriptable, ClutterScriptable, CLUTTER_SCRIPTABLE, ClutterScriptableIface)
+
+public:
+ _WRAP_METHOD(void set_id(const std::string& id), clutter_scriptable_set_id)
+ _WRAP_METHOD(std::string get_id() const, clutter_scriptable_get_id)
+ _WRAP_SIGNAL(void actor_added(const Glib::RefPtr<Actor>& actor), "actor_added")
+ _WRAP_SIGNAL(void actor_removed(const Glib::RefPtr<Actor>& actor), "actor_removed")
+ // TODO: parse_custom_node, set_custom_property
+
+protected:
+
+ _WRAP_VFUNC(void set_id(const std::string& id), set_id)
+ // TODO: 'No conversion from std::string to const gchar* defined' - why does
+ // it work above?
+ //_WRAP_VFUNC(std::string get_id(), get_id)
+ // TODO: parse_custom_node, set_custom_property vfuncs
+};
+
+} // namespace Clutter
+//vim: ts=2,sw=2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]