[libchamplainmm] Renderer: Wrap champlain_renderer_set_data()
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplainmm] Renderer: Wrap champlain_renderer_set_data()
- Date: Sun, 17 Aug 2014 08:36:00 +0000 (UTC)
commit 5d0fe91fa15088bce8e4b0f2fc2ff4f47a7c6f0d
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Tue Aug 12 19:34:12 2014 +0200
Renderer: Wrap champlain_renderer_set_data()
* champlain/src/champlain_vfuncs.defs: Add set_data() vfunc.
* champlain/src/renderer.hg: Wrap champlain_renderer_set_data()
and set_data() vfunc.
champlain/src/champlain_vfuncs.defs | 9 +++++++++
champlain/src/renderer.hg | 4 ++--
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/champlain/src/champlain_vfuncs.defs b/champlain/src/champlain_vfuncs.defs
index 5e5d7b8..3b2e128 100644
--- a/champlain/src/champlain_vfuncs.defs
+++ b/champlain/src/champlain_vfuncs.defs
@@ -90,6 +90,15 @@
; ChamplainRenderer
+(define-vfunc set_data
+ (of-object "ChamplainRenderer")
+ (return-type "void")
+ (parameters
+ '("const-gchar*" "data")
+ '("guint" "size")
+ )
+)
+
(define-vfunc render
(of-object "ChamplainRenderer")
(return-type "void")
diff --git a/champlain/src/renderer.hg b/champlain/src/renderer.hg
index 8c31a69..118c2c5 100644
--- a/champlain/src/renderer.hg
+++ b/champlain/src/renderer.hg
@@ -40,12 +40,12 @@ class Renderer : public Glib::Object
_DERIVES_INITIALLY_UNOWNED()
protected:
-// _WRAP_VFUNC(void set_data(std::string data, guint size), set_data)
+ _WRAP_VFUNC(void set_data(const gchar* data, guint size), set_data)
_WRAP_VFUNC(void render(const Glib::RefPtr<Tile>& tile), render)
public:
-// _WRAP_METHOD(void set_data(std::string data, guint size), champlain_renderer_set_data)
+ _WRAP_METHOD(void set_data(const gchar* data, guint size), champlain_renderer_set_data)
_WRAP_METHOD(void render(const Glib::RefPtr<Tile>& tile), champlain_renderer_render)
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]