summaryrefslogtreecommitdiff
path: root/efl/elementary/map.pxd
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-04-05 03:13:15 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-04-05 03:13:15 +0300
commitadf70fa26fcae845b0bc55c6eebcaeafadc4d1c7 (patch)
treec5bf8953e6b6081bb6542eb5372295875151df02 /efl/elementary/map.pxd
parent1149c6ed91a5dcb6e23998ba112d9e3d20a5ceb9 (diff)
Remove const hacks
They were a workaround for limitations in Cython <0.18
Diffstat (limited to 'efl/elementary/map.pxd')
-rw-r--r--efl/elementary/map.pxd45
1 files changed, 22 insertions, 23 deletions
diff --git a/efl/elementary/map.pxd b/efl/elementary/map.pxd
index 778e068..9fdf39d 100644
--- a/efl/elementary/map.pxd
+++ b/efl/elementary/map.pxd
@@ -1,7 +1,6 @@
1from efl.evas cimport Eina_Bool, Eina_List, Evas_Object, const_Evas_Object, Evas_Coord 1from efl.evas cimport Eina_Bool, Eina_List, Evas_Object, Evas_Coord
2from enums cimport Elm_Map_Overlay_Type, Elm_Map_Route_Method, \ 2from enums cimport Elm_Map_Overlay_Type, Elm_Map_Route_Method, \
3 Elm_Map_Route_Type, Elm_Map_Source_Type, Elm_Map_Zoom_Mode 3 Elm_Map_Route_Type, Elm_Map_Source_Type, Elm_Map_Zoom_Mode
4from libc.string cimport const_char
5 4
6cdef extern from "Elementary.h": 5cdef extern from "Elementary.h":
7 ctypedef void *Elm_Map_Overlay 6 ctypedef void *Elm_Map_Overlay
@@ -14,26 +13,26 @@ cdef extern from "Elementary.h":
14 13
15 Evas_Object *elm_map_add(Evas_Object *parent) 14 Evas_Object *elm_map_add(Evas_Object *parent)
16 void elm_map_zoom_set(Evas_Object *obj, int zoom) 15 void elm_map_zoom_set(Evas_Object *obj, int zoom)
17 int elm_map_zoom_get(const_Evas_Object *obj) 16 int elm_map_zoom_get(const Evas_Object *obj)
18 void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) 17 void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode)
19 Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const_Evas_Object *obj) 18 Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const Evas_Object *obj)
20 void elm_map_zoom_min_set(Evas_Object *obj, int zoom) 19 void elm_map_zoom_min_set(Evas_Object *obj, int zoom)
21 int elm_map_zoom_min_get(const_Evas_Object *obj) 20 int elm_map_zoom_min_get(const Evas_Object *obj)
22 void elm_map_zoom_max_set(Evas_Object *obj, int zoom) 21 void elm_map_zoom_max_set(Evas_Object *obj, int zoom)
23 int elm_map_zoom_max_get(const_Evas_Object *obj) 22 int elm_map_zoom_max_get(const Evas_Object *obj)
24 void elm_map_region_get(const_Evas_Object *obj, double *lon, double *lat) 23 void elm_map_region_get(const Evas_Object *obj, double *lon, double *lat)
25 void elm_map_region_bring_in(Evas_Object *obj, double lon, double lat) 24 void elm_map_region_bring_in(Evas_Object *obj, double lon, double lat)
26 void elm_map_region_show(Evas_Object *obj, double lon, double lat) 25 void elm_map_region_show(Evas_Object *obj, double lon, double lat)
27 void elm_map_canvas_to_region_convert(const_Evas_Object *obj, Evas_Coord x, Evas_Coord y, double *lon, double *lat) 26 void elm_map_canvas_to_region_convert(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, double *lon, double *lat)
28 void elm_map_region_to_canvas_convert(const_Evas_Object *obj, double lon, double lat, Evas_Coord *x, Evas_Coord *y) 27 void elm_map_region_to_canvas_convert(const Evas_Object *obj, double lon, double lat, Evas_Coord *x, Evas_Coord *y)
29 void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) 28 void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused)
30 Eina_Bool elm_map_paused_get(const_Evas_Object *obj) 29 Eina_Bool elm_map_paused_get(const Evas_Object *obj)
31 void elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) 30 void elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy)
32 void elm_map_rotate_get(const_Evas_Object *obj, double *degree, Evas_Coord *cx, Evas_Coord *cy) 31 void elm_map_rotate_get(const Evas_Object *obj, double *degree, Evas_Coord *cx, Evas_Coord *cy)
33 void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) 32 void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled)
34 Eina_Bool elm_map_wheel_disabled_get(const_Evas_Object *obj) 33 Eina_Bool elm_map_wheel_disabled_get(const Evas_Object *obj)
35 void elm_map_user_agent_set(Evas_Object *obj, char *user_agent) 34 void elm_map_user_agent_set(Evas_Object *obj, char *user_agent)
36 char *elm_map_user_agent_get(const_Evas_Object *obj) 35 char *elm_map_user_agent_get(const Evas_Object *obj)
37 Eina_List *elm_map_overlays_get(Evas_Object *obj) 36 Eina_List *elm_map_overlays_get(Evas_Object *obj)
38 Elm_Map_Overlay *elm_map_overlay_add(Evas_Object *obj, double lon, double lat) 37 Elm_Map_Overlay *elm_map_overlay_add(Evas_Object *obj, double lon, double lat)
39 void elm_map_overlay_del(Elm_Map_Overlay *overlay) 38 void elm_map_overlay_del(Elm_Map_Overlay *overlay)
@@ -48,9 +47,9 @@ cdef extern from "Elementary.h":
48 Eina_Bool elm_map_overlay_paused_get(Elm_Map_Overlay *overlay) 47 Eina_Bool elm_map_overlay_paused_get(Elm_Map_Overlay *overlay)
49 Eina_Bool elm_map_overlay_visible_get(Elm_Map_Overlay *overlay) 48 Eina_Bool elm_map_overlay_visible_get(Elm_Map_Overlay *overlay)
50 void elm_map_overlay_content_set(Elm_Map_Overlay *overlay, Evas_Object *obj) 49 void elm_map_overlay_content_set(Elm_Map_Overlay *overlay, Evas_Object *obj)
51 const_Evas_Object *elm_map_overlay_content_get(Elm_Map_Overlay *overlay) 50 const Evas_Object *elm_map_overlay_content_get(Elm_Map_Overlay *overlay)
52 void elm_map_overlay_icon_set(Elm_Map_Overlay *overlay, Evas_Object *icon) 51 void elm_map_overlay_icon_set(Elm_Map_Overlay *overlay, Evas_Object *icon)
53 const_Evas_Object *elm_map_overlay_icon_get(Elm_Map_Overlay *overlay) 52 const Evas_Object *elm_map_overlay_icon_get(Elm_Map_Overlay *overlay)
54 void elm_map_overlay_region_set(Elm_Map_Overlay *overlay, double lon, double lat) 53 void elm_map_overlay_region_set(Elm_Map_Overlay *overlay, double lon, double lat)
55 void elm_map_overlay_region_get(Elm_Map_Overlay *overlay, double *lon, double *lat) 54 void elm_map_overlay_region_get(Elm_Map_Overlay *overlay, double *lon, double *lat)
56 void elm_map_overlay_color_set(Elm_Map_Overlay *overlay, int r, int g, int b, int a) 55 void elm_map_overlay_color_set(Elm_Map_Overlay *overlay, int r, int g, int b, int a)
@@ -75,17 +74,17 @@ cdef extern from "Elementary.h":
75 Elm_Map_Overlay *elm_map_overlay_circle_add(Evas_Object *obj, double lon, double lat, double radius) 74 Elm_Map_Overlay *elm_map_overlay_circle_add(Evas_Object *obj, double lon, double lat, double radius)
76 Elm_Map_Overlay *elm_map_overlay_scale_add(Evas_Object *obj, Evas_Coord x, Evas_Coord y) 75 Elm_Map_Overlay *elm_map_overlay_scale_add(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
77 Elm_Map_Overlay *elm_map_overlay_route_add(Evas_Object *obj, Elm_Map_Route *route) 76 Elm_Map_Overlay *elm_map_overlay_route_add(Evas_Object *obj, Elm_Map_Route *route)
78 void elm_map_tile_load_status_get(const_Evas_Object *obj, int *try_num, int *finish_num) 77 void elm_map_tile_load_status_get(const Evas_Object *obj, int *try_num, int *finish_num)
79 const_char * *elm_map_sources_get(const_Evas_Object *obj, Elm_Map_Source_Type type) 78 const char * *elm_map_sources_get(const Evas_Object *obj, Elm_Map_Source_Type type)
80 void elm_map_source_set(Evas_Object *obj, Elm_Map_Source_Type type, const_char *source_name) 79 void elm_map_source_set(Evas_Object *obj, Elm_Map_Source_Type type, const char *source_name)
81 const_char * elm_map_source_get(const_Evas_Object *obj, Elm_Map_Source_Type type) 80 const char * elm_map_source_get(const Evas_Object *obj, Elm_Map_Source_Type type)
82 Elm_Map_Route *elm_map_route_add(Evas_Object *obj, Elm_Map_Route_Type type, Elm_Map_Route_Method method, double flon, double flat, double tlon, double tlat, Elm_Map_Route_Cb route_cb, void *data) 81 Elm_Map_Route *elm_map_route_add(Evas_Object *obj, Elm_Map_Route_Type type, Elm_Map_Route_Method method, double flon, double flat, double tlon, double tlat, Elm_Map_Route_Cb route_cb, void *data)
83 void elm_map_route_del(Elm_Map_Route *route) 82 void elm_map_route_del(Elm_Map_Route *route)
84 double elm_map_route_distance_get(Elm_Map_Route *route) 83 double elm_map_route_distance_get(Elm_Map_Route *route)
85 const_char * elm_map_route_node_get(Elm_Map_Route *route) 84 const char * elm_map_route_node_get(Elm_Map_Route *route)
86 const_char * elm_map_route_waypoint_get(Elm_Map_Route *route) 85 const char * elm_map_route_waypoint_get(Elm_Map_Route *route)
87 Elm_Map_Name *elm_map_name_add(const_Evas_Object *obj, const_char *address, double lon, double lat, Elm_Map_Name_Cb name_cb, void *data) 86 Elm_Map_Name *elm_map_name_add(const Evas_Object *obj, const char *address, double lon, double lat, Elm_Map_Name_Cb name_cb, void *data)
88 void elm_map_name_del(Elm_Map_Name *name) 87 void elm_map_name_del(Elm_Map_Name *name)
89 const_char * elm_map_name_address_get(Elm_Map_Name *name) 88 const char * elm_map_name_address_get(Elm_Map_Name *name)
90 void elm_map_name_region_get(Elm_Map_Name *name, double *lon, double *lat) 89 void elm_map_name_region_get(Elm_Map_Name *name, double *lon, double *lat)
91 90