Ticket #1: ddoc-cairo.diff
| File ddoc-cairo.diff, 5.9 kB (added by Mike Wey, 1 year ago) |
|---|
-
gtkD/wrap/APILookupCairo.txt
old new 78 78 79 79 file: cairo-cairo-t.html 80 80 struct: cairo_t 81 class: C airo81 class: Context 82 82 prefix: cairo_ 83 83 structWrap: cairo_surface_t* Surface 84 structWrap: cairo_t* C airo85 import: cairo Lib.Surface84 structWrap: cairo_t* Context 85 import: cairo.Surface 86 86 import: glib.Str 87 87 import: gdk.Region 88 88 import: gdk.Rectangle … … 97 97 98 98 /** 99 99 * Creates a Cairo context for drawing to drawable. 100 * drawable: 101 * a GdkDrawable 100 * Since 2.8 101 * Params: 102 * drawable = a GdkDrawable 102 103 * Returns: 103 104 * A newly created Cairo context. Free with 104 105 * cairo_destroy() when you are done drawing. 105 * Since 2.8106 106 */ 107 107 this (Drawable drawable) 108 108 { … … 112 112 113 113 /** 114 114 * Sets the specified GdkColor as the source color of cr. 115 * cr:116 * a cairo_t117 * color:118 * a GdkColor119 115 * Since 2.8 116 * Params: 117 * color = a GdkColor 120 118 */ 121 119 public void setSourceColor(Color color) 122 120 { 123 121 // void gdk_cairo_set_source_color (cairo_t *cr, GdkColor *color); 124 gdk_cairo_set_source_color(getC airoStruct(), color.getColorStruct());122 gdk_cairo_set_source_color(getContextStruct(), color.getColorStruct()); 125 123 } 126 124 127 125 /** 128 126 * Sets the given pixbuf as the source pattern for the Cairo context. 129 127 * 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 128 * so that the origin of pixbuf is pixbufX, pixbufY 139 129 * Since 2.8 130 * Params: 131 * pixbuf = a GdkPixbuf 132 * pixbufX = X coordinate of location to place upper left corner of pixbuf 133 * pixbufY = Y coordinate of location to place upper left corner of pixbuf 140 134 */ 141 135 public void setSourcePixbuf(Pixbuf pixbuf, double pixbufX, double pixbufY) 142 136 { 143 137 // void gdk_cairo_set_source_pixbuf (cairo_t *cr, GdkPixbuf *pixbuf, double pixbuf_x, double pixbuf_y); 144 gdk_cairo_set_source_pixbuf(getC airoStruct(), pixbuf.getPixbufStruct(), pixbufX, pixbufY);138 gdk_cairo_set_source_pixbuf(getContextStruct(), pixbuf.getPixbufStruct(), pixbufX, pixbufY); 145 139 } 146 140 147 141 /** 148 142 * Sets the given pixmap as the source pattern for the Cairo context. 149 143 * 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 144 * so that the origin of pixbuf is pixbufX, pixbufY 159 145 * Since 2.10 146 * Params: 147 * pixmap = a GdkPixmap 148 * pixmapX = X coordinate of location to place upper left corner of pixmap 149 * pixmapY = Y coordinate of location to place upper left corner of pixmap 160 150 */ 161 151 public void setSourcePixmap(Pixmap pixmap, double pixmapX, double pixmapY) 162 152 { 163 153 // void gdk_cairo_set_source_pixmap (cairo_t *cr, GdkPixmap *pixmap, double pixmap_x, double pixmap_y); 164 gdk_cairo_set_source_pixmap( getC airoStruct(), pixmap.getPixmapStruct(), pixmapX, pixmapY);154 gdk_cairo_set_source_pixmap( getContextStruct(), pixmap.getPixmapStruct(), pixmapX, pixmapY); 165 155 } 166 156 167 157 /** 168 158 * Adds the given rectangle to the current path of cr. 169 * cr:170 * a cairo_t171 * rectangle:172 * a GdkRectangle173 159 * Since 2.8 160 * Params: 161 * rectangle = a GdkRectangle 174 162 */ 175 163 public void rectangle(Rectangle rectangle) 176 164 { 177 165 // void gdk_cairo_rectangle (cairo_t *cr, GdkRectangle *rectangle); 178 gdk_cairo_rectangle( getC airoStruct(), rectangle.getRectangleStruct());166 gdk_cairo_rectangle( getContextStruct(), rectangle.getRectangleStruct()); 179 167 } 180 168 181 169 /** 182 170 * Adds the given region to the current path of cr. 183 * cr:184 * a cairo_t185 * region:186 * a GdkRegion187 171 * Since 2.8 172 * Params: 173 * region = a GdkRegion 188 174 */ 189 public void region( Region region)175 public void region(Region region) 190 176 { 191 177 // void gdk_cairo_region (cairo_t *cr, GdkRegion *region); 192 gdk_cairo_region(getC airoStruct(), region.getRegionStruct());178 gdk_cairo_region(getContextStruct(), region.getRegionStruct()); 193 179 } 194 180 195 181 196 182 code: end 197 183 198 openFile: C airo184 openFile: Context 199 185 200 186 file: cairo-Paths.html 201 mergeFile: C airo187 mergeFile: Context 202 188 203 189 file: cairo-Transformations.html 204 mergeFile: C airo190 mergeFile: Context 205 191 206 192 file: cairo-Text.html 207 closeFile: C airo193 closeFile: Context 208 194 209 195 210 196 file: cairo-Patterns.html -
gtkD/wrap/APILookupGdk.txt
old new 128 128 struct: GdkScreen 129 129 class: Screen 130 130 prefix: gdk_screen_ 131 import: gtkc.cairo Libtypes131 import: gtkc.cairotypes 132 132 import: glib.Str 133 133 import: gdk.Screen 134 134 structWrap: GdkScreen* Screen … … 968 968 file: gdk-Cairo-Interaction.html 969 969 970 970 prefix: gdk_cairo_ 971 import: cairo Lib.Cairo972 structWrap: cairo_t* C airo971 import: cairo.Context 972 structWrap: cairo_t* Context 973 973 structWrap: GdkDrawable* Drawable 974 974 structWrap: GdkColor* Color 975 975 structWrap: GdkPixbuf* Pixbuf … … 990 990 * This file is not used, 991 991 * 992 992 * It is here just to tell you to look at 993 * cairo Lib.Cairoclass for the methods that where here..993 * cairo.Context class for the methods that where here.. 994 994 */ 995 995 996 996 -
gtkD/wrap/APILookup.txt
old new 132 132 package: glib glib 133 133 package: gthread gthread 134 134 package: gobject gobject 135 package: cairo cairo Lib135 package: cairo cairo 136 136 package: pango pango 137 137 package: atk atk 138 138 package: gdk-pixbuf gdkpixbuf
