Changeset 480 for trunk/src/cairo/SvgSurface.d
- Timestamp:
- 03/25/08 18:16:02 (8 months ago)
- Files:
-
- trunk/src/cairo/SvgSurface.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cairo/SvgSurface.d
r454 r480 49 49 * module aliases: 50 50 * local aliases: 51 * overrides: 51 52 */ 52 53 … … 81 82 82 83 /** the main Gtk struct as a void* */ 83 protected void* getStruct()84 protected override void* getStruct() 84 85 { 85 86 return cast(void*)cairo_surface; … … 114 115 * Returns: a pointer to the newly created surface. The callerowns the surface and should call cairo_surface_destroy when donewith it.This function always returns a valid pointer, but it will return apointer to a "nil" surface if an error such as out of memoryoccurs. You can use cairo_surface_status() to check for this. 115 116 */ 116 public static SvgSurface create( char[]filename, double widthInPoints, double heightInPoints)117 public static SvgSurface create(string filename, double widthInPoints, double heightInPoints) 117 118 { 118 119 // cairo_surface_t* cairo_svg_surface_create (const char *filename, double width_in_points, double height_in_points); … … 189 190 * Returns: the string associated to given version. 190 191 */ 191 public static char[]versionToString(cairo_svg_version_t versio)192 public static string versionToString(cairo_svg_version_t versio) 192 193 { 193 194 // const char* cairo_svg_version_to_string (cairo_svg_version_t version); 194 return Str.toString(cairo_svg_version_to_string(versio)) .dup;195 return Str.toString(cairo_svg_version_to_string(versio)); 195 196 } 196 197 }
