comparison dwt/graphics/Drawable.d @ 32:b9226997409c

Ported dwt.graphics.Image*
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Fri, 12 Sep 2008 13:44:30 +0200
parents e831403a80a9
children db5a898b2119
comparison
equal deleted inserted replaced
31:9a3047e87f1d 32:b9226997409c
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 *
11 * Port to the D programming language:
12 * Jacob Carlborg <jacob.carlborg@gmail.com>
10 *******************************************************************************/ 13 *******************************************************************************/
11 module dwt.graphics.Drawable; 14 module dwt.graphics.Drawable;
12 15
13 import dwt.dwthelper.utils; 16 import dwt.dwthelper.utils;
14 17 import dwt.graphics.GCData;
15 18
16 /** 19 /**
17 * Implementers of <code>Drawable</code> can have a graphics context cast(GC) 20 * Implementers of <code>Drawable</code> can have a graphics context cast(GC)
18 * created for them, and then they can be drawn on by sending messages to 21 * created for them, and then they can be drawn on by sending messages to
19 * their associated GC. DWT images, and device objects such as the Display 22 * their associated GC. DWT images, and device objects such as the Display
43 * 46 *
44 * @param data the platform specific GC data 47 * @param data the platform specific GC data
45 * @return the platform specific GC handle 48 * @return the platform specific GC handle
46 */ 49 */
47 50
48 public int /*long*/ internal_new_GC (GCData data); 51 public size_t /*long*/ internal_new_GC (GCData data);
49 52
50 /** 53 /**
51 * Invokes platform specific functionality to dispose a GC handle. 54 * Invokes platform specific functionality to dispose a GC handle.
52 * <p> 55 * <p>
53 * <b>IMPORTANT:</b> This method is <em>not</em> part of the public 56 * <b>IMPORTANT:</b> This method is <em>not</em> part of the public
58 * </p> 61 * </p>
59 * 62 *
60 * @param handle the platform specific GC handle 63 * @param handle the platform specific GC handle
61 * @param data the platform specific GC data 64 * @param data the platform specific GC data
62 */ 65 */
63 public void internal_dispose_GC (int /*long*/ handle, GCData data); 66 public void internal_dispose_GC (size_t /*long*/ handle, GCData data);
64 67
65 } 68 }