Show
Ignore:
Timestamp:
03/25/08 18:16:02 (8 months ago)
Author:
Mike Wey
Message:

Support for dmd 2.012

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cairo/SvgSurface.d

    r454 r480  
    4949 * module aliases: 
    5050 * local aliases: 
     51 * overrides: 
    5152 */ 
    5253 
     
    8182     
    8283    /** the main Gtk struct as a void* */ 
    83     protected void* getStruct() 
     84    protected override void* getStruct() 
    8485    { 
    8586        return cast(void*)cairo_surface; 
     
    114115     * 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. 
    115116     */ 
    116     public static SvgSurface create(char[] filename, double widthInPoints, double heightInPoints) 
     117    public static SvgSurface create(string filename, double widthInPoints, double heightInPoints) 
    117118    { 
    118119        // cairo_surface_t* cairo_svg_surface_create (const char *filename,  double width_in_points,  double height_in_points); 
     
    189190     * Returns: the string associated to given version. 
    190191     */ 
    191     public static char[] versionToString(cairo_svg_version_t versio) 
     192    public static string versionToString(cairo_svg_version_t versio) 
    192193    { 
    193194        // 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))
    195196    } 
    196197}