~easypeasy-maintainers/easypeasy-project/ubiquity

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
;; -*- scheme -*-
; object definitions ...
(define-object EMap
  (in-module "emap")
  (parent "GtkWidget")
  (c-name "EMap")
  (gtype-id "E_TYPE_MAP")
)

; boxed types ...
(define-boxed EMapPoint
  (in-module "emap")
  (c-name "EMapPoint")
  (gtype-id "E_TYPE_MAP_POINT")
  (copy-func "e_map_point_copy")
  (release-func "e_map_point_free")
)

;; Enumerations and flags ...


;; From cut-and-paste/e-map/e-map.h

(define-function e_map_get_type
  (c-name "e_map_get_type")
  (return-type "GtkType")
)

(define-function e_map_new
  (c-name "e_map_new")
  (is-constructor-of "EMap")
  (return-type "EMap*")
)

(define-method freeze
  (of-object "EMap")
  (c-name "e_map_freeze")
  (return-type "none")
)

(define-method thaw
  (of-object "EMap")
  (c-name "e_map_thaw")
  (return-type "none")
)

(define-method window_to_world
  (of-object "EMap")
  (c-name "e_map_window_to_world")
  (return-type "none")
  (parameters
    '("double" "win_x")
    '("double" "win_y")
    '("double*" "world_longitude")
    '("double*" "world_latitude")
  )
)

(define-method world_to_window
  (of-object "EMap")
  (c-name "e_map_world_to_window")
  (return-type "none")
  (parameters
    '("double" "world_longitude")
    '("double" "world_latitude")
    '("double*" "win_x")
    '("double*" "win_y")
  )
)

(define-method get_magnification
  (of-object "EMap")
  (c-name "e_map_get_magnification")
  (return-type "double")
)

(define-method set_smooth_zoom
  (of-object "EMap")
  (c-name "e_map_set_smooth_zoom")
  (return-type "none")
  (parameters
    '("gboolean" "state")
  )
)

(define-method get_smooth_zoom
  (of-object "EMap")
  (c-name "e_map_get_smooth_zoom")
  (return-type "gboolean")
)

(define-method zoom_to_location
  (of-object "EMap")
  (c-name "e_map_zoom_to_location")
  (return-type "none")
  (parameters
    '("double" "longitude")
    '("double" "latitude")
  )
)

(define-method zoom_out
  (of-object "EMap")
  (c-name "e_map_zoom_out")
  (return-type "none")
)

(define-method add_point
  (of-object "EMap")
  (c-name "e_map_add_point")
  (return-type "EMapPoint*")
  (parameters
    '("gchar*" "name")
    '("double" "longitude")
    '("double" "latitude")
    '("guint32" "color_rgba")
  )
)

(define-method remove_point
  (of-object "EMap")
  (c-name "e_map_remove_point")
  (return-type "none")
  (parameters
    '("EMapPoint*" "point")
  )
)

(define-method copy
  (of-object "EMapPoint")
  (c-name "e_map_point_copy")
  (return-type "EMapPoint*")
)

(define-method free
  (of-object "EMapPoint")
  (c-name "e_map_point_free")
  (return-type "none")
)

(define-function e_map_point_get_type
  (c-name "e_map_point_get_type")
  (return-type "GtkType")
)

(define-method get_location
  (of-object "EMapPoint")
  (c-name "e_map_point_get_location")
  (return-type "none")
  (parameters
    '("double*" "longitude")
    '("double*" "latitude")
  )
)

(define-method get_name
  (of-object "EMapPoint")
  (c-name "e_map_point_get_name")
  (return-type "gchar*")
)

(define-method get_color_rgba
  (of-object "EMapPoint")
  (c-name "e_map_point_get_color_rgba")
  (return-type "guint32")
)

(define-method point_set_color_rgba
  (of-object "EMap")
  (c-name "e_map_point_set_color_rgba")
  (return-type "none")
  (parameters
    '("EMapPoint*" "point")
    '("guint32" "color_rgba")
  )
)

(define-method set_data
  (of-object "EMapPoint")
  (c-name "e_map_point_set_data")
  (return-type "none")
  (parameters
    '("gpointer" "data")
  )
)

(define-method get_data
  (of-object "EMapPoint")
  (c-name "e_map_point_get_data")
  (return-type "gpointer")
)

(define-method point_is_in_view
  (of-object "EMap")
  (c-name "e_map_point_is_in_view")
  (return-type "gboolean")
  (parameters
    '("EMapPoint*" "point")
  )
)

(define-method get_closest_point
  (of-object "EMap")
  (c-name "e_map_get_closest_point")
  (return-type "EMapPoint*")
  (parameters
    '("double" "longitude")
    '("double" "latitude")
    '("gboolean" "in_view")
  )
)