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/gdk/Font.d

    r429 r480  
    5353 * module aliases: 
    5454 * local aliases: 
     55 * overrides: 
    5556 */ 
    5657 
     
    240241     * Create and loads a font 
    241242     */ 
    242     public this(char[] fontName) 
     243    public this(string fontName) 
    243244    { 
    244245        this(gdk_font_load(Str.toStringz(fontName))); 
     
    258259     * Returns: a GdkFont, or NULL if the font could not be loaded. 
    259260     */ 
    260     public static Font load(char[] fontName) 
     261    public static Font load(string fontName) 
    261262    { 
    262263        // GdkFont* gdk_font_load (const gchar *font_name); 
     
    282283     * Returns: a GdkFont, or NULL if the font could not be loaded. 
    283284     */ 
    284     public static Font loadForDisplay(Display display, char[] fontName) 
     285    public static Font loadForDisplay(Display display, string fontName) 
    285286    { 
    286287        // GdkFont* gdk_font_load_for_display (GdkDisplay *display,  const gchar *font_name); 
     
    305306     * Returns: a GdkFont, or NULL if the fontset could not be loaded. 
    306307     */ 
    307     public static Font fontsetLoad(char[] fontsetName) 
     308    public static Font fontsetLoad(string fontsetName) 
    308309    { 
    309310        // GdkFont* gdk_fontset_load (const gchar *fontset_name); 
     
    330331     * Returns: a GdkFont, or NULL if the fontset could not be loaded. 
    331332     */ 
    332     public static Font fontsetLoadForDisplay(Display display, char[] fontsetName) 
     333    public static Font fontsetLoadForDisplay(Display display, string fontsetName) 
    333334    { 
    334335        // GdkFont* gdk_fontset_load_for_display (GdkDisplay *display,  const gchar *fontset_name); 
     
    481482     * descent =  the descent of the string. 
    482483     */ 
    483     public void stringExtents(char[] string, int* lbearing, int* rbearing, int* width, int* ascent, int* descent) 
     484    public void stringExtents(string string, int* lbearing, int* rbearing, int* width, int* ascent, int* descent) 
    484485    { 
    485486        // void gdk_string_extents (GdkFont *font,  const gchar *string,  gint *lbearing,  gint *rbearing,  gint *width,  gint *ascent,  gint *descent); 
     
    502503     * descent =  the descent of the string. 
    503504     */ 
    504     public void textExtents(char[] text, int textLength, int* lbearing, int* rbearing, int* width, int* ascent, int* descent) 
     505    public void textExtents(string text, int textLength, int* lbearing, int* rbearing, int* width, int* ascent, int* descent) 
    505506    { 
    506507        // void gdk_text_extents (GdkFont *font,  const gchar *text,  gint text_length,  gint *lbearing,  gint *rbearing,  gint *width,  gint *ascent,  gint *descent); 
     
    538539     * Returns: the width of the string in pixels. 
    539540     */ 
    540     public int stringWidth(char[] string) 
     541    public int stringWidth(string string) 
    541542    { 
    542543        // gint gdk_string_width (GdkFont *font,  const gchar *string); 
     
    553554     * Returns: the width of the string in pixels. 
    554555     */ 
    555     public int textWidth(char[] text, int textLength) 
     556    public int textWidth(string text, int textLength) 
    556557    { 
    557558        // gint gdk_text_width (GdkFont *font,  const gchar *text,  gint text_length); 
     
    615616     * Returns: the right bearing of the string in pixels. 
    616617     */ 
    617     public int stringMeasure(char[] string) 
     618    public int stringMeasure(string string) 
    618619    { 
    619620        // gint gdk_string_measure (GdkFont *font,  const gchar *string); 
     
    634635     * Returns: the right bearing of the string in pixels. 
    635636     */ 
    636     public int textMeasure(char[] text, int textLength) 
     637    public int textMeasure(string text, int textLength) 
    637638    { 
    638639        // gint gdk_text_measure (GdkFont *font,  const gchar *text,  gint text_length); 
     
    668669     * Returns: the height of the string in pixels. 
    669670     */ 
    670     public int stringHeight(char[] string) 
     671    public int stringHeight(string string) 
    671672    { 
    672673        // gint gdk_string_height (GdkFont *font,  const gchar *string); 
     
    686687     * Returns: the height of the string in pixels. 
    687688     */ 
    688     public int textHeight(char[] text, int textLength) 
     689    public int textHeight(string text, int textLength) 
    689690    { 
    690691        // gint gdk_text_height (GdkFont *font,  const gchar *text,  gint text_length); 
     
    719720     * Returns: the multi-byte string corresponding to src, or NULL if theconversion failed. The returned string should be freed with g_free() when nolonger needed. 
    720721     */ 
    721     public static char[] wcstombs(GdkWChar* src) 
     722    public static string wcstombs(GdkWChar* src) 
    722723    { 
    723724        // gchar* gdk_wcstombs (const GdkWChar *src); 
    724         return Str.toString(gdk_wcstombs(src)).dup
     725        return Str.toString(gdk_wcstombs(src))
    725726    } 
    726727     
     
    737738     * Returns: the number of wide characters written into dest, or -1 if  the conversion failed. 
    738739     */ 
    739     public static int mbstowcs(GdkWChar* dest, char[] src, int destMax) 
     740    public static int mbstowcs(GdkWChar* dest, string src, int destMax) 
    740741    { 
    741742        // gint gdk_mbstowcs (GdkWChar *dest,  const gchar *src,  gint dest_max);