comparison dwt/graphics/Drawable.d @ 36:db5a898b2119

Fixed a lot of compile errors
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 07 Oct 2008 12:56:18 +0200
parents b9226997409c
children d8635bb48c7c
comparison
equal deleted inserted replaced
35:7d135fe0caf2 36:db5a898b2119
11 * Port to the D programming language: 11 * Port to the D programming language:
12 * Jacob Carlborg <jacob.carlborg@gmail.com> 12 * Jacob Carlborg <jacob.carlborg@gmail.com>
13 *******************************************************************************/ 13 *******************************************************************************/
14 module dwt.graphics.Drawable; 14 module dwt.graphics.Drawable;
15 15
16 import dwt.graphics.GCData;
17
16 import dwt.dwthelper.utils; 18 import dwt.dwthelper.utils;
17 import dwt.graphics.GCData; 19 import objc = dwt.internal.objc.runtime;
18 20
19 /** 21 /**
20 * Implementers of <code>Drawable</code> can have a graphics context cast(GC) 22 * Implementers of <code>Drawable</code> can have a graphics context cast(GC)
21 * created for them, and then they can be drawn on by sending messages to 23 * created for them, and then they can be drawn on by sending messages to
22 * their associated GC. DWT images, and device objects such as the Display 24 * their associated GC. DWT images, and device objects such as the Display
46 * 48 *
47 * @param data the platform specific GC data 49 * @param data the platform specific GC data
48 * @return the platform specific GC handle 50 * @return the platform specific GC handle
49 */ 51 */
50 52
51 public size_t /*long*/ internal_new_GC (GCData data); 53 public objc.id /*long*/ internal_new_GC (GCData data);
52 54
53 /** 55 /**
54 * Invokes platform specific functionality to dispose a GC handle. 56 * Invokes platform specific functionality to dispose a GC handle.
55 * <p> 57 * <p>
56 * <b>IMPORTANT:</b> This method is <em>not</em> part of the public 58 * <b>IMPORTANT:</b> This method is <em>not</em> part of the public
61 * </p> 63 * </p>
62 * 64 *
63 * @param handle the platform specific GC handle 65 * @param handle the platform specific GC handle
64 * @param data the platform specific GC data 66 * @param data the platform specific GC data
65 */ 67 */
66 public void internal_dispose_GC (size_t /*long*/ handle, GCData data); 68 public void internal_dispose_GC (objc.id /*long*/ handle, GCData data);
67 69
68 } 70 }