[libchamplain/libchamplain-0-4] python-binding: sync with libchamplain-0.4.3
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] python-binding: sync with libchamplain-0.4.3
- Date: Sat, 9 Jan 2010 19:58:52 +0000 (UTC)
commit 2f146961c95a16c9ff51bf28bdaab53147915203
Author: Victor Godoy Poluceno <victorpoluceno gmail com>
Date: Tue Jan 5 22:55:26 2010 -0200
python-binding: sync with libchamplain-0.4.3
bindings/python/champlain/pychamplain-base.defs | 102 +++++++++++++++++++++++
1 files changed, 102 insertions(+), 0 deletions(-)
---
diff --git a/bindings/python/champlain/pychamplain-base.defs b/bindings/python/champlain/pychamplain-base.defs
index 1fda1fe..9068d10 100644
--- a/bindings/python/champlain/pychamplain-base.defs
+++ b/bindings/python/champlain/pychamplain-base.defs
@@ -109,6 +109,16 @@
)
)
+(define-enum Unit
+ (in-module "Champlain")
+ (c-name "ChamplainUnit")
+ (gtype-id "CHAMPLAIN_TYPE_UNIT")
+ (values
+ '("km" "CHAMPLAIN_UNIT_KM")
+ '("miles" "CHAMPLAIN_UNIT_MILES")
+ )
+)
+
(define-enum SelectionMode
(in-module "Champlain")
(c-name "ChamplainSelectionMode")
@@ -359,6 +369,42 @@
)
)
+(define-method set_license_text
+ (of-object "ChamplainView")
+ (c-name "champlain_view_set_license_text")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "text")
+ )
+)
+
+(define-method set_show_scale
+ (of-object "ChamplainView")
+ (c-name "champlain_view_set_show_scale")
+ (return-type "none")
+ (parameters
+ '("gboolean" "value")
+ )
+)
+
+(define-method set_scale_unit
+ (of-object "ChamplainView")
+ (c-name "champlain_view_set_scale_unit")
+ (return-type "none")
+ (parameters
+ '("ChamplainUnit" "unit")
+ )
+)
+
+(define-method set_max_scale_width
+ (of-object "ChamplainView")
+ (c-name "champlain_view_set_max_scale_width")
+ (return-type "none")
+ (parameters
+ '("guint" "value")
+ )
+)
+
(define-method set_zoom_on_double_click
(of-object "ChamplainView")
(c-name "champlain_view_set_zoom_on_double_click")
@@ -457,6 +503,30 @@
(return-type "gboolean")
)
+(define-method get_license_text
+ (of-object "ChamplainView")
+ (c-name "champlain_view_get_license_text")
+ (return-type "const-gchar*")
+)
+
+(define-method get_show_scale
+ (of-object "ChamplainView")
+ (c-name "champlain_view_get_show_scale")
+ (return-type "gboolean")
+)
+
+(define-method get_max_scale_width
+ (of-object "ChamplainView")
+ (c-name "champlain_view_get_max_scale_width")
+ (return-type "guint")
+)
+
+(define-method get_scale_unit
+ (of-object "ChamplainView")
+ (c-name "champlain_view_get_scale_unit")
+ (return-type "ChamplainUnit")
+)
+
(define-method get_zoom_on_double_click
(of-object "ChamplainView")
(c-name "champlain_view_get_zoom_on_double_click")
@@ -617,6 +687,21 @@
(return-type "gdouble")
)
+(define-method set_mark_points
+ (of-object "ChamplainPolygon")
+ (c-name "champlain_polygon_set_mark_points")
+ (return-type "none")
+ (parameters
+ '("gboolean" "value")
+ )
+)
+
+(define-method get_mark_points
+ (of-object "ChamplainPolygon")
+ (c-name "champlain_polygon_get_mark_points")
+ (return-type "gboolean")
+)
+
(define-method show
(of-object "ChamplainPolygon")
(c-name "champlain_polygon_show")
@@ -985,6 +1070,17 @@
(return-type "ChamplainMapProjection")
)
+(define-method get_meters_per_pixel
+ (of-object "ChamplainMapSource")
+ (c-name "champlain_map_source_get_meters_per_pixel")
+ (return-type "gfloat")
+ (parameters
+ '("gint" "zoom_level")
+ '("gdouble" "latitude")
+ '("gdouble" "longitude")
+ )
+)
+
;; From champlain-map-source-desc.h
@@ -1364,6 +1460,12 @@
(return-type "const-ClutterColor*")
)
+(define-method queue_redraw
+ (of-object "ChamplainMarker")
+ (c-name "champlain_marker_queue_redraw")
+ (return-type "none")
+)
+
;; From champlain-base-marker.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]