Parent Directory | Revision Log
Balloon to OSD migration started
1 | harbaum | 73 | /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */ |
2 | /* vim:set et sw=4 ts=4 cino=t0,(0: */ | ||
3 | /* | ||
4 | * Copyright (C) Till Harbaum 2009 <till@harbaum.org> | ||
5 | * | ||
6 | * osm-gps-map is free software: you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation, either version 3 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * osm-gps-map is distributed in the hope that it will be useful, but | ||
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
14 | * See the GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | |||
20 | #ifndef _OSM_GPS_MAP_OSD_CLASSIC_H_ | ||
21 | #define _OSM_GPS_MAP_OSD_CLASSIC_H_ | ||
22 | |||
23 | harbaum | 76 | #ifdef OSD_GPS_BUTTON |
24 | harbaum | 73 | /* define custom gps button */ |
25 | #define OSD_GPS OSD_CUSTOM | ||
26 | /* more could be added like */ | ||
27 | /* #define OSD_XYZ OSD_CUSTOM+1 */ | ||
28 | harbaum | 76 | #endif |
29 | harbaum | 73 | |
30 | #include "osm-gps-map.h" | ||
31 | |||
32 | void osm_gps_map_osd_classic_init(OsmGpsMap *map); | ||
33 | harbaum | 86 | osd_button_t osm_gps_map_osd_check(OsmGpsMap *map, gint x, gint y); |
34 | harbaum | 76 | #ifdef OSD_GPS_BUTTON |
35 | harbaum | 73 | void osm_gps_map_osd_enable_gps (OsmGpsMap *map, OsmGpsMapOsdCallback cb, gpointer data); |
36 | harbaum | 76 | #endif |
37 | harbaum | 73 | |
38 | harbaum | 112 | #ifdef OSD_BALLOON |
39 | void osm_gps_map_osd_draw_balloon (OsmGpsMap *map, | ||
40 | float latitude, float longitude, | ||
41 | OsmGpsMapBalloonCallback cb, gpointer data); | ||
42 | void osm_gps_map_osd_clear_balloon (OsmGpsMap *map); | ||
43 | harbaum | 73 | #endif |
44 | harbaum | 112 | |
45 | #endif |