[libchamplainmm] PathLayer: Wrap more missing methods



commit 1222e36e709988a1b4a2c62b209795db214efd93
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Mon Jun 9 20:25:07 2014 +0200

    PathLayer: Wrap more missing methods

 champlain/src/path-layer.hg      |   28 ++++++++++++++++++++++------
 tools/m4/convert_libchamplain.m4 |    3 +++
 2 files changed, 25 insertions(+), 6 deletions(-)
---
diff --git a/champlain/src/path-layer.hg b/champlain/src/path-layer.hg
index fc6ea09..6dd1f70 100644
--- a/champlain/src/path-layer.hg
+++ b/champlain/src/path-layer.hg
@@ -17,6 +17,7 @@
  */
 
 #include <cluttermm/color.h>
+#include <champlainmm/location.h>
 
 #include <champlainmm/layer.h>
 _DEFS(champlainmm,champlain)
@@ -39,17 +40,32 @@ protected:
 public:
   _WRAP_CREATE()
 
-  _WRAP_METHOD(bool get_fill() const, champlain_path_layer_get_fill)
+  _WRAP_METHOD(void add_node(const Glib::RefPtr<Location>& location), champlain_path_layer_add_node)
+  _WRAP_METHOD(void remove_node(const Glib::RefPtr<Location>& location), champlain_path_layer_remove_node)
+  _WRAP_METHOD(void remove_all(), champlain_path_layer_remove_all)
+  _WRAP_METHOD(void insert_node(const Glib::RefPtr<Location>& location, guint position), 
champlain_path_layer_insert_node)
+
   _WRAP_METHOD(Clutter::Color get_fill_color() const, champlain_path_layer_get_fill_color)
-  _WRAP_METHOD(bool get_stroke() const, champlain_path_layer_get_stroke)
+  _WRAP_METHOD(void set_fill_color(const Clutter::Color& color), champlain_path_layer_set_fill_color)
+
   _WRAP_METHOD(Clutter::Color get_stroke_color() const, champlain_path_layer_get_stroke_color)
+  _WRAP_METHOD(void set_stroke_color(const Clutter::Color& color), champlain_path_layer_set_stroke_color)
+
+  _WRAP_METHOD(bool get_fill() const, champlain_path_layer_get_fill)
+  _WRAP_METHOD(void set_fill(bool value = true), champlain_path_layer_set_fill)
+
+  _WRAP_METHOD(bool get_stroke() const, champlain_path_layer_get_stroke)
+  _WRAP_METHOD(void set_stroke(bool value = true), champlain_path_layer_set_stroke)
+
   _WRAP_METHOD(double get_stroke_width() const, champlain_path_layer_get_stroke_width)
-  _WRAP_METHOD(void set_fill(bool value), champlain_path_layer_set_fill)
-  _WRAP_METHOD(void set_fill_color(const Clutter::Color & color), champlain_path_layer_set_fill_color)
-  _WRAP_METHOD(void set_stroke(bool value), champlain_path_layer_set_stroke)
-  _WRAP_METHOD(void set_stroke_color(const Clutter::Color & color), champlain_path_layer_set_stroke_color)
   _WRAP_METHOD(void set_stroke_width(double width), champlain_path_layer_set_stroke_width)
 
+  _WRAP_METHOD(bool get_visible() const, champlain_path_layer_get_visible)
+  _WRAP_METHOD(void set_visible(bool value = true), champlain_path_layer_set_visible)
+
+  _WRAP_METHOD(bool get_closed() const, champlain_path_layer_get_closed)
+  _WRAP_METHOD(void set_closed(bool value = true), champlain_path_layer_set_closed)
+
   _WRAP_PROPERTY("closed", bool)
   _WRAP_PROPERTY("fill", bool)
   _WRAP_PROPERTY("fill-color", Clutter::Color)
diff --git a/tools/m4/convert_libchamplain.m4 b/tools/m4/convert_libchamplain.m4
index 5cfcc7d..8e67fe6 100644
--- a/tools/m4/convert_libchamplain.m4
+++ b/tools/m4/convert_libchamplain.m4
@@ -40,6 +40,9 @@ _CONVERSION(`const Glib::RefPtr<Layer>&',`ChamplainLayer*',__CONVERT_REFPTR_TO_P
 # License
 _CONVERSION(`ChamplainLicense*',`Glib::RefPtr<License>', `Glib::wrap($3)')
 
+# Location
+_CONVERSION(`const Glib::RefPtr<Location>&',`ChamplainLocation*',__CONVERT_REFPTR_TO_P)
+
 # MapSource
 _CONVERSION(`ChamplainMapSource*',`Glib::RefPtr<MapSource>',`Glib::wrap($3)')
 _CONVERSION(`ChamplainMapSource*',`Glib::RefPtr<const MapSource>',`Glib::wrap($3)')


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