File: gnome-canvas.defs

package info (click to toggle)
rep-gtk 0.15-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 728 kB
  • ctags: 349
  • sloc: ansic: 3,577; sh: 2,430; lisp: 1,102; makefile: 159
file content (491 lines) | stat: -rw-r--r-- 9,358 bytes parent folder | download
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
;; gnome-canvas.defs -- GnomeCanvas API definitions -*- lisp -*-
;; $Id: gnome-canvas.defs,v 1.3 2000/09/26 10:47:04 john Exp $

(import "gtk.defs")


;; Types

(define-object GnomeCanvas (GtkLayout))

(define-object GnomeCanvasItem (GtkObject))

(define-object GnomeCanvasGroup (GnomeCanvasItem))

(define-object GnomeCanvasLine (GnomeCanvasItem))

(define-object GnomeCanvasPolygon (GnomeCanvasItem))

(define-object GnomeCanvasRE (GnomeCanvasItem))

(define-object GnomeCanvasRect (GnomeCanvasRE))

(define-object GnomeCanvasEllipse (GnomeCanvasRE))

(define-object GnomeCanvasText (GnomeCanvasItem))

(define-object GnomeCanvasImage (GnomeCanvasItem))

(define-object GnomeCanvasWidget (GnomeCanvasItem))

(define-boxed GnomeCanvasPoints
  (copy gnome_canvas_points_ref)
  (free gnome_canvas_points_unref)
  (conversion "sgtk_gnome_canvas_points_conversion"))

(add-options
 GnomeCanvasPoints (conversion "sgtk_gnome_canvas_points_conversion"))


;; GnomeCanvas

(define-func gnome_canvas_new
  GtkWidget
  ())

(define-func gnome_canvas_new_aa
  GtkWidget
  ())

(define-func gnome_canvas_root
  GnomeCanvasGroup
  ((GnomeCanvas canvas)))

(define-func gnome_canvas_set_scroll_region
  none
  ((GnomeCanvas canvas)
   (double x1)
   (double y1)
   (double x2)
   (double y2)))

(define-func gnome_canvas_get_scroll_region
  none
  ((GnomeCanvas canvas)
   ((ret double) x1)
   ((ret double) y1)
   ((ret double) x2)
   ((ret double) y2)))

(define-func gnome_canvas_set_pixels_per_unit
  none
  ((GnomeCanvas canvas)
   (double n)))

(define-func gnome_canvas_scroll_to
  none
  ((GnomeCanvas canvas)
   (int cx)
   (int cy)))

(define-func gnome_canvas_get_scroll_offsets
  none
  ((GnomeCanvas canvas)
   ((ret int) cx)
   ((ret int) cy)))

(define-func gnome_canvas_update_now
  none
  ((GnomeCanvas canvas)))

(define-func gnome_canvas_get_item_at
  GnomeCanvasItem
  ((GnomeCanvas canvas)
   (double x)
   (double y)))

;(define-func gnome_canvas_request_update_uta
;  none
;  ((GnomeCanvas canvas)
;   (ArtUta uta)))

(define-func gnome_canvas_request_redraw
  none
  ((GnomeCanvas canvas)
   (int x1)
   (int y1)
   (int x2)
   (int y2)))

(define-func gnome_canvas_w2c_affine
  none
  ((GnomeCanvas canvas)
   ((fvec double 6) affine)))

(define-func gnome_canvas_w2c
  none
  ((GnomeCanvas canvas)
   (double wx)
   (double wy)
   ((ret int) cx)
   ((ret int) cy)))

(define-func gnome_canvas_w2c_d
  none
  ((GnomeCanvas canvas)
   (double wx)
   (double wy)
   ((ret double) cx)
   ((ret double) cy)))

(define-func gnome_canvas_c2w
  none
  ((GnomeCanvas canvas)
   (int cx)
   (int cy)
   ((ret double) wx)
   ((ret double) wy)))

(define-func gnome_canvas_window_to_world
  none
  ((GnomeCanvas canvas)
   (double winx)
   (double winy)
   ((ret double) worldx)
   ((ret double) worldy)))

(define-func gnome_canvas_world_to_window
  none
  ((GnomeCanvas canvas)
   (double worldx)
   (double worldy)
   ((ret double) winx)
   ((ret double) winy)))

(define-func gnome_canvas_get_color
  bool
  ((GnomeCanvas canvas)
   (string spec)
   (GdkColor color)))

(define-func gnome_canvas_set_stipple_origin
  none
  ((GnomeCanvas canvas)
   (GdkGC gc)))


;; GnomeCanvasItem

;in gnome-canvas-support.c
;(define-func gnome_canvas_item_new
;  GnomeCanvasItem
;  ((GnomeCanvasGroup parent)
;   (SCM type)
;   (SCM args)))

;in gnome-canvas-support.c
;(define-func gnome_canvas_item_set
;  none
;  ((GnomeCanvasItem item)
;   (SCM args)))

(define-func gnome_canvas_item_move
  none
  ((GnomeCanvasItem item)
   (double dx)
   (double dy)))

(define-func gnome_canvas_item_affine_relative
  none
  ((GnomeCanvasItem item)
   ((fvec double 6) affine)))

(define-func gnome_canvas_item_affine_absolute
  none
  ((GnomeCanvasItem item)
   ((fvec double 6) affine)))

;XXX these functions have apparently gone missing
;(define-func gnome_canvas_item_scale
;  none
;  ((GnomeCanvasItem item)
;   (double x)
;   (double y)
;   (double scale_x)
;   (double scale_y)))
;
;(define-func gnome_canvas_item_rotate
;  none
;  ((GnomeCanvasItem item)
;   (double x)
;   (double y)
;   (double angle)))

(define-func gnome_canvas_item_raise
  none
  ((GnomeCanvasItem item)
   (int positions)))

(define-func gnome_canvas_item_lower
  none
  ((GnomeCanvasItem item)
   (int positions)))

(define-func gnome_canvas_item_raise_to_top
  none
  ((GnomeCanvasItem item)))

(define-func gnome_canvas_item_lower_to_bottom
  none
  ((GnomeCanvasItem item)))

(define-func gnome_canvas_item_show
  none
  ((GnomeCanvasItem item)))

(define-func gnome_canvas_item_hide
  none
  ((GnomeCanvasItem item)))

;(define-func gnome_canvas_item_grab
;  none
;  ((GnomeCanvasItem item)
;   (uint event_mask)
;   (GdkCursor cursor)
;   (uint etime)))

(define-func gnome_canvas_item_ungrab
  none
  ((GnomeCanvasItem item)
   (uint etime)))

(define-func gnome_canvas_item_w2i
  none
  ((GnomeCanvasItem item)
   ((ret double) x)
   ((ret double) y)))

(define-func gnome_canvas_item_i2w
  none
  ((GnomeCanvasItem item)
   ((ret double) x)
   ((ret double) y)))

(define-func gnome_canvas_item_i2w_affine
  none
  ((GnomeCanvasItem item)
   ((fvec double 6) affine)))

(define-func gnome_canvas_item_i2c_affine
  none
  ((GnomeCanvasItem item)
   ((fvec double 6) affine)))

(define-func gnome_canvas_item_reparent
  none
  ((GnomeCanvasItem item)
   (GnomeCanvasGroup new_group)))

(define-func gnome_canvas_item_grab_focus
  none
  ((GnomeCanvasItem item)))

(define-func gnome_canvas_item_get_bounds
  none
  ((GnomeCanvasItem item)
   ((ret double) x1)
   ((ret double) y1)
   ((ret double) x2)
   ((ret double) y2)))

;(define-func gnome_canvas_request_update
;  none
;  ((GnomeCanvasItem item)))


;; GnomeCanvasGroup

(define-func gnome_canvas_group_child_bounds
  none
  ((GnomeCanvasGroup group)
   (GnomeCanvasItem item)))


;; GnomeIconTextItem

(define-object GnomeIconTextItem (GnomeCanvasItem))

(define-func gnome_icon_text_item_configure
  none
  ((GnomeIconTextItem iti)
   (int x)
   (int y)
   (int width)
   (string fontname)
   (string text)
   (bool is_editable)
   (bool is_static)))

(define-func gnome_icon_text_item_setxy
  none
  ((GnomeIconTextItem iti)
   (int x)
   (int y)))

(define-func gnome_icon_text_item_select
  none
  ((GnomeIconTextItem iti)
   (bool sel)))

(define-func gnome_icon_text_item_get_text
  string
  ((GnomeIconTextItem iti)))

(define-func gnome_icon_text_item_stop_editing
  none
  ((GnomeIconTextItem iti)
   (bool accept)))


;; GnomeIconList

(define-object GnomeIconList (GnomeCanvas))

(define-enum GnomeIconListMode
  (icons GNOME_ICON_LIST_ICONS)
  (text-below GNOME_ICON_LIST_TEXT_BELOW)
  (text-right GNOME_ICON_LIST_TEXT_RIGHT))

(define-func gnome_icon_list_new
  GtkWidget
  ((uint icon_width)
   (GtkAdjustment adj)
   (int flags)))

(define-func gnome_icon_list_set_hadjustment
  none
  ((GnomeIconList gil)
   (GtkAdjustment hadj)))

(define-func gnome_icon_list_set_vadjustment
  none
  ((GnomeIconList gil)
   (GtkAdjustment vadj)))

(define-func gnome_icon_list_freeze
  none
  ((GnomeIconList gil)))

(define-func gnome_icon_list_thaw
  none
  ((GnomeIconList gil)))

(define-func gnome_icon_list_insert
  none
  ((GnomeIconList gil)
   (int pos)
   (string icon_filename)
   (string text)))

;(define-func gnome_icon_list_insert_imlib
;  none
;  ((GnomeIconList gil)
;   (int pos)
;   (GdkImlibImage im)
;   (string text)))

(define-func gnome_icon_list_append
  none
  ((GnomeIconList gil)
   (string icon_filename)
   (string text)))

;(define-func gnome_icon_list_append_imlib
;  none
;  ((GnomeIconList gil)
;   (GdkImlibImage im)
;   (string text)))

(define-func gnome_icon_list_clear
  none
  ((GnomeIconList gil)))

(define-func gnome_icon_list_remove
  none
  ((GnomeIconList gil)
   (int pos)))

(define-func gnome_icon_list_set_selection_mode
  none
  ((GnomeIconList gil)
   (GtkSelectionMode mode)))

(define-func gnome_icon_list_select_icon
  none
  ((GnomeIconList gil)
   (int idx)))

(define-func gnome_icon_list_unselect_icon
  none
  ((GnomeIconList gil)
   (int pos)))

(define-func gnome_icon_list_unselect_all
  none
  ((GnomeIconList gil)
   (GdkEvent unused1 (= "NULL"))
   (pointer unused2 (= "NULL"))))

(define-func gnome_icon_list_set_row_spacing
  none
  ((GnomeIconList gil)
   (int pixels)))

(define-func gnome_icon_list_set_col_spacing
  none
  ((GnomeIconList gil)
   (int pixels)))

(define-func gnome_icon_list_set_text_spacing
  none
  ((GnomeIconList gil)
   (int pixels)))

(define-func gnome_icon_list_set_icon_border
  none
  ((GnomeIconList gil)
   (int pixels)))

(define-func gnome_icon_list_set_separators
  none
  ((GnomeIconList gil)
   (string sep)))

(define-func gnome_icon_list_moveto
  none
  ((GnomeIconList gil)
   (int pos)
   (double yalign (= "0.5"))))

(define-func gnome_icon_list_icon_is_visible
  GtkVisibility
  ((GnomeIconList gil)
   (int pos)))

(define-func gnome_icon_list_get_icon_at
  int
  ((GnomeIconList gil)
   (int x)
   (int y)))

(define-func gnome_icon_list_get_items_per_line
  int
  ((GnomeIconList gil)))


;; gnome-canvas-util

(define-func sgtk_gnome_canvas_points_new
  (GnomeCanvasPoints (copy nil))
  ((SCM points))
  (scm-name "gnome-canvas-points-new"))

;; XXX ...


;; Options

(options
 (includes "#include <gnome.h>")
 (includes "#include \"rep-gnome.h\"")
 (init-func "sgtk_gnome_init_gnome_canvas_glue"))