[libchamplainmm] PathLayer: Wrap missing symbols
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplainmm] PathLayer: Wrap missing symbols
- Date: Sun, 27 Jul 2014 15:45:51 +0000 (UTC)
commit ed1b541d320ffe75861e61d00b7f03f3df6b45ea
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Sun Jul 27 12:46:55 2014 +0200
PathLayer: Wrap missing symbols
champlain/src/path-layer.ccg | 21 +++++++++++++++++++++
champlain/src/path-layer.hg | 10 ++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/champlain/src/path-layer.ccg b/champlain/src/path-layer.ccg
index 98e7f82..8e7e81e 100644
--- a/champlain/src/path-layer.ccg
+++ b/champlain/src/path-layer.ccg
@@ -18,6 +18,27 @@
#include <champlain/champlain.h>
+namespace Glib
+{
+namespace Container_Helpers
+{
+
+template<>
+struct TypeTraits<guint>
+{
+ typedef guint CppType;
+ typedef gpointer CType;
+ typedef gpointer CTypeNonConst;
+
+ static CType to_c_type (CppType item) { return GUINT_TO_POINTER(item); }
+ static CType to_c_type (CType item) { return item; }
+ static CppType to_cpp_type (CType item) { return GPOINTER_TO_UINT(item); }
+ static void release_c_type (CType) {}
+};
+
+}
+}
+
namespace Champlain
{
} // namespace Champlain
diff --git a/champlain/src/path-layer.hg b/champlain/src/path-layer.hg
index 6dd1f70..ccb653c 100644
--- a/champlain/src/path-layer.hg
+++ b/champlain/src/path-layer.hg
@@ -66,6 +66,16 @@ public:
_WRAP_METHOD(bool get_closed() const, champlain_path_layer_get_closed)
_WRAP_METHOD(void set_closed(bool value = true), champlain_path_layer_set_closed)
+#m4 _CONVERSION(`GList*',`std::vector<Glib::RefPtr<Location> >',`Glib::ListHandler<Glib::RefPtr<Location>
::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
+ _WRAP_METHOD(std::vector<Glib::RefPtr<Location> > get_nodes(), champlain_path_layer_get_nodes)
+#m4 _CONVERSION(`GList*',`std::vector<Glib::RefPtr<const Location> >',`Glib::ListHandler<Glib::RefPtr<const
Location> >::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
+ _WRAP_METHOD(std::vector<Glib::RefPtr<const Location> > get_nodes() const, champlain_path_layer_get_nodes)
+
+#m4 _CONVERSION(`GList*',`std::vector< guint >',`Glib::ListHandler< guint >::list_to_vector($3,
Glib::OWNERSHIP_SHALLOW)')
+ _WRAP_METHOD(std::vector< guint > get_dash() const, champlain_path_layer_get_dash)
+#m4 _CONVERSION(`std::vector< guint >',`GList*',`Glib::ListHandler< guint >::vector_to_list($3).data()')
+ _WRAP_METHOD(void set_dash(std::vector< guint > dash_pattern), champlain_path_layer_set_dash)
+
_WRAP_PROPERTY("closed", bool)
_WRAP_PROPERTY("fill", bool)
_WRAP_PROPERTY("fill-color", Clutter::Color)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]