source: trunk/third/rep-gtk/gdk-pixbuf.defs @ 15286

Revision 15286, 4.3 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15285, which included commits to RCS files with non-trunk default branches.
Line 
1;; gdk-pixbuf.defs    -*- lisp -*-
2
3(import "gdk.defs")
4
5(define-boxed GdkPixbuf
6  (copy gdk_pixbuf_ref)
7  (free gdk_pixbuf_unref))
8
9(define-enum GdkColorspace
10  (rgb GDK_COLORSPACE_RGB))
11
12(define-enum GdkPixbufAlphaMode
13  (bilevel GDK_PIXBUF_ALPHA_BILEVEL)
14  (full GDK_PIXBUF_ALPHA_FULL))
15
16(define-enum GdkInterpType
17  (nearest GDK_INTERP_NEAREST)
18  (tiles GDK_INTERP_TILES)
19  (bilinear GDK_INTERP_BILINEAR)
20  (hyper GDK_INTERP_HYPER))
21
22;;; accessors
23
24(define-func gdk_pixbuf_get_colorspace
25  GdkColorspace
26  ((GdkPixbuf pixbuf)))
27
28(define-func gdk_pixbuf_get_n_channels
29  int
30  ((GdkPixbuf pixbuf)))
31
32(define-func gdk_pixbuf_get_has_alpha
33  bool
34  ((GdkPixbuf pixbuf)))
35
36(define-func gdk_pixbuf_get_bits_per_sample
37  int
38  ((GdkPixbuf pixbuf)))
39
40;(define-func gdk_pixbuf_get_pixels
41;  ??
42;  ((GdkPixbuf pixbuf)))
43
44(define-func gdk_pixbuf_get_width
45  int
46  ((GdkPixbuf pixbuf)))
47
48(define-func gdk_pixbuf_get_height
49  int
50  ((GdkPixbuf pixbuf)))
51
52(define-func gdk_pixbuf_get_rowstride
53  int
54  ((GdkPixbuf pixbuf)))
55
56;;; creation
57
58(define-func gdk_pixbuf_new
59  (GdkPixbuf (copy nil))
60  ((GdkColorspace colorspace)
61   (bool has_alpha)
62   (int bits_per_sample)
63   (int width)
64   (int height)))
65
66(define-func gdk_pixbuf_copy
67  (GdkPixbuf (copy nil))
68  ((GdkPixbuf pixbuf)))
69
70;;; loading
71
72(define-func gdk_pixbuf_new_from_file
73  (GdkPixbuf (copy nil))
74  ((string filename)))
75
76(define-func gdk_pixbuf_new_from_xpm_data
77  (GdkPixbuf (copy nil))
78  ((string data)))
79
80;;; manipulation
81
82(define-func gdk_pixbuf_add_alpha
83  (GdkPixbuf (copy nil))
84  ((GdkPixbuf pixbuf)
85   (bool subst_color)
86   (uint r)
87   (uint g)
88   (uint b)))
89
90(define-func gdk_pixbuf_copy_area
91  none
92  ((GdkPixbuf src_pixbuf)
93   (int src_x)
94   (int src_y)
95   (int width)
96   (int height)
97   (GdkPixbuf dest_pixbuf)
98   (int dest_x)
99   (int dest_y)))
100
101;(define-func gdk_pixbuf_render_threshold_alpha
102;  none
103;  ((GdkPixbuf pixbuf)
104;   (GdkBitmap bitmap)
105;   (int src_x)
106;   (int src_y)
107;   (int dest_x)
108;   (int dest_y)
109;   (int width)
110;   (int height)
111;   (int alpha_threshold)))
112
113;(define-func gdk_pixbuf_render_to_drawable
114;  none
115;  ((GdkPixbuf pixbuf)
116;   (GdkDrawable drawable)
117;   (GdkGC gc)
118;   (int src_y)
119;   (int dest_x)
120;   (int dest_y)
121;   (int width)
122;   (int height)
123;   (GdkRgbDither dither)
124;   (int x_dither)
125;   (int y_dither)))
126
127;(define-func gdk_pixbuf_render_to_drawable_alpha
128;  none
129;  ((GdkPixbuf pixbuf)
130;   (GdkDrawable drawable)
131;   (GdkGC gc)
132;   (int src_y)
133;   (int dest_x)
134;   (int dest_y)
135;   (int width)
136;   (int height)
137;   (GdkPixbufAlphaMode alpha_mode)
138;   (int alpha_threshold)
139;   (GdkRgbDither dither)
140;   (int x_dither)
141;   (int y_dither)))
142
143;(define-func gdk_pixbuf_render_pixmap_and_mask
144;  none
145;  ((GdkPixbuf pixbuf)
146;   ((ret GdkPixmap) pixmap_return)
147;   ((ret GdkBitmap) mask_return)
148;   (int alpha_threshold)))
149
150;; gdk_pixbuf_get_from_drawable
151
152;;; scaling
153
154(define-func gdk_pixbuf_scale
155  none
156  ((GdkPixbuf src)
157   (GdkPixbuf dest)
158   (int dest_x)
159   (int dest_y)
160   (int dest_width)
161   (int dest_height)
162   (double offset_x)
163   (double offset_y)
164   (double scale_x)
165   (double scale_y)
166   (GdkInterpType interp_type)))
167
168(define-func gdk_pixbuf_composite
169  none
170  ((GdkPixbuf src)
171   (GdkPixbuf dest)
172   (int dest_x)
173   (int dest_y)
174   (int dest_width)
175   (int dest_height)
176   (double offset_x)
177   (double offset_y)
178   (double scale_x)
179   (double scale_y)
180   (GdkInterpType interp_type)
181   (int overall_alpha)))
182
183(define-func gdk_pixbuf_composite_color
184  none
185  ((GdkPixbuf src)
186   (GdkPixbuf dest)
187   (int dest_x)
188   (int dest_y)
189   (int dest_width)
190   (int dest_height)
191   (double offset_x)
192   (double offset_y)
193   (double scale_x)
194   (double scale_y)
195   (GdkInterpType interp_type)
196   (int overall_alpha)
197   (int check_x)
198   (int check_y)
199   (int check_size)
200   (uint color1)
201   (uint color2)))
202
203(define-func gdk_pixbuf_scale_simple
204  (GdkPixbuf (copy nil))
205  ((GdkPixbuf src)
206   (int dest_width)
207   (int dest_height)
208   (GdkInterpType interp_type)))
209
210(define-func gdk_pixbuf_composite_color_simple
211  (GdkPixbuf (copy nil))
212  ((GdkPixbuf src)
213   (int dest_width)
214   (int dest_height)
215   (GdkInterpType interp_type)
216   (int overall_alpha)
217   (int check_size)
218   (uint color1)
219   (uint color2)))
220
221;;; XXX animations
222
223(options
224 (includes "#include <gdk-pixbuf/gdk-pixbuf.h>")
225 (init-func "sgtk_init_gdk_pixbuf_glue")
226 (system-init-code "gdk_rgb_init ();")
227 (provide gui.gtk.gdk-pixbuf)
228 (alias gdk-pixbuf))
Note: See TracBrowser for help on using the repository browser.