gnomemm r1509 - in geglmm/trunk: libgegl/src tools/m4



Author: hub
Date: Mon May 19 23:36:13 2008
New Revision: 1509
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1509&view=rev

Log:
	* libgegl/src/operation.{ccg,hg}, libgegl/src/nodecontext.{ccg,hg},
	libgegl/src/Makefile_list_of_hg.am_fragment, 
	libgegl/src/buffer.ccg, tools/m4/convert_libgeglmm.m4: More wrapped
	classes.


Added:
   geglmm/trunk/libgegl/src/nodecontext.ccg
   geglmm/trunk/libgegl/src/nodecontext.hg
   geglmm/trunk/libgegl/src/operation.ccg
   geglmm/trunk/libgegl/src/operation.hg
Modified:
   geglmm/trunk/libgegl/src/Makefile_list_of_hg.am_fragment
   geglmm/trunk/libgegl/src/buffer.ccg
   geglmm/trunk/tools/m4/convert_libgeglmm.m4

Modified: geglmm/trunk/libgegl/src/Makefile_list_of_hg.am_fragment
==============================================================================
--- geglmm/trunk/libgegl/src/Makefile_list_of_hg.am_fragment	(original)
+++ geglmm/trunk/libgegl/src/Makefile_list_of_hg.am_fragment	Mon May 19 23:36:13 2008
@@ -2,7 +2,8 @@
 # The include happens in Makefile.am, not Makefile.in or Makefile,
 # so it's like copy-and-pasting this into each of those Makefile.am files.
 
-files_hg =  rectangle.hg node.hg processor.hg buffer.hg curve.hg color.hg
+files_hg =  rectangle.hg node.hg processor.hg buffer.hg curve.hg color.hg\
+	operation.hg nodecontext.hg
 
 
 

Modified: geglmm/trunk/libgegl/src/buffer.ccg
==============================================================================
--- geglmm/trunk/libgegl/src/buffer.ccg	(original)
+++ geglmm/trunk/libgegl/src/buffer.ccg	Mon May 19 23:36:13 2008
@@ -15,3 +15,4 @@
  * You should have received a copy of the GNU Lesser General Public
  * License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
  */
+ 
\ No newline at end of file

Added: geglmm/trunk/libgegl/src/nodecontext.ccg
==============================================================================
--- (empty file)
+++ geglmm/trunk/libgegl/src/nodecontext.ccg	Mon May 19 23:36:13 2008
@@ -0,0 +1,19 @@
+/* libgeglmm - a C++ wrapper for libgegl
+ *
+ * (c) 2008 Hubert Figuiere
+ *
+ * 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 3 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 GEGL; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+

Added: geglmm/trunk/libgegl/src/nodecontext.hg
==============================================================================
--- (empty file)
+++ geglmm/trunk/libgegl/src/nodecontext.hg	Mon May 19 23:36:13 2008
@@ -0,0 +1,40 @@
+/* libgeglmm - a C++ wrapper for libgegl
+ *
+ * (c) 2008 Hubert Figuiere
+ *
+ * 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 3 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 GEGL; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+_DEFS(libgeglmm,libgegl)
+_PINCLUDE(glibmm/private/object_p.h)
+
+// gegl-plugin seems to include config.h. BAD.
+#undef HAVE_CONFIG_H
+#include <gegl-plugin.h>
+
+namespace Gegl
+{
+
+class NodeContext
+	: public Glib::Object
+{
+	_CLASS_GOBJECT(NodeContext, GeglNodeContext, GEGL_NODE, Glib::Object, GObject)
+public:
+
+};
+
+
+}
+

Added: geglmm/trunk/libgegl/src/operation.ccg
==============================================================================
--- (empty file)
+++ geglmm/trunk/libgegl/src/operation.ccg	Mon May 19 23:36:13 2008
@@ -0,0 +1,22 @@
+/* libgeglmm - a C++ wrapper for libgegl
+ *
+ * (c) 2008 Hubert Figuiere
+ *
+ * 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 3 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 GEGL; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+
+#include <libgeglmm/node.h>
+#include <libgeglmm/nodecontext.h>

Added: geglmm/trunk/libgegl/src/operation.hg
==============================================================================
--- (empty file)
+++ geglmm/trunk/libgegl/src/operation.hg	Mon May 19 23:36:13 2008
@@ -0,0 +1,57 @@
+/* libgeglmm - a C++ wrapper for libgegl
+ *
+ * (c) 2008 Hubert Figuiere
+ *
+ * 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 3 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 GEGL; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <gegl.h>
+
+#include <libgeglmm/rectangle.h>
+
+_DEFS(libgeglmm,libgegl)
+_PINCLUDE(glibmm/private/object_p.h)
+
+// gegl-plugin seems to include config.h. BAD.
+#undef HAVE_CONFIG_H
+#include <gegl-plugin.h>
+
+namespace Gegl {
+
+class Node;
+class NodeContext;
+
+class Operation
+	: public Glib::Object
+{
+	_CLASS_GOBJECT(Operation, GeglOperation, GEGL_OPERATION, Glib::Object, GObject)
+public:
+	_WRAP_METHOD(Rectangle get_invalidated_by_change(const Glib::ustring & input_pad, const Rectangle & input_region), gegl_operation_get_invalidated_by_change)
+	_WRAP_METHOD(Rectangle get_bounding_box(), gegl_operation_get_bounding_box)
+	_WRAP_METHOD(const Rectangle& source_get_bounding_box(const Glib::ustring & pad_name), gegl_operation_source_get_bounding_box)
+	_WRAP_METHOD(Rectangle get_cached_region(const Rectangle & roi), gegl_operation_get_cached_region)
+	_WRAP_METHOD(Rectangle get_required_for_output(const Glib::ustring & input_pda, const Rectangle & roi), gegl_operation_get_required_for_output)
+	_WRAP_METHOD(const Glib::RefPtr<Node> detect(int x, int y), gegl_operation_detect)
+	_WRAP_METHOD(void attach(const Glib::RefPtr<Node> & node), gegl_operation_attach)
+	_WRAP_METHOD(void prepare(), gegl_operation_prepare)
+	_WRAP_METHOD(bool process(const Glib::RefPtr<NodeContext> & context, const Glib::ustring & output_pad, const Rectangle & result_rect), gegl_operation_process)
+	_WRAP_METHOD(void create_pad(GParamSpec    *param_spec), gegl_operation_create_pad)
+	_WRAP_METHOD(void set_format(const Glib::ustring & pad_name, const Babl *format), gegl_operation_set_format)
+	_WRAP_METHOD(const Babl* get_format(const Glib::ustring & pad_name), gegl_operation_get_format)
+	_WRAP_METHOD(Glib::RefPtr<Node> get_source_node(const Glib::ustring & pad_name), gegl_operation_get_source_node)
+	
+};
+
+}
+

Modified: geglmm/trunk/tools/m4/convert_libgeglmm.m4
==============================================================================
--- geglmm/trunk/tools/m4/convert_libgeglmm.m4	(original)
+++ geglmm/trunk/tools/m4/convert_libgeglmm.m4	Mon May 19 23:36:13 2008
@@ -23,6 +23,11 @@
 _CONVERSION(`GeglCurve*',`Glib::RefPtr<Curve>',Glib::wrap($3))
 _CONVERSION(`const Glib::RefPtr<Curve>&',`GeglCurve*',__CONVERT_REFPTR_TO_P)
 
+_CONVERSION(`GeglOperation*',`Glib::RefPtr<Operation>',Glib::wrap($3))
+_CONVERSION(`const Glib::RefPtr<Operation>&',`GeglOperation*',__CONVERT_REFPTR_TO_P)
+
+_CONVERSION(`const Glib::RefPtr<NodeContext>&',`GeglNodeContext*',__CONVERT_REFPTR_TO_P)
+
 _CONVERSION(`GeglColor*',`Glib::RefPtr<Color>',Glib::wrap($3))
 
 



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