gnomemm r1512 - in geglmm/trunk: . libgegl/src
- From: hub svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1512 - in geglmm/trunk: . libgegl/src
- Date: Tue, 20 May 2008 04:06:42 +0000 (UTC)
Author: hub
Date: Tue May 20 04:06:42 2008
New Revision: 1512
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1512&view=rev
Log:
* libgegl/src/node.hg, libgegl/src/operation.hg,
libgegl/src/buffer.hg, libgegl/src/color.hg: Wrap
properties and signals.
Modified:
geglmm/trunk/ChangeLog
geglmm/trunk/libgegl/src/buffer.hg
geglmm/trunk/libgegl/src/color.hg
geglmm/trunk/libgegl/src/node.hg
geglmm/trunk/libgegl/src/operation.hg
Modified: geglmm/trunk/libgegl/src/buffer.hg
==============================================================================
--- geglmm/trunk/libgegl/src/buffer.hg (original)
+++ geglmm/trunk/libgegl/src/buffer.hg Tue May 20 04:06:42 2008
@@ -57,7 +57,22 @@
_WRAP_METHOD(void sample_cleanup(), gegl_buffer_sample_cleanup)
_WRAP_METHOD(static Interpolation interpolation_from_string(const Glib::ustring & string), gegl_buffer_interpolation_from_string)
- // _WRAP_SIGNAL(void changed(const Rectangle &r), "changed")
+ _WRAP_SIGNAL(void changed(const Rectangle &r), "changed", no_default_handler)
+
+ // Properties
+ _WRAP_PROPERTY("px-size", int)
+ _WRAP_PROPERTY("pixels", int)
+ _WRAP_PROPERTY("width", int)
+ _WRAP_PROPERTY("height", int)
+ _WRAP_PROPERTY("x", int)
+ _WRAP_PROPERTY("y", int)
+ _WRAP_PROPERTY("abyss-width", int)
+ _WRAP_PROPERTY("abyss-height", int)
+ _WRAP_PROPERTY("abyss-x", int)
+ _WRAP_PROPERTY("abyss-y", int)
+ _WRAP_PROPERTY("shift-x", int)
+ _WRAP_PROPERTY("shift-y", int)
+ _WRAP_PROPERTY("format", Babl*)
};
Modified: geglmm/trunk/libgegl/src/color.hg
==============================================================================
--- geglmm/trunk/libgegl/src/color.hg (original)
+++ geglmm/trunk/libgegl/src/color.hg Tue May 20 04:06:42 2008
@@ -34,6 +34,8 @@
_WRAP_METHOD(void get_rgba(float & r, float & g, float & b, float & a), gegl_color_get_rgba)
_WRAP_METHOD(void set_rgba(float r, float g, float b, float a), gegl_color_set_rgba)
+
+ _WRAP_PROPERTY("string", Glib::ustring)
};
}
Modified: geglmm/trunk/libgegl/src/node.hg
==============================================================================
--- geglmm/trunk/libgegl/src/node.hg (original)
+++ geglmm/trunk/libgegl/src/node.hg Tue May 20 04:06:42 2008
@@ -30,6 +30,7 @@
{
class Processor;
+class Operation;
_WRAP_ENUM(BlitFlags, GeglBlitFlags, NO_GTYPE)
@@ -69,17 +70,26 @@
const Glib::RefPtr<Node> get_producer(const Glib::ustring & input_pad_name, Glib::ustring * output_pad_name);
_WRAP_METHOD(static Glib::RefPtr<Node> create_child(const Glib::RefPtr<Node> & parent, const Glib::ustring & operation), gegl_node_create_child)
- _WRAP_METHOD(void get_property(const Glib::ustring & property_name, Glib::ValueBase & value), gegl_node_get_property)
- _WRAP_METHOD(void set_property(const Glib::ustring & property_name, const Glib::ValueBase & value), gegl_node_set_property)
+
+ // I guess we can use the property mechanism
+ // _WRAP_METHOD(void get_property(const Glib::ustring & property_name, Glib::ValueBase & value), gegl_node_get_property)
+ // _WRAP_METHOD(void set_property(const Glib::ustring & property_name, const Glib::ValueBase & value), gegl_node_set_property)
+
_WRAP_METHOD(static const Glib::RefPtr<Node> new_from_xml(const Glib::ustring & xmldata, const Glib::ustring & path_root), gegl_node_new_from_xml)
_WRAP_METHOD(static const Glib::RefPtr<Node> new_from_file(const Glib::ustring & path), gegl_node_new_from_file)
_WRAP_METHOD(Glib::ustring to_xml(const Glib::ustring & path_root), gegl_node_to_xml)
_WRAP_METHOD(const Glib::RefPtr<Processor> new_processor(const Rectangle & rectangle), gegl_node_new_processor)
+ // Properties.
+ _WRAP_PROPERTY("gegl-operation", Glib::RefPtr<Operation>)
+ _WRAP_PROPERTY("operation", Glib::ustring)
+ _WRAP_PROPERTY("name", Glib::ustring)
+
+
// can't wrap the signals as we don't have GeglNodeClass...
- // _WRAP_SIGNAL(void invalidated(const Rectangle &r), "invalidated")
- // _WRAP_SIGNAL(void computed(const Rectangle &r), "computed")
+ _WRAP_SIGNAL(void invalidated(const Rectangle &r), "invalidated", no_default_handler)
+ _WRAP_SIGNAL(void computed(const Rectangle &r), "computed", no_default_handler)
};
Modified: geglmm/trunk/libgegl/src/operation.hg
==============================================================================
--- geglmm/trunk/libgegl/src/operation.hg (original)
+++ geglmm/trunk/libgegl/src/operation.hg Tue May 20 04:06:42 2008
@@ -50,8 +50,67 @@
_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)
-
+
+ // this one is implemented in OperationMeta
+ _IGNORE(gegl_operation_meta_redirect)
+};
+
+class OperationSource
+ : public Operation
+{
+ _CLASS_GOBJECT(OperationSource, GeglOperationSource, GEGL_OPERATION_SOURCE, Operation, GeglOperation)
+};
+
+class OperationSink
+ : public Operation
+{
+ _CLASS_GOBJECT(OperationSink, GeglOperationSink, GEGL_OPERATION_SINK, Operation, GeglOperation)
+public:
+ // _WRAP_METHOD(bool needs_full(), gegl_operation_sink_needs_full)
+};
+
+class OperationFilter
+ : public Operation
+{
+ _CLASS_GOBJECT(OperationFilter, GeglOperationFilter, GEGL_OPERATION_FILTER, Operation, GeglOperation)
+};
+
+class OperationComposer
+ : public Operation
+{
+ _CLASS_GOBJECT(OperationComposer, GeglOperationComposer, GEGL_OPERATION_COMPOSER, Operation, GeglOperation)
+};
+
+class OperationPointComposer
+ : public OperationComposer
+{
+ _CLASS_GOBJECT(OperationPointComposer, GeglOperationPointComposer, GEGL_OPERATION_POINT_COMPOSER, OperationComposer, GeglOperationComposer)
};
+
+class OperationPointFilter
+ : public OperationFilter
+{
+ _CLASS_GOBJECT(OperationPointFilter, GeglOperationPointFilter, GEGL_OPERATION_POINT_FILTER, OperationFilter, GeglOperationFilter)
+};
+
+
+class OperationAreaFilter
+ : public OperationFilter
+{
+ _CLASS_GOBJECT(OperationAreaFilter, GeglOperationAreaFilter, GEGL_OPERATION_AREA_FILTER, OperationFilter, GeglOperationFilter)
+};
+
+
+class OperationMeta
+ : public Operation
+{
+ _CLASS_GOBJECT(OperationMeta, GeglOperationMeta, GEGL_OPERATION_META, Operation, GeglOperation)
+public:
+ // _WRAP_METHOD(void redirect(const Glib::ustring & name, const Glib::RefPtr<Node> & internal, const Glib::ustring & internal_name), gegl_operation_meta_redirect)
+ _WRAP_METHOD(void propert_changed(GParamSpec * arg1, void *user_data), gegl_operation_meta_property_changed)
+};
+
+
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]