]> Pileus Git - grits/blob - src/aweather-view.h
Converting a lot of stuff to GObject and adding gtk-doc support
[grits] / src / aweather-view.h
1 #ifndef __AWEATHER_VIEW_H__
2 #define __AWEATHER_VIEW_H__
3
4 #include <glib-object.h>
5
6 /* Type macros */
7 #define AWEATHER_TYPE_VIEW            (aweather_view_get_type())
8 #define AWEATHER_VIEW(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),   AWEATHER_TYPE_VIEW, AWeatherView))
9 #define AWEATHER_IS_VIEW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),   AWEATHER_TYPE_VIEW))
10 #define AWEATHER_VIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST   ((klass), AWEATHER_TYPE_VIEW, AWeatherViewClass))
11 #define AWEATHER_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE   ((klass), AWEATHER_TYPE_VIEW))
12 #define AWEATHER_VIEW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),   AWEATHER_TYPE_VIEW, AWeatherViewClass))
13
14 typedef struct _AWeatherView      AWeatherView;
15 typedef struct _AWeatherViewClass AWeatherViewClass;
16
17 struct _AWeatherView {
18         GObject parent_instance;
19
20         /* instance members */
21         gint   time;
22         gchar *location;
23 };
24
25 struct _AWeatherViewClass {
26         GObjectClass parent_class;
27         
28         /* class members */
29 };
30
31 GType aweather_view_get_type(void);
32
33 /* Methods */
34 AWeatherView *aweather_view_new();
35 void aweather_view_set_time(AWeatherView *view, gint time);
36 gint aweather_view_get_time(AWeatherView *view);
37
38 void aweather_view_set_location(AWeatherView *view, const gchar *location);
39 gchar *aweather_view_get_location(AWeatherView *view);
40
41 #endif