~ubuntu-branches/ubuntu/maverick/libchamplain/maverick

« back to all changes in this revision

Viewing changes to bindings/python/champlain/pychamplain.defs

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons, Laurent Bigonville, Sjoerd Simons
  • Date: 2009-09-15 00:01:41 UTC
  • mfrom: (1.1.3 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090915000141-i8fg5n1t02zxo79m
Tags: 0.4.0-1
[ Laurent Bigonville ]
* debian/control: Add libchamplain-0.3-dev dependency to
  libchamplain-gtk-0.3-dev

[ Sjoerd Simons ]
* New upstream release (0.4.0)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
;; -*- scheme -*-
2
2
; object definitions ...
3
 
(define-object BaseMarker
4
 
  (in-module "Champlain")
5
 
  (parent "ClutterGroup")
6
 
  (c-name "ChamplainBaseMarker")
7
 
  (gtype-id "CHAMPLAIN_TYPE_BASE_MARKER")
8
 
)
9
 
 
10
 
(define-object Cache
11
 
  (in-module "Champlain")
12
 
  (parent "GObject")
13
 
  (c-name "ChamplainCache")
14
 
  (gtype-id "CHAMPLAIN_TYPE_CACHE")
15
 
)
16
 
 
17
 
(define-object Layer
18
 
  (in-module "Champlain")
19
 
  (parent "ClutterGroup")
20
 
  (c-name "ChamplainLayer")
21
 
  (gtype-id "CHAMPLAIN_TYPE_LAYER")
22
 
)
23
 
 
24
 
(define-object MapSource
25
 
  (in-module "Champlain")
26
 
  (parent "GObject")
27
 
  (c-name "ChamplainMapSource")
28
 
  (gtype-id "CHAMPLAIN_TYPE_MAP_SOURCE")
29
 
)
30
 
 
31
 
(define-object MapSourceFactory
32
 
  (in-module "Champlain")
33
 
  (parent "GObject")
34
 
  (c-name "ChamplainMapSourceFactory")
35
 
  (gtype-id "CHAMPLAIN_TYPE_MAP_SOURCE_FACTORY")
36
 
)
37
 
 
38
 
(define-object Marker
39
 
  (in-module "Champlain")
40
 
  (parent "ChamplainBaseMarker")
41
 
  (c-name "ChamplainMarker")
42
 
  (gtype-id "CHAMPLAIN_TYPE_MARKER")
43
 
)
44
 
 
45
 
(define-object NetworkMapSource
46
 
  (in-module "Champlain")
47
 
  (parent "ChamplainMapSource")
48
 
  (c-name "ChamplainNetworkMapSource")
49
 
  (gtype-id "CHAMPLAIN_TYPE_NETWORK_MAP_SOURCE")
50
 
)
51
 
 
52
 
(define-object Polygon
53
 
  (in-module "Champlain")
54
 
  (parent "GObject")
55
 
  (c-name "ChamplainPolygon")
56
 
  (gtype-id "CHAMPLAIN_TYPE_POLYGON")
57
 
)
58
 
 
59
 
(define-object Tile
60
 
  (in-module "Champlain")
61
 
  (parent "GObject")
62
 
  (c-name "ChamplainTile")
63
 
  (gtype-id "CHAMPLAIN_TYPE_TILE")
64
 
)
65
 
 
66
 
(define-object View
67
 
  (in-module "Champlain")
68
 
  (parent "ClutterGroup")
69
 
  (c-name "ChamplainView")
70
 
  (gtype-id "CHAMPLAIN_TYPE_VIEW")
71
 
)
72
 
 
73
 
(define-object ZoomLevel
74
 
  (in-module "Champlain")
75
 
  (parent "GObject")
76
 
  (c-name "ChamplainZoomLevel")
77
 
  (gtype-id "CHAMPLAIN_TYPE_ZOOM_LEVEL")
78
 
)
79
 
 
80
 
;; Enumerations and flags ...
81
 
 
82
 
(define-enum ScrollMode
83
 
  (in-module "Champlain")
84
 
  (c-name "ChamplainScrollMode")
85
 
  (gtype-id "CHAMPLAIN_TYPE_SCROLL_MODE")
86
 
  (values
87
 
    '("push" "CHAMPLAIN_SCROLL_MODE_PUSH")
88
 
    '("kinetic" "CHAMPLAIN_SCROLL_MODE_KINETIC")
89
 
  )
90
 
)
91
 
 
92
 
(define-enum State
93
 
  (in-module "Champlain")
94
 
  (c-name "ChamplainState")
95
 
  (gtype-id "CHAMPLAIN_TYPE_STATE")
96
 
  (values
97
 
    '("none" "CHAMPLAIN_STATE_NONE")
98
 
    '("init" "CHAMPLAIN_STATE_INIT")
99
 
    '("loading" "CHAMPLAIN_STATE_LOADING")
100
 
    '("validating-cache" "CHAMPLAIN_STATE_VALIDATING_CACHE")
101
 
    '("done" "CHAMPLAIN_STATE_DONE")
102
 
  )
103
 
)
104
 
 
105
 
(define-enum MapProjection
106
 
  (in-module "Champlain")
107
 
  (c-name "ChamplainMapProjection")
108
 
  (gtype-id "CHAMPLAIN_TYPE_MAP_PROJECTION")
109
 
  (values
110
 
    '("r" "CHAMPLAIN_MAP_PROJECTION_MERCATOR")
111
 
  )
112
 
)
113
 
 
114
 
 
115
 
;; From champlain.h
116
 
 
117
 
 
118
 
 
119
 
;; From champlain-cache.h
120
 
 
121
 
(define-function cache_get_type
122
 
  (c-name "champlain_cache_get_type")
123
 
  (return-type "GType")
124
 
)
125
 
 
126
 
(define-function cache_dup_default
127
 
  (c-name "champlain_cache_dup_default")
128
 
  (return-type "ChamplainCache*")
129
 
)
130
 
 
131
 
(define-function cache_get_default
132
 
  (c-name "champlain_cache_get_default")
133
 
  (return-type "ChamplainCache*")
134
 
)
135
 
 
136
 
(define-method update_tile
137
 
  (of-object "ChamplainCache")
138
 
  (c-name "champlain_cache_update_tile")
139
 
  (return-type "none")
140
 
  (parameters
141
 
    '("ChamplainTile*" "tile")
142
 
    '("guint" "filesize")
143
 
  )
144
 
)
145
 
 
146
 
(define-method fill_tile
147
 
  (of-object "ChamplainCache")
148
 
  (c-name "champlain_cache_fill_tile")
149
 
  (return-type "gboolean")
150
 
  (parameters
151
 
    '("ChamplainTile*" "tile")
152
 
  )
153
 
)
154
 
 
155
 
(define-method tile_is_expired
156
 
  (of-object "ChamplainCache")
157
 
  (c-name "champlain_cache_tile_is_expired")
158
 
  (return-type "gboolean")
159
 
  (parameters
160
 
    '("ChamplainTile*" "tile")
161
 
  )
162
 
)
163
 
 
164
 
(define-method set_size_limit
165
 
  (of-object "ChamplainCache")
166
 
  (c-name "champlain_cache_set_size_limit")
167
 
  (return-type "none")
168
 
  (parameters
169
 
    '("guint" "size_limit")
170
 
  )
171
 
)
172
 
 
173
 
(define-method get_size_limit
174
 
  (of-object "ChamplainCache")
175
 
  (c-name "champlain_cache_get_size_limit")
176
 
  (return-type "guint")
177
 
)
178
 
 
179
 
(define-method purge
180
 
  (of-object "ChamplainCache")
181
 
  (c-name "champlain_cache_purge")
182
 
  (return-type "none")
183
 
)
184
 
 
185
 
(define-method purge_on_idle
186
 
  (of-object "ChamplainCache")
187
 
  (c-name "champlain_cache_purge_on_idle")
188
 
  (return-type "none")
189
 
)
190
 
 
191
 
 
192
 
 
193
 
;; From champlain-view.h
194
 
 
195
 
(define-function view_get_type
196
 
  (c-name "champlain_view_get_type")
197
 
  (return-type "GType")
198
 
)
199
 
 
200
 
(define-function view_new
201
 
  (c-name "champlain_view_new")
202
 
  (is-constructor-of "ChamplainView")
203
 
  (return-type "ClutterActor*")
204
 
)
205
 
 
206
 
(define-method center_on
207
 
  (of-object "ChamplainView")
208
 
  (c-name "champlain_view_center_on")
209
 
  (return-type "none")
210
 
  (parameters
211
 
    '("gdouble" "latitude")
212
 
    '("gdouble" "longitude")
213
 
  )
214
 
)
215
 
 
216
 
(define-method go_to
217
 
  (of-object "ChamplainView")
218
 
  (c-name "champlain_view_go_to")
219
 
  (return-type "none")
220
 
  (parameters
221
 
    '("gdouble" "latitude")
222
 
    '("gdouble" "longitude")
223
 
  )
224
 
)
225
 
 
226
 
(define-method stop_go_to
227
 
  (of-object "ChamplainView")
228
 
  (c-name "champlain_view_stop_go_to")
229
 
  (return-type "none")
230
 
)
231
 
 
232
 
(define-method zoom_in
233
 
  (of-object "ChamplainView")
234
 
  (c-name "champlain_view_zoom_in")
235
 
  (return-type "none")
236
 
)
237
 
 
238
 
(define-method zoom_out
239
 
  (of-object "ChamplainView")
240
 
  (c-name "champlain_view_zoom_out")
241
 
  (return-type "none")
242
 
)
243
 
 
244
 
(define-method set_zoom_level
245
 
  (of-object "ChamplainView")
246
 
  (c-name "champlain_view_set_zoom_level")
247
 
  (return-type "none")
248
 
  (parameters
249
 
    '("gint" "zoom_level")
250
 
  )
251
 
)
252
 
 
253
 
(define-method set_min_zoom_level
254
 
  (of-object "ChamplainView")
255
 
  (c-name "champlain_view_set_min_zoom_level")
256
 
  (return-type "none")
257
 
  (parameters
258
 
    '("gint" "zoom_level")
259
 
  )
260
 
)
261
 
 
262
 
(define-method set_max_zoom_level
263
 
  (of-object "ChamplainView")
264
 
  (c-name "champlain_view_set_max_zoom_level")
265
 
  (return-type "none")
266
 
  (parameters
267
 
    '("gint" "zoom_level")
268
 
  )
269
 
)
270
 
 
271
 
(define-method ensure_visible
272
 
  (of-object "ChamplainView")
273
 
  (c-name "champlain_view_ensure_visible")
274
 
  (return-type "none")
275
 
  (parameters
276
 
    '("gdouble" "lat1")
277
 
    '("gdouble" "lon1")
278
 
    '("gdouble" "lat2")
279
 
    '("gdouble" "lon2")
280
 
    '("gboolean" "animate")
281
 
  )
282
 
)
283
 
 
284
 
(define-method ensure_markers_visible
285
 
  (of-object "ChamplainView")
286
 
  (c-name "champlain_view_ensure_markers_visible")
287
 
  (return-type "none")
288
 
  (parameters
289
 
    '("ChamplainBaseMarker*[]" "markers")
290
 
    '("gboolean" "animate")
291
 
  )
292
 
)
293
 
 
294
 
(define-method set_map_source
295
 
  (of-object "ChamplainView")
296
 
  (c-name "champlain_view_set_map_source")
297
 
  (return-type "none")
298
 
  (parameters
299
 
    '("ChamplainMapSource*" "map_source")
300
 
  )
301
 
)
302
 
 
303
 
(define-method set_size
304
 
  (of-object "ChamplainView")
305
 
  (c-name "champlain_view_set_size")
306
 
  (return-type "none")
307
 
  (parameters
308
 
    '("guint" "width")
309
 
    '("guint" "height")
310
 
  )
311
 
)
312
 
 
313
 
(define-method set_decel_rate
314
 
  (of-object "ChamplainView")
315
 
  (c-name "champlain_view_set_decel_rate")
316
 
  (return-type "none")
317
 
  (parameters
318
 
    '("gdouble" "rate")
319
 
  )
320
 
)
321
 
 
322
 
(define-method set_scroll_mode
323
 
  (of-object "ChamplainView")
324
 
  (c-name "champlain_view_set_scroll_mode")
325
 
  (return-type "none")
326
 
  (parameters
327
 
    '("ChamplainScrollMode" "mode")
328
 
  )
329
 
)
330
 
 
331
 
(define-method set_keep_center_on_resize
332
 
  (of-object "ChamplainView")
333
 
  (c-name "champlain_view_set_keep_center_on_resize")
334
 
  (return-type "none")
335
 
  (parameters
336
 
    '("gboolean" "value")
337
 
  )
338
 
)
339
 
 
340
 
(define-method set_show_license
341
 
  (of-object "ChamplainView")
342
 
  (c-name "champlain_view_set_show_license")
343
 
  (return-type "none")
344
 
  (parameters
345
 
    '("gboolean" "value")
346
 
  )
347
 
)
348
 
 
349
 
(define-method set_zoom_on_double_click
350
 
  (of-object "ChamplainView")
351
 
  (c-name "champlain_view_set_zoom_on_double_click")
352
 
  (return-type "none")
353
 
  (parameters
354
 
    '("gboolean" "value")
355
 
  )
356
 
)
357
 
 
358
 
(define-method add_layer
359
 
  (of-object "ChamplainView")
360
 
  (c-name "champlain_view_add_layer")
361
 
  (return-type "none")
362
 
  (parameters
363
 
    '("ChamplainLayer*" "layer")
364
 
  )
365
 
)
366
 
 
367
 
(define-method get_coords_from_event
368
 
  (of-object "ChamplainView")
369
 
  (c-name "champlain_view_get_coords_from_event")
370
 
  (return-type "gboolean")
371
 
  (parameters
372
 
    '("ClutterEvent*" "event")
373
 
    '("gdouble*" "lat")
374
 
    '("gdouble*" "lon")
375
 
  )
376
 
)
377
 
 
378
 
(define-method get_coords_at
379
 
  (of-object "ChamplainView")
380
 
  (c-name "champlain_view_get_coords_at")
381
 
  (return-type "gboolean")
382
 
  (parameters
383
 
    '("guint" "x")
384
 
    '("guint" "y")
385
 
    '("gdouble*" "lat")
386
 
    '("gdouble*" "lon")
387
 
  )
388
 
)
389
 
 
390
 
(define-method get_zoom_level
391
 
  (of-object "ChamplainView")
392
 
  (c-name "champlain_view_get_zoom_level")
393
 
  (return-type "gint")
394
 
)
395
 
 
396
 
(define-method get_min_zoom_level
397
 
  (of-object "ChamplainView")
398
 
  (c-name "champlain_view_get_min_zoom_level")
399
 
  (return-type "gint")
400
 
)
401
 
 
402
 
(define-method get_max_zoom_level
403
 
  (of-object "ChamplainView")
404
 
  (c-name "champlain_view_get_max_zoom_level")
405
 
  (return-type "gint")
406
 
)
407
 
 
408
 
(define-method get_map_source
409
 
  (of-object "ChamplainView")
410
 
  (c-name "champlain_view_get_map_source")
411
 
  (return-type "ChamplainMapSource*")
412
 
)
413
 
 
414
 
(define-method get_decel_rate
415
 
  (of-object "ChamplainView")
416
 
  (c-name "champlain_view_get_decel_rate")
417
 
  (return-type "gdouble")
418
 
)
419
 
 
420
 
(define-method get_scroll_mode
421
 
  (of-object "ChamplainView")
422
 
  (c-name "champlain_view_get_scroll_mode")
423
 
  (return-type "ChamplainScrollMode")
424
 
)
425
 
 
426
 
(define-method get_keep_center_on_resize
427
 
  (of-object "ChamplainView")
428
 
  (c-name "champlain_view_get_keep_center_on_resize")
429
 
  (return-type "gboolean")
430
 
)
431
 
 
432
 
(define-method get_show_license
433
 
  (of-object "ChamplainView")
434
 
  (c-name "champlain_view_get_show_license")
435
 
  (return-type "gboolean")
436
 
)
437
 
 
438
 
(define-method get_zoom_on_double_click
439
 
  (of-object "ChamplainView")
440
 
  (c-name "champlain_view_get_zoom_on_double_click")
441
 
  (return-type "gboolean")
442
 
)
443
 
 
444
 
(define-method add_polygon
445
 
  (of-object "ChamplainView")
446
 
  (c-name "champlain_view_add_polygon")
447
 
  (return-type "none")
448
 
  (parameters
449
 
    '("ChamplainPolygon*" "polygon")
450
 
  )
451
 
)
452
 
 
453
 
(define-method remove_polygon
454
 
  (of-object "ChamplainView")
455
 
  (c-name "champlain_view_remove_polygon")
456
 
  (return-type "none")
457
 
  (parameters
458
 
    '("ChamplainPolygon*" "polygon")
459
 
  )
460
 
)
461
 
 
462
 
 
463
 
 
464
 
;; From champlain-defines.h
465
 
 
466
 
 
467
 
 
468
 
;; From champlain-polygon.h
469
 
 
470
 
(define-function polygon_get_type
471
 
  (c-name "champlain_polygon_get_type")
472
 
  (return-type "GType")
473
 
)
474
 
 
475
 
(define-function polygon_new
476
 
  (c-name "champlain_polygon_new")
477
 
  (is-constructor-of "ChamplainPolygon")
478
 
  (return-type "ChamplainPolygon*")
479
 
)
480
 
 
481
 
(define-method append_point
482
 
  (of-object "ChamplainPolygon")
483
 
  (c-name "champlain_polygon_append_point")
484
 
  (return-type "ChamplainPoint*")
485
 
  (parameters
486
 
    '("gdouble" "lat")
487
 
    '("gdouble" "lon")
488
 
  )
489
 
)
490
 
 
491
 
(define-method insert_point
492
 
  (of-object "ChamplainPolygon")
493
 
  (c-name "champlain_polygon_insert_point")
494
 
  (return-type "ChamplainPoint*")
495
 
  (parameters
496
 
    '("gdouble" "lat")
497
 
    '("gdouble" "lon")
498
 
    '("gint" "pos")
499
 
  )
500
 
)
501
 
 
502
 
(define-method clear_points
503
 
  (of-object "ChamplainPolygon")
504
 
  (c-name "champlain_polygon_clear_points")
505
 
  (return-type "none")
506
 
)
507
 
 
508
 
(define-method get_points
509
 
  (of-object "ChamplainPolygon")
510
 
  (c-name "champlain_polygon_get_points")
511
 
  (return-type "GList*")
512
 
)
513
 
 
514
 
(define-method set_fill_color
515
 
  (of-object "ChamplainPolygon")
516
 
  (c-name "champlain_polygon_set_fill_color")
517
 
  (return-type "none")
518
 
  (parameters
519
 
    '("const-ClutterColor*" "color")
520
 
  )
521
 
)
522
 
 
523
 
(define-method set_stroke_color
524
 
  (of-object "ChamplainPolygon")
525
 
  (c-name "champlain_polygon_set_stroke_color")
526
 
  (return-type "none")
527
 
  (parameters
528
 
    '("const-ClutterColor*" "color")
529
 
  )
530
 
)
531
 
 
532
 
(define-method get_fill_color
533
 
  (of-object "ChamplainPolygon")
534
 
  (c-name "champlain_polygon_get_fill_color")
535
 
  (return-type "ClutterColor*")
536
 
)
537
 
 
538
 
(define-method get_stroke_color
539
 
  (of-object "ChamplainPolygon")
540
 
  (c-name "champlain_polygon_get_stroke_color")
541
 
  (return-type "ClutterColor*")
542
 
)
543
 
 
544
 
(define-method get_fill
545
 
  (of-object "ChamplainPolygon")
546
 
  (c-name "champlain_polygon_get_fill")
547
 
  (return-type "gboolean")
548
 
)
549
 
 
550
 
(define-method set_fill
551
 
  (of-object "ChamplainPolygon")
552
 
  (c-name "champlain_polygon_set_fill")
553
 
  (return-type "none")
554
 
  (parameters
555
 
    '("gboolean" "value")
556
 
  )
557
 
)
558
 
 
559
 
(define-method get_stroke
560
 
  (of-object "ChamplainPolygon")
561
 
  (c-name "champlain_polygon_get_stroke")
562
 
  (return-type "gboolean")
563
 
)
564
 
 
565
 
(define-method set_stroke
566
 
  (of-object "ChamplainPolygon")
567
 
  (c-name "champlain_polygon_set_stroke")
568
 
  (return-type "none")
569
 
  (parameters
570
 
    '("gboolean" "value")
571
 
  )
572
 
)
573
 
 
574
 
(define-method set_stroke_width
575
 
  (of-object "ChamplainPolygon")
576
 
  (c-name "champlain_polygon_set_stroke_width")
577
 
  (return-type "none")
578
 
  (parameters
579
 
    '("gdouble" "value")
580
 
  )
581
 
)
582
 
 
583
 
(define-method get_stroke_width
584
 
  (of-object "ChamplainPolygon")
585
 
  (c-name "champlain_polygon_get_stroke_width")
586
 
  (return-type "gdouble")
587
 
)
588
 
 
589
 
(define-method show
590
 
  (of-object "ChamplainPolygon")
591
 
  (c-name "champlain_polygon_show")
592
 
  (return-type "none")
593
 
)
594
 
 
595
 
(define-method hide
596
 
  (of-object "ChamplainPolygon")
597
 
  (c-name "champlain_polygon_hide")
598
 
  (return-type "none")
599
 
)
600
 
 
601
 
 
602
 
 
603
 
;; From champlain-point.h
604
 
 
605
 
(define-function point_get_type
606
 
  (c-name "champlain_point_get_type")
607
 
  (return-type "GType")
608
 
)
609
 
 
610
 
(define-method copy
611
 
  (of-object "ChamplainPoint")
612
 
  (c-name "champlain_point_copy")
613
 
  (return-type "ChamplainPoint*")
614
 
)
615
 
 
616
 
(define-method free
617
 
  (of-object "ChamplainPoint")
618
 
  (c-name "champlain_point_free")
619
 
  (return-type "none")
620
 
)
621
 
 
622
 
(define-function point_new
623
 
  (c-name "champlain_point_new")
624
 
  (is-constructor-of "ChamplainPoint")
625
 
  (return-type "ChamplainPoint*")
626
 
  (parameters
627
 
    '("gdouble" "lat")
628
 
    '("gdouble" "lon")
629
 
  )
630
 
)
631
 
 
632
 
 
633
 
 
634
 
;; From champlain-layer.h
635
 
 
636
 
(define-function layer_get_type
637
 
  (c-name "champlain_layer_get_type")
638
 
  (return-type "GType")
639
 
)
640
 
 
641
 
(define-function layer_new
642
 
  (c-name "champlain_layer_new")
643
 
  (is-constructor-of "ChamplainLayer")
644
 
  (return-type "ChamplainLayer*")
645
 
)
646
 
 
647
 
 
648
 
 
649
 
;; From champlain-map-source.h
650
 
 
651
 
(define-function map_source_get_type
652
 
  (c-name "champlain_map_source_get_type")
653
 
  (return-type "GType")
654
 
)
655
 
 
656
 
(define-method get_min_zoom_level
657
 
  (of-object "ChamplainMapSource")
658
 
  (c-name "champlain_map_source_get_min_zoom_level")
659
 
  (return-type "gint")
660
 
)
661
 
 
662
 
(define-method get_max_zoom_level
663
 
  (of-object "ChamplainMapSource")
664
 
  (c-name "champlain_map_source_get_max_zoom_level")
665
 
  (return-type "gint")
666
 
)
667
 
 
668
 
(define-method get_tile_size
669
 
  (of-object "ChamplainMapSource")
670
 
  (c-name "champlain_map_source_get_tile_size")
671
 
  (return-type "guint")
672
 
)
673
 
 
674
 
(define-method get_x
675
 
  (of-object "ChamplainMapSource")
676
 
  (c-name "champlain_map_source_get_x")
677
 
  (return-type "guint")
678
 
  (parameters
679
 
    '("gint" "zoom_level")
680
 
    '("gdouble" "longitude")
681
 
  )
682
 
)
683
 
 
684
 
(define-method get_y
685
 
  (of-object "ChamplainMapSource")
686
 
  (c-name "champlain_map_source_get_y")
687
 
  (return-type "guint")
688
 
  (parameters
689
 
    '("gint" "zoom_level")
690
 
    '("gdouble" "latitude")
691
 
  )
692
 
)
693
 
 
694
 
(define-method get_longitude
695
 
  (of-object "ChamplainMapSource")
696
 
  (c-name "champlain_map_source_get_longitude")
697
 
  (return-type "gdouble")
698
 
  (parameters
699
 
    '("gint" "zoom_level")
700
 
    '("guint" "x")
701
 
  )
702
 
)
703
 
 
704
 
(define-method get_latitude
705
 
  (of-object "ChamplainMapSource")
706
 
  (c-name "champlain_map_source_get_latitude")
707
 
  (return-type "gdouble")
708
 
  (parameters
709
 
    '("gint" "zoom_level")
710
 
    '("guint" "y")
711
 
  )
712
 
)
713
 
 
714
 
(define-method get_row_count
715
 
  (of-object "ChamplainMapSource")
716
 
  (c-name "champlain_map_source_get_row_count")
717
 
  (return-type "guint")
718
 
  (parameters
719
 
    '("gint" "zoom_level")
720
 
  )
721
 
)
722
 
 
723
 
(define-method get_column_count
724
 
  (of-object "ChamplainMapSource")
725
 
  (c-name "champlain_map_source_get_column_count")
726
 
  (return-type "guint")
727
 
  (parameters
728
 
    '("gint" "zoom_level")
729
 
  )
730
 
)
731
 
 
732
 
(define-method fill_tile
733
 
  (of-object "ChamplainMapSource")
734
 
  (c-name "champlain_map_source_fill_tile")
735
 
  (return-type "none")
736
 
  (parameters
737
 
    '("ChamplainTile*" "tile")
738
 
  )
739
 
)
740
 
 
741
 
(define-method set_id
742
 
  (of-object "ChamplainMapSource")
743
 
  (c-name "champlain_map_source_set_id")
744
 
  (return-type "none")
745
 
  (parameters
746
 
    '("const-gchar*" "id")
747
 
  )
748
 
)
749
 
 
750
 
(define-method get_id
751
 
  (of-object "ChamplainMapSource")
752
 
  (c-name "champlain_map_source_get_id")
753
 
  (return-type "const-gchar*")
754
 
)
755
 
 
756
 
(define-method set_name
757
 
  (of-object "ChamplainMapSource")
758
 
  (c-name "champlain_map_source_set_name")
759
 
  (return-type "none")
760
 
  (parameters
761
 
    '("const-gchar*" "name")
762
 
  )
763
 
)
764
 
 
765
 
(define-method get_name
766
 
  (of-object "ChamplainMapSource")
767
 
  (c-name "champlain_map_source_get_name")
768
 
  (return-type "const-gchar*")
769
 
)
770
 
 
771
 
(define-method set_license
772
 
  (of-object "ChamplainMapSource")
773
 
  (c-name "champlain_map_source_set_license")
774
 
  (return-type "none")
775
 
  (parameters
776
 
    '("const-gchar*" "license")
777
 
  )
778
 
)
779
 
 
780
 
(define-method get_license
781
 
  (of-object "ChamplainMapSource")
782
 
  (c-name "champlain_map_source_get_license")
783
 
  (return-type "const-gchar*")
784
 
)
785
 
 
786
 
(define-method set_license_uri
787
 
  (of-object "ChamplainMapSource")
788
 
  (c-name "champlain_map_source_set_license_uri")
789
 
  (return-type "none")
790
 
  (parameters
791
 
    '("const-gchar*" "license_uri")
792
 
  )
793
 
)
794
 
 
795
 
(define-method get_license_uri
796
 
  (of-object "ChamplainMapSource")
797
 
  (c-name "champlain_map_source_get_license_uri")
798
 
  (return-type "const-gchar*")
799
 
)
800
 
 
801
 
(define-method set_projection
802
 
  (of-object "ChamplainMapSource")
803
 
  (c-name "champlain_map_source_set_projection")
804
 
  (return-type "none")
805
 
  (parameters
806
 
    '("ChamplainMapProjection" "projection")
807
 
  )
808
 
)
809
 
 
810
 
(define-method get_projection
811
 
  (of-object "ChamplainMapSource")
812
 
  (c-name "champlain_map_source_get_projection")
813
 
  (return-type "ChamplainMapProjection")
814
 
)
815
 
 
816
 
 
817
 
 
818
 
;; From champlain-map-source-desc.h
819
 
 
820
 
(define-function map_source_desc_get_type
821
 
  (c-name "champlain_map_source_desc_get_type")
822
 
  (return-type "GType")
823
 
)
824
 
 
825
 
(define-method copy
826
 
  (of-object "ChamplainMapSourceDesc")
827
 
  (c-name "champlain_map_source_desc_copy")
828
 
  (return-type "ChamplainMapSourceDesc*")
829
 
)
830
 
 
831
 
(define-method free
832
 
  (of-object "ChamplainMapSourceDesc")
833
 
  (c-name "champlain_map_source_desc_free")
834
 
  (return-type "none")
835
 
)
836
 
 
837
 
(define-function map_source_desc_new
838
 
  (c-name "champlain_map_source_desc_new")
839
 
  (is-constructor-of "ChamplainMapSourceDesc")
840
 
  (return-type "ChamplainMapSourceDesc*")
841
 
)
842
 
 
843
 
 
844
 
 
845
 
;; From champlain-map-source-factory.h
846
 
 
847
 
(define-function map_source_factory_get_type
848
 
  (c-name "champlain_map_source_factory_get_type")
849
 
  (return-type "GType")
850
 
)
851
 
 
852
 
(define-function map_source_factory_dup_default
853
 
  (c-name "champlain_map_source_factory_dup_default")
854
 
  (return-type "ChamplainMapSourceFactory*")
855
 
)
856
 
 
857
 
(define-function map_source_factory_get_default
858
 
  (c-name "champlain_map_source_factory_get_default")
859
 
  (return-type "ChamplainMapSourceFactory*")
860
 
)
861
 
 
862
 
(define-method dup_list
863
 
  (of-object "ChamplainMapSourceFactory")
864
 
  (c-name "champlain_map_source_factory_dup_list")
865
 
  (return-type "GSList*")
866
 
)
867
 
 
868
 
(define-method get_list
869
 
  (of-object "ChamplainMapSourceFactory")
870
 
  (c-name "champlain_map_source_factory_get_list")
871
 
  (return-type "GSList*")
872
 
)
873
 
 
874
 
(define-method create
875
 
  (of-object "ChamplainMapSourceFactory")
876
 
  (c-name "champlain_map_source_factory_create")
877
 
  (return-type "ChamplainMapSource*")
878
 
  (parameters
879
 
    '("const-gchar*" "id")
880
 
  )
881
 
)
882
 
 
883
 
(define-method register
884
 
  (of-object "ChamplainMapSourceFactory")
885
 
  (c-name "champlain_map_source_factory_register")
886
 
  (return-type "gboolean")
887
 
  (parameters
888
 
    '("ChamplainMapSourceDesc*" "desc")
889
 
    '("ChamplainMapSourceConstructor" "constructor")
890
 
    '("gpointer" "user_data")
891
 
  )
892
 
)
893
 
 
894
 
 
895
 
 
896
 
;; From champlain-network-map-source.h
897
 
 
898
 
(define-function network_map_source_get_type
899
 
  (c-name "champlain_network_map_source_get_type")
900
 
  (return-type "GType")
901
 
)
902
 
 
903
 
(define-function network_map_source_new_full
904
 
  (c-name "champlain_network_map_source_new_full")
905
 
  (return-type "ChamplainNetworkMapSource*")
906
 
  (parameters
907
 
    '("const-gchar*" "id")
908
 
    '("const-gchar*" "name")
909
 
    '("const-gchar*" "license")
910
 
    '("const-gchar*" "license_uri")
911
 
    '("guint" "min_zoom")
912
 
    '("guint" "max_zoom")
913
 
    '("guint" "tile_size")
914
 
    '("ChamplainMapProjection" "projection")
915
 
    '("const-gchar*" "uri_format")
916
 
  )
917
 
)
918
 
 
919
 
(define-method get_tile_uri
920
 
  (of-object "ChamplainNetworkMapSource")
921
 
  (c-name "champlain_network_map_source_get_tile_uri")
922
 
  (return-type "gchar*")
923
 
  (parameters
924
 
    '("gint" "x")
925
 
    '("gint" "y")
926
 
    '("gint" "z")
927
 
  )
928
 
)
929
 
 
930
 
(define-method set_uri_format
931
 
  (of-object "ChamplainNetworkMapSource")
932
 
  (c-name "champlain_network_map_source_set_uri_format")
933
 
  (return-type "none")
934
 
  (parameters
935
 
    '("const-gchar*" "uri_format")
936
 
  )
937
 
)
938
 
 
939
 
(define-function network_map_source_fill_tile
940
 
  (c-name "champlain_network_map_source_fill_tile")
941
 
  (return-type "none")
942
 
  (parameters
943
 
    '("ChamplainMapSource*" "map_source")
944
 
    '("ChamplainTile*" "tile")
945
 
  )
946
 
)
947
 
 
948
 
 
949
 
 
950
 
;; From champlain-marker.h
951
 
 
952
 
(define-function marker_get_type
953
 
  (c-name "champlain_marker_get_type")
954
 
  (return-type "GType")
955
 
)
956
 
 
957
 
(define-function marker_new
958
 
  (c-name "champlain_marker_new")
959
 
  (is-constructor-of "ChamplainMarker")
960
 
  (return-type "ClutterActor*")
961
 
)
962
 
 
963
 
(define-function marker_new_with_text
964
 
  (c-name "champlain_marker_new_with_text")
965
 
  (return-type "ClutterActor*")
966
 
  (parameters
967
 
    '("const-gchar*" "text")
968
 
    '("const-gchar*" "font")
969
 
    '("ClutterColor*" "text_color")
970
 
    '("ClutterColor*" "marker_color")
971
 
  )
972
 
)
973
 
 
974
 
(define-function marker_new_with_image
975
 
  (c-name "champlain_marker_new_with_image")
976
 
  (return-type "ClutterActor*")
977
 
  (parameters
978
 
    '("ClutterActor*" "actor")
979
 
  )
980
 
)
981
 
 
982
 
(define-function marker_new_from_file
983
 
  (c-name "champlain_marker_new_from_file")
984
 
  (return-type "ClutterActor*")
985
 
  (parameters
986
 
    '("const-gchar*" "filename")
987
 
    '("GError**" "error")
988
 
  )
989
 
)
990
 
 
991
 
(define-function marker_new_full
992
 
  (c-name "champlain_marker_new_full")
993
 
  (return-type "ClutterActor*")
994
 
  (parameters
995
 
    '("const-gchar*" "text")
996
 
    '("ClutterActor*" "actor")
997
 
  )
998
 
)
999
 
 
1000
 
(define-method set_text
1001
 
  (of-object "ChamplainMarker")
1002
 
  (c-name "champlain_marker_set_text")
1003
 
  (return-type "none")
1004
 
  (parameters
1005
 
    '("const-gchar*" "text")
1006
 
  )
1007
 
)
1008
 
 
1009
 
(define-method set_image
1010
 
  (of-object "ChamplainMarker")
1011
 
  (c-name "champlain_marker_set_image")
1012
 
  (return-type "none")
1013
 
  (parameters
1014
 
    '("ClutterActor*" "image")
1015
 
  )
1016
 
)
1017
 
 
1018
 
(define-method set_use_markup
1019
 
  (of-object "ChamplainMarker")
1020
 
  (c-name "champlain_marker_set_use_markup")
1021
 
  (return-type "none")
1022
 
  (parameters
1023
 
    '("gboolean" "use_markup")
1024
 
  )
1025
 
)
1026
 
 
1027
 
(define-method set_alignment
1028
 
  (of-object "ChamplainMarker")
1029
 
  (c-name "champlain_marker_set_alignment")
1030
 
  (return-type "none")
1031
 
  (parameters
1032
 
    '("PangoAlignment" "alignment")
1033
 
  )
1034
 
)
1035
 
 
1036
 
(define-method set_color
1037
 
  (of-object "ChamplainMarker")
1038
 
  (c-name "champlain_marker_set_color")
1039
 
  (return-type "none")
1040
 
  (parameters
1041
 
    '("const-ClutterColor*" "color")
1042
 
  )
1043
 
)
1044
 
 
1045
 
(define-method set_text_color
1046
 
  (of-object "ChamplainMarker")
1047
 
  (c-name "champlain_marker_set_text_color")
1048
 
  (return-type "none")
1049
 
  (parameters
1050
 
    '("const-ClutterColor*" "color")
1051
 
  )
1052
 
)
1053
 
 
1054
 
(define-method set_font_name
1055
 
  (of-object "ChamplainMarker")
1056
 
  (c-name "champlain_marker_set_font_name")
1057
 
  (return-type "none")
1058
 
  (parameters
1059
 
    '("const-gchar*" "font_name")
1060
 
  )
1061
 
)
1062
 
 
1063
 
(define-method set_wrap
1064
 
  (of-object "ChamplainMarker")
1065
 
  (c-name "champlain_marker_set_wrap")
1066
 
  (return-type "none")
1067
 
  (parameters
1068
 
    '("gboolean" "wrap")
1069
 
  )
1070
 
)
1071
 
 
1072
 
(define-method set_wrap_mode
1073
 
  (of-object "ChamplainMarker")
1074
 
  (c-name "champlain_marker_set_wrap_mode")
1075
 
  (return-type "none")
1076
 
  (parameters
1077
 
    '("PangoWrapMode" "wrap_mode")
1078
 
  )
1079
 
)
1080
 
 
1081
 
(define-method set_attributes
1082
 
  (of-object "ChamplainMarker")
1083
 
  (c-name "champlain_marker_set_attributes")
1084
 
  (return-type "none")
1085
 
  (parameters
1086
 
    '("PangoAttrList*" "list")
1087
 
  )
1088
 
)
1089
 
 
1090
 
(define-method set_single_line_mode
1091
 
  (of-object "ChamplainMarker")
1092
 
  (c-name "champlain_marker_set_single_line_mode")
1093
 
  (return-type "none")
1094
 
  (parameters
1095
 
    '("gboolean" "mode")
1096
 
  )
1097
 
)
1098
 
 
1099
 
(define-method set_ellipsize
1100
 
  (of-object "ChamplainMarker")
1101
 
  (c-name "champlain_marker_set_ellipsize")
1102
 
  (return-type "none")
1103
 
  (parameters
1104
 
    '("PangoEllipsizeMode" "mode")
1105
 
  )
1106
 
)
1107
 
 
1108
 
(define-method set_draw_background
1109
 
  (of-object "ChamplainMarker")
1110
 
  (c-name "champlain_marker_set_draw_background")
1111
 
  (return-type "none")
1112
 
  (parameters
1113
 
    '("gboolean" "background")
1114
 
  )
1115
 
)
1116
 
 
1117
 
(define-method get_use_markup
1118
 
  (of-object "ChamplainMarker")
1119
 
  (c-name "champlain_marker_get_use_markup")
1120
 
  (return-type "gboolean")
1121
 
)
1122
 
 
1123
 
(define-method get_text
1124
 
  (of-object "ChamplainMarker")
1125
 
  (c-name "champlain_marker_get_text")
1126
 
  (return-type "const-gchar*")
1127
 
)
1128
 
 
1129
 
(define-method get_image
1130
 
  (of-object "ChamplainMarker")
1131
 
  (c-name "champlain_marker_get_image")
1132
 
  (return-type "ClutterActor*")
1133
 
)
1134
 
 
1135
 
(define-method get_alignment
1136
 
  (of-object "ChamplainMarker")
1137
 
  (c-name "champlain_marker_get_alignment")
1138
 
  (return-type "PangoAlignment")
1139
 
)
1140
 
 
1141
 
(define-method get_color
1142
 
  (of-object "ChamplainMarker")
1143
 
  (c-name "champlain_marker_get_color")
1144
 
  (return-type "ClutterColor*")
1145
 
)
1146
 
 
1147
 
(define-method get_text_color
1148
 
  (of-object "ChamplainMarker")
1149
 
  (c-name "champlain_marker_get_text_color")
1150
 
  (return-type "ClutterColor*")
1151
 
)
1152
 
 
1153
 
(define-method get_font_name
1154
 
  (of-object "ChamplainMarker")
1155
 
  (c-name "champlain_marker_get_font_name")
1156
 
  (return-type "const-gchar*")
1157
 
)
1158
 
 
1159
 
(define-method get_wrap
1160
 
  (of-object "ChamplainMarker")
1161
 
  (c-name "champlain_marker_get_wrap")
1162
 
  (return-type "gboolean")
1163
 
)
1164
 
 
1165
 
(define-method get_wrap_mode
1166
 
  (of-object "ChamplainMarker")
1167
 
  (c-name "champlain_marker_get_wrap_mode")
1168
 
  (return-type "PangoWrapMode")
1169
 
)
1170
 
 
1171
 
(define-method get_ellipsize
1172
 
  (of-object "ChamplainMarker")
1173
 
  (c-name "champlain_marker_get_ellipsize")
1174
 
  (return-type "PangoEllipsizeMode")
1175
 
)
1176
 
 
1177
 
(define-method get_single_line_mode
1178
 
  (of-object "ChamplainMarker")
1179
 
  (c-name "champlain_marker_get_single_line_mode")
1180
 
  (return-type "gboolean")
1181
 
)
1182
 
 
1183
 
(define-method get_draw_background
1184
 
  (of-object "ChamplainMarker")
1185
 
  (c-name "champlain_marker_get_draw_background")
1186
 
  (return-type "gboolean")
1187
 
)
1188
 
 
1189
 
 
1190
 
 
1191
 
;; From champlain-base-marker.h
1192
 
 
1193
 
(define-function base_marker_get_type
1194
 
  (c-name "champlain_base_marker_get_type")
1195
 
  (return-type "GType")
1196
 
)
1197
 
 
1198
 
(define-function base_marker_new
1199
 
  (c-name "champlain_base_marker_new")
1200
 
  (is-constructor-of "ChamplainBaseMarker")
1201
 
  (return-type "ClutterActor*")
1202
 
)
1203
 
 
1204
 
(define-method set_position
1205
 
  (of-object "ChamplainBaseMarker")
1206
 
  (c-name "champlain_base_marker_set_position")
1207
 
  (return-type "none")
1208
 
  (parameters
1209
 
    '("gdouble" "longitude")
1210
 
    '("gdouble" "latitude")
1211
 
  )
1212
 
)
1213
 
 
1214
 
 
1215
 
 
1216
 
;; From champlain-tile.h
1217
 
 
1218
 
(define-function tile_get_type
1219
 
  (c-name "champlain_tile_get_type")
1220
 
  (return-type "GType")
1221
 
)
1222
 
 
1223
 
(define-function tile_new
1224
 
  (c-name "champlain_tile_new")
1225
 
  (is-constructor-of "ChamplainTile")
1226
 
  (return-type "ChamplainTile*")
1227
 
)
1228
 
 
1229
 
(define-function tile_new_full
1230
 
  (c-name "champlain_tile_new_full")
1231
 
  (return-type "ChamplainTile*")
1232
 
  (parameters
1233
 
    '("gint" "x")
1234
 
    '("gint" "y")
1235
 
    '("guint" "size")
1236
 
    '("gint" "zoom_level")
1237
 
  )
1238
 
)
1239
 
 
1240
 
(define-method get_x
1241
 
  (of-object "ChamplainTile")
1242
 
  (c-name "champlain_tile_get_x")
1243
 
  (return-type "gint")
1244
 
)
1245
 
 
1246
 
(define-method get_y
1247
 
  (of-object "ChamplainTile")
1248
 
  (c-name "champlain_tile_get_y")
1249
 
  (return-type "gint")
1250
 
)
1251
 
 
1252
 
(define-method get_zoom_level
1253
 
  (of-object "ChamplainTile")
1254
 
  (c-name "champlain_tile_get_zoom_level")
1255
 
  (return-type "gint")
1256
 
)
1257
 
 
1258
 
(define-method get_size
1259
 
  (of-object "ChamplainTile")
1260
 
  (c-name "champlain_tile_get_size")
1261
 
  (return-type "guint")
1262
 
)
1263
 
 
1264
 
(define-method get_state
1265
 
  (of-object "ChamplainTile")
1266
 
  (c-name "champlain_tile_get_state")
1267
 
  (return-type "ChamplainState")
1268
 
)
1269
 
 
1270
 
(define-method get_uri
1271
 
  (of-object "ChamplainTile")
1272
 
  (c-name "champlain_tile_get_uri")
1273
 
  (return-type "const-gchar*")
1274
 
)
1275
 
 
1276
 
(define-method get_filename
1277
 
  (of-object "ChamplainTile")
1278
 
  (c-name "champlain_tile_get_filename")
1279
 
  (return-type "const-gchar*")
1280
 
)
1281
 
 
1282
 
(define-method get_actor
1283
 
  (of-object "ChamplainTile")
1284
 
  (c-name "champlain_tile_get_actor")
1285
 
  (return-type "ClutterActor*")
1286
 
)
1287
 
 
1288
 
(define-method get_content
1289
 
  (of-object "ChamplainTile")
1290
 
  (c-name "champlain_tile_get_content")
1291
 
  (return-type "ClutterActor*")
1292
 
)
1293
 
 
1294
 
(define-method get_modified_time
1295
 
  (of-object "ChamplainTile")
1296
 
  (c-name "champlain_tile_get_modified_time")
1297
 
  (return-type "const-GTimeVal*")
1298
 
)
1299
 
 
1300
 
(define-method get_modified_time_string
1301
 
  (of-object "ChamplainTile")
1302
 
  (c-name "champlain_tile_get_modified_time_string")
1303
 
  (return-type "char*")
1304
 
)
1305
 
 
1306
 
(define-method get_etag
1307
 
  (of-object "ChamplainTile")
1308
 
  (c-name "champlain_tile_get_etag")
1309
 
  (return-type "const-char*")
1310
 
)
1311
 
 
1312
 
(define-method set_x
1313
 
  (of-object "ChamplainTile")
1314
 
  (c-name "champlain_tile_set_x")
1315
 
  (return-type "none")
1316
 
  (parameters
1317
 
    '("gint" "x")
1318
 
  )
1319
 
)
1320
 
 
1321
 
(define-method set_y
1322
 
  (of-object "ChamplainTile")
1323
 
  (c-name "champlain_tile_set_y")
1324
 
  (return-type "none")
1325
 
  (parameters
1326
 
    '("gint" "y")
1327
 
  )
1328
 
)
1329
 
 
1330
 
(define-method set_zoom_level
1331
 
  (of-object "ChamplainTile")
1332
 
  (c-name "champlain_tile_set_zoom_level")
1333
 
  (return-type "none")
1334
 
  (parameters
1335
 
    '("gint" "zoom_level")
1336
 
  )
1337
 
)
1338
 
 
1339
 
(define-method set_size
1340
 
  (of-object "ChamplainTile")
1341
 
  (c-name "champlain_tile_set_size")
1342
 
  (return-type "none")
1343
 
  (parameters
1344
 
    '("guint" "size")
1345
 
  )
1346
 
)
1347
 
 
1348
 
(define-method set_state
1349
 
  (of-object "ChamplainTile")
1350
 
  (c-name "champlain_tile_set_state")
1351
 
  (return-type "none")
1352
 
  (parameters
1353
 
    '("ChamplainState" "state")
1354
 
  )
1355
 
)
1356
 
 
1357
 
(define-method set_uri
1358
 
  (of-object "ChamplainTile")
1359
 
  (c-name "champlain_tile_set_uri")
1360
 
  (return-type "none")
1361
 
  (parameters
1362
 
    '("const-gchar*" "uri")
1363
 
  )
1364
 
)
1365
 
 
1366
 
(define-method set_filename
1367
 
  (of-object "ChamplainTile")
1368
 
  (c-name "champlain_tile_set_filename")
1369
 
  (return-type "none")
1370
 
  (parameters
1371
 
    '("const-gchar*" "filename")
1372
 
  )
1373
 
)
1374
 
 
1375
 
(define-method set_content
1376
 
  (of-object "ChamplainTile")
1377
 
  (c-name "champlain_tile_set_content")
1378
 
  (return-type "none")
1379
 
  (parameters
1380
 
    '("ClutterActor*" "actor")
1381
 
    '("gboolean" "fade_in")
1382
 
  )
1383
 
)
1384
 
 
1385
 
(define-method set_etag
1386
 
  (of-object "ChamplainTile")
1387
 
  (c-name "champlain_tile_set_etag")
1388
 
  (return-type "none")
1389
 
  (parameters
1390
 
    '("const-gchar*" "etag")
1391
 
  )
1392
 
)
1393
 
 
1394
 
(define-method set_modified_time
1395
 
  (of-object "ChamplainTile")
1396
 
  (c-name "champlain_tile_set_modified_time")
1397
 
  (return-type "none")
1398
 
  (parameters
1399
 
    '("GTimeVal*" "time")
1400
 
  )
1401
 
)
1402
 
 
1403
 
 
1404
 
 
1405
 
;; From champlain-zoom-level.h
1406
 
 
1407
 
(define-function zoom_level_get_type
1408
 
  (c-name "champlain_zoom_level_get_type")
1409
 
  (return-type "GType")
1410
 
)
1411
 
 
1412
 
(define-function zoom_level_new
1413
 
  (c-name "champlain_zoom_level_new")
1414
 
  (is-constructor-of "ChamplainZoomLevel")
1415
 
  (return-type "ChamplainZoomLevel*")
1416
 
)
1417
 
 
1418
 
(define-method get_width
1419
 
  (of-object "ChamplainZoomLevel")
1420
 
  (c-name "champlain_zoom_level_get_width")
1421
 
  (return-type "guint")
1422
 
)
1423
 
 
1424
 
(define-method get_height
1425
 
  (of-object "ChamplainZoomLevel")
1426
 
  (c-name "champlain_zoom_level_get_height")
1427
 
  (return-type "guint")
1428
 
)
1429
 
 
1430
 
(define-method get_zoom_level
1431
 
  (of-object "ChamplainZoomLevel")
1432
 
  (c-name "champlain_zoom_level_get_zoom_level")
1433
 
  (return-type "gint")
1434
 
)
1435
 
 
1436
 
(define-method get_actor
1437
 
  (of-object "ChamplainZoomLevel")
1438
 
  (c-name "champlain_zoom_level_get_actor")
1439
 
  (return-type "ClutterActor*")
1440
 
)
1441
 
 
1442
 
(define-method set_width
1443
 
  (of-object "ChamplainZoomLevel")
1444
 
  (c-name "champlain_zoom_level_set_width")
1445
 
  (return-type "none")
1446
 
  (parameters
1447
 
    '("guint" "width")
1448
 
  )
1449
 
)
1450
 
 
1451
 
(define-method set_height
1452
 
  (of-object "ChamplainZoomLevel")
1453
 
  (c-name "champlain_zoom_level_set_height")
1454
 
  (return-type "none")
1455
 
  (parameters
1456
 
    '("guint" "height")
1457
 
  )
1458
 
)
1459
 
 
1460
 
(define-method set_zoom_level
1461
 
  (of-object "ChamplainZoomLevel")
1462
 
  (c-name "champlain_zoom_level_set_zoom_level")
1463
 
  (return-type "none")
1464
 
  (parameters
1465
 
    '("gint" "zoom_level")
1466
 
  )
1467
 
)
1468
 
 
1469
 
(define-method add_tile
1470
 
  (of-object "ChamplainZoomLevel")
1471
 
  (c-name "champlain_zoom_level_add_tile")
1472
 
  (return-type "none")
1473
 
  (parameters
1474
 
    '("ChamplainTile*" "tile")
1475
 
  )
1476
 
)
1477
 
 
1478
 
(define-method remove_tile
1479
 
  (of-object "ChamplainZoomLevel")
1480
 
  (c-name "champlain_zoom_level_remove_tile")
1481
 
  (return-type "none")
1482
 
  (parameters
1483
 
    '("ChamplainTile*" "tile")
1484
 
  )
1485
 
)
1486
 
 
1487
 
(define-method tile_count
1488
 
  (of-object "ChamplainZoomLevel")
1489
 
  (c-name "champlain_zoom_level_tile_count")
1490
 
  (return-type "guint")
1491
 
)
1492
 
 
1493
 
(define-method get_nth_tile
1494
 
  (of-object "ChamplainZoomLevel")
1495
 
  (c-name "champlain_zoom_level_get_nth_tile")
1496
 
  (return-type "ChamplainTile*")
1497
 
  (parameters
1498
 
    '("guint" "index")
1499
 
  )
1500
 
)
1501
 
 
1502
 
 
 
3
 
 
4
(include "pychamplain-base.defs")
 
5
(include "pychamplain-boxed-types.defs")