49
49
return Py_BuildValue("(dd)", coord.rlat, coord.rlon);
52
override osm_gps_map_set_center
54
_wrap_osm_gps_map_set_center(PyGObject *self, PyObject *args)
56
double latitude, longitude;
58
if (PyTuple_Size(args) == 1)
59
args = PyTuple_GetItem(args, 0);
60
if (!PyArg_ParseTuple(args, "dd;OsmGpsMap.set_center takes two floats (also in a tuple)",
61
&latitude, &longitude))
63
osm_gps_map_set_center(OSM_GPS_MAP(self->obj), latitude, longitude);
69
override osm_gps_map_screen_to_geographic
71
_wrap_osm_gps_map_screen_to_geographic(PyGObject *self, PyObject *args)
74
gfloat latitude, longitude;
76
if (PyTuple_Size(args) == 1)
77
args = PyTuple_GetItem(args, 0);
78
if (!PyArg_ParseTuple(args, "ii:OsmGpsMap.screen_to_geographic takes two"
79
"integers (also in a tuple)", &pixel_x, &pixel_y))
82
osm_gps_map_screen_to_geographic(OSM_GPS_MAP(self->obj), pixel_x, pixel_y,
83
&latitude, &longitude);
85
return Py_BuildValue("(ff)", latitude, longitude);
88
override osm_gps_map_geographic_to_screen
90
_wrap_osm_gps_map_geographic_to_screen(PyGObject *self, PyObject *args)
93
gfloat latitude, longitude;
95
if (PyTuple_Size(args) == 1)
96
args = PyTuple_GetItem(args, 0);
97
if (!PyArg_ParseTuple(args, "ff:OsmGpsMap.geographic_to_screen takes two"
98
"floats (also in a tuple)", &latitude, &longitude))
101
osm_gps_map_geographic_to_screen(OSM_GPS_MAP(self->obj),
105
return Py_BuildValue("(ii)", pixel_x, pixel_y);
108
override osm_gps_map_scroll
110
_wrap_osm_gps_map_scroll(PyGObject *self, PyObject *args)
114
if (PyTuple_Size(args) == 1)
115
args = PyTuple_GetItem(args, 0);
116
if (!PyArg_ParseTuple(args, "ii:OsmGpsMap.scroll takes two "
117
"integers (also in a tuple)", &dx, &dy))
120
osm_gps_map_scroll(OSM_GPS_MAP(self->obj), dx, dy);
52
127
override osm_gps_map_add_track kwargs
54
129
_wrap_osm_gps_map_add_track(PyGObject *self, PyObject *args,