Wrote the README_GIT file to be a proper tutorial on git, repo.or.cz and gtkD.
[gtkD.git] / gtkD / wrap / APILookupCairo.txt
blobbf2acab2252333ef259e59de6aa9373f787b9679
2 # This file is part of gtkD.
3
4 # gtkD is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU Lesser General Public License as published by
6 # the Free Software Foundation; either version 2.1 of the License, or
7 # (at your option) any later version.
8
9 # gtkD is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU Lesser General Public License for more details.
13
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with gtkD; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21 ###
22 #####
23 # Definitions for wrapping Cairo
24 #####
25 ###
30 # must start with wrap
32 addTypedefs: start
34 public import gtkc.glibtypes;
36 //public import std.c.windows.windows;
37 private alias void* HDC;
39 //struct Display;       // to support XLib surfaces
40 //struct Visual;        // to support XLib surfaces
41 //struct Screen;        // to support XLib surfaces
43 //private alias void* Drawable;
44 //private alias void* Pixmap;
45 //public alias bool cairo_bool_t;
47 alias ubyte uchar;
48 addTypedefs: end
51 addAliases: start
52 addAliases: end
54 addEnums: start
55 addEnums: end
57 addStructs: start
58 addStructs: end
60 addTypes: start
61 addTypes: end
63 addFuncts: start
64 addFuncts: end
66 addUnions: start
67 addUnions: end
69 addConstants: start
70 addConstants: end
73 wrap: cairo
75 ###########################################################
76 ### Cairo Drawing #########################################
77 ###########################################################
79 file: cairo-cairo-t.html
80 struct: cairo_t
81 class: Cairo
82 prefix: cairo_
83 structWrap: cairo_surface_t* Surface
84 structWrap: cairo_t* Cairo
85 import: cairoLib.Surface
86 import: glib.Str
87 import: gdk.Region
88 import: gdk.Rectangle
89 import: gdk.Pixbuf
90 import: gdk.Pixmap
91 import: gdk.Color
92 import: gtkc.gdk
93 import: gdk.Drawable
95 code: start
98         /**
99          * Creates a Cairo context for drawing to drawable.
100          * drawable:
101          *  a GdkDrawable
102          * Returns:
103          *  A newly created Cairo context. Free with
104          *  cairo_destroy() when you are done drawing.
105          * Since 2.8
106          */
107         this (Drawable drawable)
108         {
109                 // cairo_t* gdk_cairo_create (GdkDrawable *);
110                 this(gdk_cairo_create(drawable.getDrawableStruct()));
111         }
113         /**
114          * Sets the specified GdkColor as the source color of cr.
115          * cr:
116          *  a cairo_t
117          * color:
118          *  a GdkColor
119          * Since 2.8
120          */
121         public void setSourceColor(Color color)
122         {
123                 // void gdk_cairo_set_source_color (cairo_t *cr,  GdkColor *color);
124                 gdk_cairo_set_source_color(getCairoStruct(), color.getColorStruct());
125         }
127         /**
128          * Sets the given pixbuf as the source pattern for the Cairo context.
129          * The pattern has an extend mode of CAIRO_EXTEND_NONE and is aligned
130          * so that the origin of pixbuf is pixbuf_x, pixbuf_y
131          * cr:
132          *  a Cairo context
133          * pixbuf:
134          *  a GdkPixbuf
135          * pixbuf_x:
136          *  X coordinate of location to place upper left corner of pixbuf
137          * pixbuf_y:
138          *  Y coordinate of location to place upper left corner of pixbuf
139          * Since 2.8
140          */
141         public void setSourcePixbuf(Pixbuf pixbuf, double pixbufX, double pixbufY)
142         {
143                 // void gdk_cairo_set_source_pixbuf (cairo_t *cr,  GdkPixbuf *pixbuf,  double pixbuf_x,  double pixbuf_y);
144                 gdk_cairo_set_source_pixbuf(getCairoStruct(), pixbuf.getPixbufStruct(), pixbufX, pixbufY);
145         }
147         /**
148          * Sets the given pixmap as the source pattern for the Cairo context.
149          * The pattern has an extend mode of CAIRO_EXTEND_NONE and is aligned
150          * so that the origin of pixbuf is pixbuf_x, pixbuf_y
151          * cr:
152          *  a Cairo context
153          * pixmap:
154          *  a GdkPixmap
155          * pixmap_x:
156          *  X coordinate of location to place upper left corner of pixmap
157          * pixmap_y:
158          *  Y coordinate of location to place upper left corner of pixmap
159          * Since 2.10
160          */
161         public void setSourcePixmap(Pixmap pixmap, double pixmapX, double pixmapY)
162         {
163                 // void gdk_cairo_set_source_pixmap (cairo_t *cr,  GdkPixmap *pixmap,  double pixmap_x,  double pixmap_y);
164                 gdk_cairo_set_source_pixmap( getCairoStruct(), pixmap.getPixmapStruct(), pixmapX, pixmapY);
165         }
167         /**
168          * Adds the given rectangle to the current path of cr.
169          * cr:
170          *  a cairo_t
171          * rectangle:
172          *  a GdkRectangle
173          * Since 2.8
174          */
175         public void rectangle(Rectangle rectangle)
176         {
177                 // void gdk_cairo_rectangle (cairo_t *cr,  GdkRectangle *rectangle);
178                 gdk_cairo_rectangle( getCairoStruct(), rectangle.getRectangleStruct());
179         }
181         /**
182          * Adds the given region to the current path of cr.
183          * cr:
184          *  a cairo_t
185          * region:
186          *  a GdkRegion
187          * Since 2.8
188          */
189         public  void region( Region region)
190         {
191                 // void gdk_cairo_region (cairo_t *cr,  GdkRegion *region);
192                 gdk_cairo_region(getCairoStruct(), region.getRegionStruct());
193         }
196 code: end
198 openFile: Cairo
200 file: cairo-Paths.html
201 mergeFile: Cairo
203 file: cairo-Transformations.html
204 mergeFile: Cairo
206 file: cairo-Text.html
207 closeFile: Cairo
210 file: cairo-Patterns.html
211 struct: cairo_pattern_t
212 class: Pattern
213 prefix: cairo_pattern_
214 outFile: Pattern
216 ###########################################################
217 ### Cairo Fonts ###########################################
218 ###########################################################
220 file: cairo-cairo-font-face-t.html
221 struct: cairo_font_face_t
222 class: FontFace
223 prefix: cairo_font_face_
224 outFile: FontFace
226 file: cairo-Scaled-Fonts.html
227 struct: cairo_scaled_font_t
228 class: ScaledFont
229 prefix: cairo_scaled_font_
230 import: glib.Str
231 outFile: ScaledFont
233 file: cairo-Font-Options.html
234 struct: cairo_font_options_t
235 class: FontOption
236 prefix: cairo_font_options_
237 outFile: FontOption
239 #file: cairo-FreeType-Fonts.html
240 #struct: 
241 #class: 
242 #prefix: 
243 #outFile: 
245 #file: cairo-Win32-Fonts.html
246 #struct: 
247 #class: 
248 #prefix: 
249 #outFile: 
251 ###########################################################
252 ### Cairo Surfaces ########################################
253 ###########################################################
255 file: cairo-cairo-surface-t.html
256 struct: cairo_surface_t
257 class: Surface
258 prefix: cairo_surface_
259 prefix: cairo_
260 import: glib.Str
261 openFile: Surface
263 file: cairo-Image-Surfaces.html
264 mergeFile: Surface
266 #file: cairo-Glitz-Surfaces.html
267 #mergeFile: Surface
269 #file: cairo-PDF-Surfaces.html
270 #mergeFile: Surface
272 #file: cairo-PNG-Support.html
273 #mergeFile: Surface
275 #file: cairo-PostScript-Surfaces.html
276 #mergeFile: Surface
278 #file: cairo-Win32-Surfaces.html
279 #mergeFile: Surface
281 #file: cairo-XLib-Surfaces.html
282 closeFile: Surface
284 ###########################################################
285 ### Cairo Utilities #######################################
286 ###########################################################
288 file: cairo-cairo-matrix-t.html
289 struct: cairo_matrix_t
290 class: Matrix
291 structWrap: surfaceT* Surface
292 prefix: cairo_matrix_
293 import: glib.Str
294 outFile: Matrix
296 file: cairo-Error-handling.html
297 struct: cairo_status_t
298 class: Status
299 prefix: cairo_status_t
300 import: glib.Str
301 outFile: Status
304 file: cairo-Version-Information.html
305 #struct: 
306 class: Version
307 #prefix: 
308 import: glib.Str
309 outFile: Version
311 file: cairo-Types.html
312 #struct: 
313 #class: 
314 #prefix: 
315 noprefix: cairo_bool_t
316 outFile: Types