[cluttermm] Initial wrapping of ClutterFixedLayout class.



commit c2fa89c1ace0d6325ff1c4746db30563d472f3eb
Author: Chris Kühl <chrisk openismus com>
Date:   Wed Jan 12 01:17:44 2011 +0100

    Initial wrapping of ClutterFixedLayout class.
    
    * clutter/cluttermm.h: Added header file for new class.
    * clutter/src/clutter_signals.defs: Added properties for new class.
    * clutter/src/filelist.am: Added new classes to files_hg list.
    * clutter/src/fixed-layout.[hg|ccg]: Initial wrapping for
    ClutterFixedLayout.
    * codegen/extradefs/generate_extra_defs_clutter.cc: Added new class.

 ChangeLog                                        |   11 ++++++
 clutter/cluttermm.h                              |    1 +
 clutter/src/filelist.am                          |    1 +
 clutter/src/fixed-layout.ccg                     |   24 +++++++++++++
 clutter/src/fixed-layout.hg                      |   39 ++++++++++++++++++++++
 codegen/extradefs/generate_extra_defs_clutter.cc |    2 +-
 6 files changed, 77 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6b0da72..741bed8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2011-01-12  Chris Kühl  <chrisk openismus com>
 
+	Initial wrapping of ClutterFixedLayout class.
+
+	* clutter/cluttermm.h: Added header file for new class.
+	* clutter/src/clutter_signals.defs: Added properties for new class.
+	* clutter/src/filelist.am: Added new classes to files_hg list.
+	* clutter/src/fixed-layout.[hg|ccg]: Initial wrapping for
+	ClutterFixedLayout.
+	* codegen/extradefs/generate_extra_defs_clutter.cc: Added new class.
+
+2011-01-12  Chris Kühl  <chrisk openismus com>
+
 	Initial wrapping of ClutterBox class.
 
 	* clutter/cluttermm.h: Added header file for new class.
diff --git a/clutter/cluttermm.h b/clutter/cluttermm.h
index 4fd2a9b..0325d92 100644
--- a/clutter/cluttermm.h
+++ b/clutter/cluttermm.h
@@ -72,6 +72,7 @@
 #include <cluttermm/color.h>
 #include <cluttermm/event.h>
 #include <cluttermm/frame-source.h>
+#include <cluttermm/fixed-layout.h>
 #include <cluttermm/group.h>
 #include <cluttermm/init.h>
 #include <cluttermm/interval.h>
diff --git a/clutter/src/filelist.am b/clutter/src/filelist.am
index 6057568..ffd7596 100644
--- a/clutter/src/filelist.am
+++ b/clutter/src/filelist.am
@@ -31,6 +31,7 @@ files_hg =			\
 	color.hg		\
 	container.hg		\
 	effect.hg               \
+	fixed-layout.hg         \
 	group.hg		\
 	interval.hg		\
 	layoutmeta.hg		\
diff --git a/clutter/src/fixed-layout.ccg b/clutter/src/fixed-layout.ccg
new file mode 100644
index 0000000..9200f72
--- /dev/null
+++ b/clutter/src/fixed-layout.ccg
@@ -0,0 +1,24 @@
+/* Copyright (C) 2011 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/fixed-layout.hg b/clutter/src/fixed-layout.hg
new file mode 100644
index 0000000..fc2f0a5
--- /dev/null
+++ b/clutter/src/fixed-layout.hg
@@ -0,0 +1,39 @@
+/* Copyright (C) 2011 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 <cluttermm/layout-manager.h>
+
+_DEFS(cluttermm,clutter)
+_PINCLUDE(cluttermm/private/layout-manager_p.h)
+
+namespace Clutter
+{
+
+class FixedLayout :
+    public LayoutManager
+{
+  _CLASS_GOBJECT(FixedLayout, ClutterFixedLayout, CLUTTER_FIXED_LAYOUT, LayoutManager, ClutterLayoutManager)
+
+protected:
+  _CTOR_DEFAULT()
+
+public:
+  _WRAP_CREATE()
+};
+
+} // namespace Clutter
+
diff --git a/codegen/extradefs/generate_extra_defs_clutter.cc b/codegen/extradefs/generate_extra_defs_clutter.cc
index 9f0205f..ed65fe5 100644
--- a/codegen/extradefs/generate_extra_defs_clutter.cc
+++ b/codegen/extradefs/generate_extra_defs_clutter.cc
@@ -46,7 +46,7 @@ int main(int argc, char** argv)
     << get_defs(CLUTTER_TYPE_CONTAINER)
     << get_defs(CLUTTER_TYPE_EFFECT)
     << get_defs(CLUTTER_TYPE_EVENT)
-//    << get_defs(CLUTTER_TYPE_FIXED)
+    << get_defs(CLUTTER_TYPE_FIXED_LAYOUT)
     << get_defs(CLUTTER_TYPE_GROUP)
     << get_defs(CLUTTER_TYPE_INTERVAL)
 //    << get_defs(CLUTTER_TYPE_HBOX)



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