121 |
gpointer priv; |
gpointer priv; |
122 |
} osm_gps_map_osd_t; |
} osm_gps_map_osd_t; |
123 |
|
|
124 |
typedef void (*OsmGpsMapBalloonCallback)(cairo_t *, OsmGpsMapRect_t *rect, |
typedef enum { |
125 |
gpointer data); |
OSM_GPS_MAP_BALLOON_EVENT_TYPE_DRAW, |
126 |
|
OSM_GPS_MAP_BALLOON_EVENT_TYPE_CLICK, |
127 |
|
OSM_GPS_MAP_BALLOON_EVENT_TYPE_REMOVED, |
128 |
|
} osm_gps_map_balloon_event_type_t; |
129 |
|
|
130 |
|
typedef struct { |
131 |
|
osm_gps_map_balloon_event_type_t type; |
132 |
|
union { |
133 |
|
struct { |
134 |
|
OsmGpsMapRect_t *rect; |
135 |
|
cairo_t *cr; |
136 |
|
} draw; |
137 |
|
|
138 |
|
struct { |
139 |
|
int x, y; |
140 |
|
gboolean down; |
141 |
|
} click; |
142 |
|
} data; |
143 |
|
} osm_gps_map_balloon_event_t; |
144 |
|
|
145 |
|
typedef void (*OsmGpsMapBalloonCallback)(osm_gps_map_balloon_event_t *event, gpointer data); |
146 |
#define OSM_GPS_MAP_BALLOON_CALLBACK(f) ((OsmGpsMapBalloonCallback) (f)) |
#define OSM_GPS_MAP_BALLOON_CALLBACK(f) ((OsmGpsMapBalloonCallback) (f)) |
147 |
|
|
148 |
GType osm_gps_map_get_type (void) G_GNUC_CONST; |
GType osm_gps_map_get_type (void) G_GNUC_CONST; |