2
; boxed definitions ...
6
(c-name "GWeatherLocation")
7
(gtype-id "GWEATHER_TYPE_LOCATION")
10
(define-boxed Timezone
11
(in-module "GWeather")
12
(c-name "GWeatherTimezone")
13
(gtype-id "GWEATHER_TYPE_TIMEZONE")
16
; interface definitions ...
18
; object definitions ...
20
(define-object LocationEntry
21
(in-module "GWeather")
23
(c-name "GWeatherLocationEntry")
24
(gtype-id "GWEATHER_TYPE_LOCATION_ENTRY")
27
(define-object TimezoneMenu
28
(in-module "GWeather")
29
(parent "GtkComboBox")
30
(c-name "GWeatherTimezoneMenu")
31
(gtype-id "GWEATHER_TYPE_TIMEZONE_MENU")
34
; pointer definitions ...
36
;; Enumerations and Flags ...
38
(define-enum LocationLevel
39
(in-module "GWeather")
40
(c-name "GWeatherLocationLevel")
41
(gtype-id "GWEATHER_TYPE_LOCATION_LEVEL")
43
'("world" "GWEATHER_LOCATION_WORLD")
44
'("region" "GWEATHER_LOCATION_REGION")
45
'("country" "GWEATHER_LOCATION_COUNTRY")
46
'("adm1" "GWEATHER_LOCATION_ADM1")
47
'("adm2" "GWEATHER_LOCATION_ADM2")
48
'("city" "GWEATHER_LOCATION_CITY")
49
'("weather-station" "GWEATHER_LOCATION_WEATHER_STATION")
54
;; From gweather-enum-types.h
56
(define-function g_weather_location_level_get_type
57
(c-name "g_weather_location_level_get_type")
63
;; From gweather-location.h
65
(define-function location_get_type
66
(c-name "gweather_location_get_type")
70
(define-function location_new_world
71
(c-name "gweather_location_new_world")
72
(return-type "GWeatherLocation*")
74
'("gboolean" "use_regions")
79
(of-object "GWeatherLocation")
80
(c-name "gweather_location_ref")
81
(return-type "GWeatherLocation*")
85
(of-object "GWeatherLocation")
86
(c-name "gweather_location_unref")
90
(define-method get_name
91
(of-object "GWeatherLocation")
92
(c-name "gweather_location_get_name")
93
(return-type "const-char*")
96
(define-method get_sort_name
97
(of-object "GWeatherLocation")
98
(c-name "gweather_location_get_sort_name")
99
(return-type "const-char*")
102
(define-method get_level
103
(of-object "GWeatherLocation")
104
(c-name "gweather_location_get_level")
105
(return-type "GWeatherLocationLevel")
108
(define-method get_parent
109
(of-object "GWeatherLocation")
110
(c-name "gweather_location_get_parent")
111
(return-type "GWeatherLocation*")
114
(define-method get_children
115
(of-object "GWeatherLocation")
116
(c-name "gweather_location_get_children")
117
(return-type "GWeatherLocation**")
120
(define-method free_children
121
(of-object "GWeatherLocation")
122
(c-name "gweather_location_free_children")
125
'("GWeatherLocation**" "children")
129
(define-method has_coords
130
(of-object "GWeatherLocation")
131
(c-name "gweather_location_has_coords")
132
(return-type "gboolean")
135
(define-method get_coords
136
(of-object "GWeatherLocation")
137
(c-name "gweather_location_get_coords")
140
'("double*" "latitude")
141
'("double*" "longitude")
145
(define-method get_distance
146
(of-object "GWeatherLocation")
147
(c-name "gweather_location_get_distance")
148
(return-type "double")
150
'("GWeatherLocation*" "loc2")
154
(define-method get_country
155
(of-object "GWeatherLocation")
156
(c-name "gweather_location_get_country")
157
(return-type "const-char*")
160
(define-method get_timezone
161
(of-object "GWeatherLocation")
162
(c-name "gweather_location_get_timezone")
163
(return-type "GWeatherTimezone*")
166
(define-method get_timezones
167
(of-object "GWeatherLocation")
168
(c-name "gweather_location_get_timezones")
169
(return-type "GWeatherTimezone**")
172
(define-method free_timezones
173
(of-object "GWeatherLocation")
174
(c-name "gweather_location_free_timezones")
177
'("GWeatherTimezone**" "zones")
181
(define-method get_code
182
(of-object "GWeatherLocation")
183
(c-name "gweather_location_get_code")
184
(return-type "const-char*")
187
(define-method get_city_name
188
(of-object "GWeatherLocation")
189
(c-name "gweather_location_get_city_name")
190
(return-type "char*")
193
(define-method get_weather
194
(of-object "GWeatherLocation")
195
(c-name "gweather_location_get_weather")
196
(return-type "WeatherInfo*")
201
;; From gweather-timezone.h
203
(define-function timezone_get_type
204
(c-name "gweather_timezone_get_type")
205
(return-type "GType")
208
(define-method get_name
209
(of-object "GWeatherTimezone")
210
(c-name "gweather_timezone_get_name")
211
(return-type "const-char*")
214
(define-method get_tzid
215
(of-object "GWeatherTimezone")
216
(c-name "gweather_timezone_get_tzid")
217
(return-type "const-char*")
220
(define-method get_offset
221
(of-object "GWeatherTimezone")
222
(c-name "gweather_timezone_get_offset")
226
(define-method has_dst
227
(of-object "GWeatherTimezone")
228
(c-name "gweather_timezone_has_dst")
229
(return-type "gboolean")
232
(define-method get_dst_offset
233
(of-object "GWeatherTimezone")
234
(c-name "gweather_timezone_get_dst_offset")
239
(of-object "GWeatherTimezone")
240
(c-name "gweather_timezone_ref")
241
(return-type "GWeatherTimezone*")
245
(of-object "GWeatherTimezone")
246
(c-name "gweather_timezone_unref")
252
;; From location-entry.h
254
(define-function location_entry_get_type
255
(c-name "gweather_location_entry_get_type")
256
(return-type "GType")
259
(define-function location_entry_new
260
(c-name "gweather_location_entry_new")
261
(is-constructor-of "GWeatherLocationEntry")
262
(return-type "GtkWidget*")
268
(define-method set_location
269
(of-object "GWeatherLocationEntry")
270
(c-name "gweather_location_entry_set_location")
273
'("GWeatherLocation*" "loc")
277
(define-method get_location
278
(of-object "GWeatherLocationEntry")
279
(c-name "gweather_location_entry_get_location")
280
(return-type "GWeatherLocation*")
283
(define-method set_city
284
(of-object "GWeatherLocationEntry")
285
(c-name "gweather_location_entry_set_city")
288
'("const-char*" "city_name")
289
'("const-char*" "code")
295
;; From timezone-menu.h
297
(define-function timezone_menu_get_type
298
(c-name "gweather_timezone_menu_get_type")
299
(return-type "GType")
302
(define-function timezone_menu_new
303
(c-name "gweather_timezone_menu_new")
304
(is-constructor-of "GWeatherTimezoneMenu")
305
(return-type "GtkWidget*")
311
(define-method set_tzid
312
(of-object "GWeatherTimezoneMenu")
313
(c-name "gweather_timezone_menu_set_tzid")
316
'("const-char*" "tzid")
320
(define-method get_tzid
321
(of-object "GWeatherTimezoneMenu")
322
(c-name "gweather_timezone_menu_get_tzid")
323
(return-type "const-char*")