3 * GtkGps: Display GPS satellite information
4 * Copyright (C) 2007 Kaj-Michael Lang
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 #define GTK_GPS_TYPE (gtk_gps_get_type ())
29 #define GTK_GPS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_GPS_TYPE, GtkGps))
30 #define GTK_GPS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_GPS_TYPE, GtkGpsClass))
31 #define GTK_IS_GPS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_GPS_TYPE))
33 typedef struct _GtkGps GtkGps;
34 typedef struct _GtkGpsClass GtkGpsClass;
39 GTK_GPS_MODE_COMBINED,
43 GtkDrawingArea widget;
51 GtkGpsMode display_mode;
53 PangoContext *context;
55 PangoFontDescription *fontdesc;
62 GtkWidgetClass parent_class;
65 GType gtk_gps_get_type(void);
66 GtkWidget* gtk_gps_new(GtkGpsMode display_mode, GpsData *data);
67 void gtk_gps_refresh(GtkWidget *widget);
71 #endif /* __GTK_GPS_H__ */