vapi/osmgpsmap.vapi (11487B) - raw
1 /* osmgpsmap.vapi generated by vapigen-0.12, do not modify. */ 2 3 [CCode (cprefix = "OsmGpsMap", lower_case_cprefix = "osm_gps_map_")] 4 namespace OsmGpsMap { 5 [CCode (cheader_filename = "osm-gps-map.h")] 6 public class Image : GLib.Object { 7 [CCode (has_construct_function = false)] 8 public Image (); 9 public static unowned OsmGpsMap.Image add (OsmGpsMap.Map map, float latitude, float longitude, Gdk.Pixbuf image); 10 public static unowned OsmGpsMap.Image add_with_alignment (OsmGpsMap.Map map, float latitude, float longitude, Gdk.Pixbuf image, float xalign, float yalign); 11 public void draw (Gdk.Drawable drawable, Gdk.GC gc, Gdk.Rectangle rect); 12 public unowned OsmGpsMap.Point get_point (); 13 public static bool remove (OsmGpsMap.Map map, OsmGpsMap.Image image); 14 public static void remove_all (OsmGpsMap.Map map); 15 [NoAccessorMethod] 16 public Gdk.Pixbuf pixbuf { owned get; set construct; } 17 [NoAccessorMethod] 18 public OsmGpsMap.Point point { owned get; set construct; } 19 [NoAccessorMethod] 20 public float x_align { get; set construct; } 21 [NoAccessorMethod] 22 public float y_align { get; set construct; } 23 } 24 [CCode (cname="OsmGpsMap", type_id="OSM_TYPE_GPS_MAP", cheader_filename = "osm-gps-map.h")] 25 public class Map : Gtk.DrawingArea, Atk.Implementor, Gtk.Buildable { 26 [CCode (cname = "osm_gps_map_new", type = "GtkWidget*", has_construct_function = false)] 27 public Map (); 28 [CCode (cname = "osm_gps_map_add_image")] 29 public void add_image (float latitude, float longitude, Gdk.Pixbuf image); 30 [CCode (cname = "osm_gps_map_add_image_with_alignment")] 31 public void add_image_with_alignment (float latitude, float longitude, Gdk.Pixbuf image, float xalign, float yalign); 32 [CCode (cname = "osm_gps_map_layer_add")] 33 public void layer_add (OsmGpsMap.Layer layer); 34 [CCode (cname = "osm_gps_map_add_track")] 35 public void add_track (GLib.SList track); 36 [CCode (cname = "osm_gps_map_clear_gps")] 37 public void clear_gps (); 38 [CCode (cname = "osm_gps_map_clear_images")] 39 public void clear_images (); 40 [CCode (cname = "osm_gps_map_clear_tracks")] 41 public void clear_tracks (); 42 [CCode (cname = "osm_gps_map_convert_geographic_to_screen")] 43 public void convert_geographic_to_screen (OsmGpsMap.Point pt, int pixel_x, int pixel_y); 44 [CCode (cname = "osm_gps_map_convert_screen_to_geographic")] 45 public void convert_screen_to_geographic (int pixel_x, int pixel_y, OsmGpsMap.Point pt); 46 [CCode (cname = "osm_gps_map_download_cancel_all")] 47 public void download_cancel_all (); 48 [CCode (cname = "osm_gps_map_download_maps")] 49 public void download_maps (OsmGpsMap.Point pt1, OsmGpsMap.Point pt2, int zoom_start, int zoom_end); 50 [CCode (cname = "osm_gps_map_draw_gps")] 51 public void draw_gps (float latitude, float longitude, float heading); 52 [NoWrapper] 53 public virtual void draw_gps_point (Gdk.Drawable drawable); 54 [CCode (cname = "osm_gps_map_geographic_to_screen")] 55 public void geographic_to_screen (float latitude, float longitude, int pixel_x, int pixel_y); 56 [CCode (cname = "osm_gps_map_get_bbox")] 57 public void get_bbox (OsmGpsMap.Point pt1, OsmGpsMap.Point pt2); 58 [CCode (cname = "osm_gps_map_get_co_ordinates")] 59 public unowned OsmGpsMap.Point get_co_ordinates (int pixel_x, int pixel_y); 60 [CCode (cname = "osm_gps_map_get_default_cache_directory")] 61 public static unowned string get_default_cache_directory (); 62 [CCode (cname = "osm_gps_map_get_event_location")] 63 public unowned OsmGpsMap.Point get_event_location (Gdk.EventButton event); 64 [CCode (cname = "osm_gps_map_get_scale")] 65 public float get_scale (); 66 [CCode (cname = "osm_gps_map_gps_add")] 67 public void gps_add (float latitude, float longitude, float heading); 68 [CCode (cname = "osm_gps_map_gps_clear")] 69 public void gps_clear (); 70 [CCode (cname = "osm_gps_map_gps_get_track")] 71 public unowned OsmGpsMap.Track gps_get_track (); 72 [CCode (cname = "osm_gps_map_remove_image")] 73 public bool remove_image (Gdk.Pixbuf image); 74 [CCode (cname = "osm_gps_map_replace_track")] 75 public void replace_track (GLib.SList old_track, GLib.SList new_track); 76 [CCode (cname = "osm_gps_map_screen_to_geographic")] 77 public void screen_to_geographic (int pixel_x, int pixel_y, float latitude, float longitude); 78 [CCode (cname = "osm_gps_map_scroll")] 79 public void scroll (int dx, int dy); 80 [CCode (cname = "osm_gps_map_set_center")] 81 public void set_center (float latitude, float longitude); 82 [CCode (cname = "osm_gps_map_set_center_and_zoom")] 83 public void set_center_and_zoom (float latitude, float longitude, int zoom); 84 [CCode (cname = "osm_gps_map_set_keyboard_shortcut")] 85 public void set_keyboard_shortcut (OsmGpsMap.Key key, uint keyval); 86 [CCode (cname = "osm_gps_map_set_mapcenter")] 87 public void set_mapcenter (float latitude, float longitude, int zoom); 88 [CCode (cname = "osm_gps_map_set_zoom")] 89 public int set_zoom (int zoom); 90 [CCode (cname = "osm_gps_map_source_get_friendly_name")] 91 public static unowned string source_get_friendly_name (OsmGpsMap.Source source); 92 [CCode (cname = "osm_gps_map_source_get_image_format")] 93 public static unowned string source_get_image_format (OsmGpsMap.Source source); 94 [CCode (cname = "osm_gps_map_source_get_max_zoom")] 95 public static int source_get_max_zoom (OsmGpsMap.Source source); 96 [CCode (cname = "osm_gps_map_source_get_min_zoom")] 97 public static int source_get_min_zoom (OsmGpsMap.Source source); 98 [CCode (cname = "osm_gps_map_source_get_repo_uri")] 99 public static unowned string source_get_repo_uri (OsmGpsMap.Source source); 100 [CCode (cname = "osm_gps_map_source_is_valid")] 101 public static bool source_is_valid (OsmGpsMap.Source source); 102 [CCode (cname = "osm_gps_map_zoom_in")] 103 public static int zoom_in (OsmGpsMap.Map map); 104 [CCode (cname = "osm_gps_map_zoom_out")] 105 public static int zoom_out (OsmGpsMap.Map map); 106 [NoAccessorMethod] 107 public bool auto_center { get; set construct; } 108 [NoAccessorMethod] 109 public float auto_center_threshold { get; set construct; } 110 [NoAccessorMethod] 111 public bool auto_download { get; set construct; } 112 [NoAccessorMethod] 113 public int drag_limit { get; construct; } 114 [NoAccessorMethod] 115 public int gps_track_highlight_radius { get; set construct; } 116 [NoAccessorMethod] 117 public int gps_track_point_radius { get; set construct; } 118 [NoAccessorMethod] 119 public float gps_track_width { get; set construct; } 120 [NoAccessorMethod] 121 public string image_format { owned get; construct; } 122 [NoAccessorMethod] 123 public float latitude { get; } 124 [NoAccessorMethod] 125 public float longitude { get; } 126 [NoAccessorMethod] 127 public int map_source { get; set construct; } 128 [NoAccessorMethod] 129 public int map_x { get; construct; } 130 [NoAccessorMethod] 131 public int map_y { get; construct; } 132 [NoAccessorMethod] 133 public int max_zoom { get; construct; } 134 [NoAccessorMethod] 135 public int min_zoom { get; construct; } 136 [NoAccessorMethod] 137 public string proxy_uri { owned get; construct; } 138 [NoAccessorMethod] 139 public bool record_trip_history { get; set construct; } 140 [NoAccessorMethod] 141 public string repo_uri { owned get; construct; } 142 [NoAccessorMethod] 143 public bool show_gps_point { get; set construct; } 144 [NoAccessorMethod] 145 public bool show_trip_history { get; set construct; } 146 [NoAccessorMethod] 147 public string tile_cache { owned get; set construct; } 148 [NoAccessorMethod] 149 public string tile_cache_base { owned get; construct; } 150 [NoAccessorMethod] 151 public bool tile_cache_is_full_path { get; set; } 152 [NoAccessorMethod] 153 public int tiles_queued { get; } 154 [NoAccessorMethod] 155 public int zoom { get; construct; } 156 public virtual signal void changed (); 157 } 158 [CCode (cheader_filename = "osm-gps-map.h")] 159 public class Osd : GLib.Object, OsmGpsMap.Layer { 160 [CCode (has_construct_function = false)] 161 public Osd (); 162 [NoAccessorMethod] 163 public uint dpad_radius { get; set construct; } 164 [NoAccessorMethod] 165 public int osd_x { get; set construct; } 166 [NoAccessorMethod] 167 public int osd_y { get; set construct; } 168 [NoAccessorMethod] 169 public bool show_coordinates { get; set construct; } 170 [NoAccessorMethod] 171 public bool show_crosshair { get; set construct; } 172 [NoAccessorMethod] 173 public bool show_dpad { get; set construct; } 174 [NoAccessorMethod] 175 public bool show_gps_in_dpad { get; set construct; } 176 [NoAccessorMethod] 177 public bool show_gps_in_zoom { get; set construct; } 178 [NoAccessorMethod] 179 public bool show_scale { get; set construct; } 180 [NoAccessorMethod] 181 public bool show_zoom { get; set construct; } 182 } 183 [Compact] 184 [CCode (copy_function = "osm_gps_map_point_copy", type_id = "OSM_GPS_MAP_TYPE_POINT", cheader_filename = "osm-gps-map.h")] 185 public class Point { 186 public float rlat; 187 public float rlon; 188 public unowned OsmGpsMap.Point copy (); 189 [CCode (has_construct_function = false)] 190 public Point.degrees (float lat, float lon); 191 public void get_degrees (float lat, float lon); 192 public void get_radians (float rlat, float rlon); 193 [CCode (has_construct_function = false)] 194 public Point.radians (float rlat, float rlon); 195 public void set_degrees (float lat, float lon); 196 public void set_radians (float rlat, float rlon); 197 } 198 [CCode (cheader_filename = "osm-gps-map.h")] 199 public class Track : GLib.Object { 200 [CCode (has_construct_function = false)] 201 public Track (); 202 public static void add (OsmGpsMap.Map map, OsmGpsMap.Track track); 203 public void add_point (OsmGpsMap.Point point); 204 public void get_color (Gdk.Color color); 205 public unowned GLib.SList get_points (); 206 public static bool remove (OsmGpsMap.Map map, OsmGpsMap.Track track); 207 public static void remove_all (OsmGpsMap.Map map); 208 [NoAccessorMethod] 209 public float alpha { get; set construct; } 210 [NoAccessorMethod] 211 public Gdk.Color color { get; set; } 212 [NoAccessorMethod] 213 public float line_width { get; set construct; } 214 [NoAccessorMethod] 215 public void* track { get; construct; } 216 [NoAccessorMethod] 217 public bool visible { get; set construct; } 218 public virtual signal void point_added (OsmGpsMap.Point p0); 219 } 220 [CCode (cheader_filename = "osm-gps-map.h")] 221 public interface Layer { 222 public static void add (OsmGpsMap.Map map, OsmGpsMap.Layer layer); 223 public abstract bool busy (); 224 public abstract bool button_press (OsmGpsMap.Map map, Gdk.EventButton event); 225 public abstract void draw (OsmGpsMap.Map map, Gdk.Drawable drawable); 226 public static bool remove (OsmGpsMap.Map map, OsmGpsMap.Layer layer); 227 public static void remove_all (OsmGpsMap.Map map); 228 public abstract void render (OsmGpsMap.Map map); 229 } 230 [CCode (cname="OsmGpsMapKey_t", cprefix = "OSM_GPS_MAP_KEY_", has_type_id = false, cheader_filename = "osm-gps-map.h")] 231 public enum Key { 232 FULLSCREEN, 233 ZOOMIN, 234 ZOOMOUT, 235 UP, 236 DOWN, 237 LEFT, 238 RIGHT, 239 MAX 240 } 241 [CCode (cname="OsmGpsMapSource_t", cprefix = "OSM_GPS_MAP_SOURCE_", has_type_id = false, cheader_filename = "osm-gps-map.h")] 242 public enum Source { 243 NULL, 244 OPENSTREETMAP, 245 OPENSTREETMAP_RENDERER, 246 OPENAERIALMAP, 247 MAPS_FOR_FREE, 248 OPENCYCLEMAP, 249 OSM_PUBLIC_TRANSPORT, 250 GOOGLE_STREET, 251 GOOGLE_SATELLITE, 252 GOOGLE_HYBRID, 253 VIRTUAL_EARTH_STREET, 254 VIRTUAL_EARTH_SATELLITE, 255 VIRTUAL_EARTH_HYBRID, 256 YAHOO_STREET, 257 YAHOO_SATELLITE, 258 YAHOO_HYBRID, 259 OSMC_TRAILS, 260 LAST 261 } 262 [CCode (cheader_filename = "osm-gps-map.h")] 263 public const string CACHE_AUTO; 264 [CCode (cheader_filename = "osm-gps-map.h")] 265 public const string CACHE_DISABLED; 266 [CCode (cheader_filename = "osm-gps-map.h")] 267 public const string CACHE_FRIENDLY; 268 [CCode (cheader_filename = "osm-gps-map.h")] 269 public const int INVALID; 270 }