Changeset 179 for trunk/cairo/cairooo
- Timestamp:
- 03/05/07 23:29:44 (5 years ago)
- Files:
-
- trunk/cairo/cairooo/all.d (modified) (1 diff)
- trunk/cairo/cairooo/context.d (modified) (4 diffs)
- trunk/cairo/cairooo/exceptions.d (modified) (1 diff)
- trunk/cairo/cairooo/extra/all.d (modified) (1 diff)
- trunk/cairo/cairooo/glitz/all.d (modified) (1 diff)
- trunk/cairo/cairooo/imagebuffersurface.d (modified) (1 diff)
- trunk/cairo/cairooo/matrix.d (modified) (1 diff)
- trunk/cairo/cairooo/png/all.d (modified) (1 diff)
- trunk/cairo/cairooo/png/pngsurface.d (modified) (3 diffs)
- trunk/cairo/cairooo/win32/all.d (modified) (1 diff)
- trunk/cairo/cairooo/xlib/all.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cairo/cairooo/all.d
r119 r179 73 73 module cairooo.all; 74 74 75 import cairooo.cairo; 76 import cairooo.callbacks; 77 import cairooo.context; 78 import cairooo.enums; 79 import cairooo.exceptions; 80 import cairooo.fontextents; 81 import cairooo.fontface; 82 import cairooo.fontoptions; 83 import cairooo.glyph; 84 import cairooo.gradient; 85 import cairooo.imagebuffersurface; 86 import cairooo.imagesurface; 87 import cairooo.lineargradient; 88 import cairooo.matrix; 89 import cairooo.path; 90 import cairooo.pattern; 91 import cairooo.radialgradient; 92 import cairooo.scaledfont; 93 import cairooo.solidpattern; 94 import cairooo.surface; 95 import cairooo.surfacepattern; 96 import cairooo.textextents; 75 public 76 { 77 import cairooo.cairo; 78 import cairooo.callbacks; 79 import cairooo.context; 80 import cairooo.enums; 81 import cairooo.exceptions; 82 import cairooo.fontextents; 83 import cairooo.fontface; 84 import cairooo.fontoptions; 85 import cairooo.glyph; 86 import cairooo.gradient; 87 import cairooo.imagebuffersurface; 88 import cairooo.imagesurface; 89 import cairooo.lineargradient; 90 import cairooo.matrix; 91 import cairooo.path; 92 import cairooo.pattern; 93 import cairooo.radialgradient; 94 import cairooo.scaledfont; 95 import cairooo.solidpattern; 96 import cairooo.surface; 97 import cairooo.surfacepattern; 98 import cairooo.textextents; 99 } 97 100 trunk/cairo/cairooo/context.d
r119 r179 318 318 { 319 319 scope(success) checkStatus(); 320 cairo_set_dash(this.handle, dashes , dashes.length, offset);320 cairo_set_dash(this.handle, dashes.ptr, dashes.length, offset); 321 321 } 322 322 … … 852 852 { 853 853 scope(success) checkStatus(); 854 cairo_glyph_path(this.handle, cast(cairo_glyph_t*) glyphs ,854 cairo_glyph_path(this.handle, cast(cairo_glyph_t*) glyphs.ptr, 855 855 glyphs.length); 856 856 } … … 1127 1127 { 1128 1128 scope(success) checkStatus(); 1129 cairo_show_glyphs(this.handle, cast(cairo_glyph_t*) glyphs ,1129 cairo_show_glyphs(this.handle, cast(cairo_glyph_t*) glyphs.ptr, 1130 1130 glyphs.length); 1131 1131 } … … 1174 1174 scope(success) checkStatus(); 1175 1175 TextExtents result; 1176 cairo_glyph_extents(this.handle, cast(cairo_glyph_t*) glyphs ,1176 cairo_glyph_extents(this.handle, cast(cairo_glyph_t*) glyphs.ptr, 1177 1177 glyphs.length, cast(cairo_text_extents_t*) &result); 1178 1178 return result; trunk/cairo/cairooo/exceptions.d
r119 r179 45 45 } 46 46 47 packagevoid47 void 48 48 checkStatus(cairo_status_t status) 49 49 { trunk/cairo/cairooo/extra/all.d
r119 r179 39 39 module cairooo.extra.all; 40 40 41 import cairooo.extra.shapetemplate; 42 import cairooo.extra.types; 41 public 42 { 43 import cairooo.extra.shapetemplate; 44 import cairooo.extra.types; 45 } 43 46 trunk/cairo/cairooo/glitz/all.d
r119 r179 39 39 module cairooo.glitz.all; 40 40 41 import cairooo.glitz.glitz; 42 import cairooo.glitz.glitzsurface; 41 public 42 { 43 import cairooo.glitz.glitz; 44 import cairooo.glitz.glitzsurface; 45 } 43 46 trunk/cairo/cairooo/imagebuffersurface.d
r119 r179 109 109 this._data = data; 110 110 this.selfAllocated = false; 111 super(cairo_image_surface_create_for_data(data ,111 super(cairo_image_surface_create_for_data(data.ptr, 112 112 cast(cairo_format_t) format, width, height, stride), 113 113 true); trunk/cairo/cairooo/matrix.d
r119 r179 131 131 fromPtr(cairo_matrix_t* ptr) 132 132 { 133 return cast(Matrix) (*ptr); 133 //return cast(Matrix) (*ptr); 134 return *(cast(Matrix*)ptr); 134 135 } 135 136 } trunk/cairo/cairooo/png/all.d
r119 r179 39 39 module cairooo.png.all; 40 40 41 import cairooo.png.png; 42 import cairooo.png.pngsurface; 41 public 42 { 43 import cairooo.png.png; 44 import cairooo.png.pngsurface; 45 } 43 46 trunk/cairo/cairooo/png/pngsurface.d
r119 r179 42 42 { 43 43 import std.stream; 44 import std.string; 44 45 import cairo.cairo; 45 46 import cairo.png.cairo_png; … … 102 103 this(char[] filename) 103 104 { 104 super(cairo_image_surface_create_from_png(filename), false); 105 super(cairo_image_surface_create_from_png( 106 toStringz(filename)), false); 105 107 } 106 108 … … 131 133 writeToPNG(Surface surface, char[] filename) 132 134 { 133 .checkStatus(cairo_surface_write_to_png(surface.handle, filename)); 135 .checkStatus(cairo_surface_write_to_png(surface.handle, 136 toStringz(filename))); 134 137 } 135 138 trunk/cairo/cairooo/win32/all.d
r119 r179 39 39 module cairooo.win32.all; 40 40 41 import cairooo.win32.win32; 42 import cairooo.win32.win32fontface; 43 import cairooo.win32.win32scaledfont; 44 import cairooo.win32.win32surface; 41 public 42 { 43 import cairooo.win32.win32; 44 import cairooo.win32.win32fontface; 45 import cairooo.win32.win32scaledfont; 46 import cairooo.win32.win32surface; 47 } 45 48 trunk/cairo/cairooo/xlib/all.d
r119 r179 39 39 module cairooo.xlib.all; 40 40 41 import cairooo.xlib.xlib; 42 import cairooo.xlib.drawablesurface; 43 import cairooo.xlib.pixmapsurface; 41 public 42 { 43 import cairooo.xlib.xlib; 44 import cairooo.xlib.drawablesurface; 45 import cairooo.xlib.pixmapsurface; 46 } 44 47
