Changeset 212:ab60f3309436 for dwt/graphics/GC.d
- Timestamp:
- 05/04/08 18:12:38 (8 months ago)
- Files:
-
- dwt/graphics/GC.d (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/graphics/GC.d
r197 r212 582 582 } else { 583 583 chars = new wchar[OS.LF_FACESIZE]; 584 char[]bytes = logFont.lfFaceName;584 String bytes = logFont.lfFaceName; 585 585 OS.MultiByteToWideChar (OS.CP_ACP, OS.MB_PRECOMPOSED, bytes.ptr, bytes.length, chars, chars.length); 586 586 } … … 590 590 index++; 591 591 } 592 char[]name = WCHARsToStr( chars[ 0 .. index ] );592 String name = WCHARsToStr( chars[ 0 .. index ] ); 593 593 if (Compatibility.equalsIgnoreCase(name, "Courier")) { //$NON-NLS-1$ 594 594 name = "Courier New"; //$NON-NLS-1$ … … 2081 2081 * </ul> 2082 2082 */ 2083 public void drawString ( char[]string, int x, int y) {2083 public void drawString (String string, int x, int y) { 2084 2084 drawString(string, x, y, false); 2085 2085 } … … 2105 2105 * </ul> 2106 2106 */ 2107 public void drawString ( char[]string, int x, int y, bool isTransparent) {2107 public void drawString (String string, int x, int y, bool isTransparent) { 2108 2108 if (handle is null) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); 2109 2109 if (string is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); … … 2237 2237 * </ul> 2238 2238 */ 2239 public void drawText ( char[]string, int x, int y) {2239 public void drawText (String string, int x, int y) { 2240 2240 drawText(string, x, y, DWT.DRAW_DELIMITER | DWT.DRAW_TAB); 2241 2241 } … … 2261 2261 * </ul> 2262 2262 */ 2263 public void drawText ( char[]string, int x, int y, bool isTransparent) {2263 public void drawText (String string, int x, int y, bool isTransparent) { 2264 2264 int flags = DWT.DRAW_DELIMITER | DWT.DRAW_TAB; 2265 2265 if (isTransparent) flags |= DWT.DRAW_TRANSPARENT; … … 2301 2301 * </ul> 2302 2302 */ 2303 public void drawText ( char[]string, int x, int y, int flags) {2303 public void drawText (String string, int x, int y, int flags) { 2304 2304 if (handle is null) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); 2305 2305 if (string is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); … … 4687 4687 * </ul> 4688 4688 */ 4689 public Point stringExtent( char[]string) {4689 public Point stringExtent(String string) { 4690 4690 if (handle is null) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); 4691 4691 if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); … … 4745 4745 * </ul> 4746 4746 */ 4747 public Point textExtent( char[]string) {4747 public Point textExtent(String string) { 4748 4748 return textExtent(string, DWT.DRAW_DELIMITER | DWT.DRAW_TAB); 4749 4749 } … … 4780 4780 * </ul> 4781 4781 */ 4782 public Point textExtent( char[]string, int flags) {4782 public Point textExtent(String string, int flags) { 4783 4783 if (handle is null) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); 4784 4784 if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); … … 4831 4831 * @return a string representation of the receiver 4832 4832 */ 4833 override public char[]toString () {4833 override public String toString () { 4834 4834 if (isDisposed()) return "GC {*DISPOSED*}"; 4835 4835 return Format( "GC {{{}}", handle );
