Mercurial > projects > dwt-linux
comparison dwt/graphics/Device.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | 997624cece6a |
children | 06a1f6829310 |
comparison
equal
deleted
inserted
replaced
237:98b80b00af79 | 238:380bad9f6852 |
---|---|
67 | 67 |
68 /* Warning and Error Handlers */ | 68 /* Warning and Error Handlers */ |
69 //int /*long*/ logProcFld; | 69 //int /*long*/ logProcFld; |
70 //GLogFunc logCallback; | 70 //GLogFunc logCallback; |
71 //NOT DONE - get list of valid names | 71 //NOT DONE - get list of valid names |
72 char[] [] log_domains = ["GLib-GObject"[], "GLib", "GObject", "Pango", "ATK", "GdkPixbuf", "Gdk", "Gtk", "GnomeVFS"]; | 72 String [] log_domains = ["GLib-GObject"[], "GLib", "GObject", "Pango", "ATK", "GdkPixbuf", "Gdk", "Gtk", "GnomeVFS"]; |
73 int [] handler_ids;// = new int [log_domains.length]; | 73 int [] handler_ids;// = new int [log_domains.length]; |
74 int warningLevel; | 74 int warningLevel; |
75 | 75 |
76 /* X Warning and Error Handlers */ | 76 /* X Warning and Error Handlers */ |
77 static extern(C) int function(void *) mXIOErrorHandler; | 77 static extern(C) int function(void *) mXIOErrorHandler; |
403 * | 403 * |
404 * @exception DWTException <ul> | 404 * @exception DWTException <ul> |
405 * <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> | 405 * <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> |
406 * </ul> | 406 * </ul> |
407 */ | 407 */ |
408 public FontData[] getFontList (char[] faceName, bool scalable) { | 408 public FontData[] getFontList (String faceName, bool scalable) { |
409 checkDevice (); | 409 checkDevice (); |
410 if (!scalable) return new FontData[0]; | 410 if (!scalable) return new FontData[0]; |
411 PangoFontFamily* family; | 411 PangoFontFamily* family; |
412 PangoFontFace * face; | 412 PangoFontFace * face; |
413 PangoFontFamily** families; | 413 PangoFontFamily** families; |
671 * | 671 * |
672 * @see Font | 672 * @see Font |
673 * | 673 * |
674 * @since 3.3 | 674 * @since 3.3 |
675 */ | 675 */ |
676 public bool loadFont (char[] path) { | 676 public bool loadFont (String path) { |
677 checkDevice(); | 677 checkDevice(); |
678 if (path is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); | 678 if (path is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); |
679 return cast(bool) OS.FcConfigAppFontAddFile (null, toStringz(path)); | 679 return cast(bool) OS.FcConfigAppFontAddFile (null, toStringz(path)); |
680 } | 680 } |
681 | 681 |