comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Drawable.d @ 0:6dd524f61e62

add dwt win and basic java stuff
author Frank Benoit <benoit@tionex.de>
date Mon, 02 Mar 2009 14:44:16 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:6dd524f61e62
1 /*******************************************************************************
2 * Copyright (c) 2000, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module org.eclipse.swt.graphics.Drawable;
14
15
16 import org.eclipse.swt.graphics.GCData;
17 import org.eclipse.swt.internal.win32.WINTYPES;
18
19 /**
20 * Implementers of <code>Drawable</code> can have a graphics context (GC)
21 * created for them, and then they can be drawn on by sending messages to
22 * their associated GC. SWT images, and device objects such as the Display
23 * device and the Printer device, are drawables.
24 * <p>
25 * <b>IMPORTANT:</b> This class is <em>not</em> part of the SWT
26 * public API. It is marked public only so that it can be shared
27 * within the packages provided by SWT. It should never be
28 * referenced from application code.
29 * </p>
30 *
31 * @see Device
32 * @see Image
33 * @see GC
34 */
35 public interface Drawable {
36
37 /**
38 * Invokes platform specific functionality to allocate a new GC handle.
39 * <p>
40 * <b>IMPORTANT:</b> This method is <em>not</em> part of the public
41 * API for <code>Drawable</code>. It is marked public only so that it
42 * can be shared within the packages provided by SWT. It is not
43 * available on all platforms, and should never be called from
44 * application code.
45 * </p>
46 *
47 * @param data the platform specific GC data
48 * @return the platform specific GC handle
49 */
50
51 public HDC internal_new_GC (GCData data);
52
53 /**
54 * Invokes platform specific functionality to dispose a GC handle.
55 * <p>
56 * <b>IMPORTANT:</b> This method is <em>not</em> part of the public
57 * API for <code>Drawable</code>. It is marked public only so that it
58 * can be shared within the packages provided by SWT. It is not
59 * available on all platforms, and should never be called from
60 * application code.
61 * </p>
62 *
63 * @param handle the platform specific GC handle
64 * @param data the platform specific GC data
65 */
66 public void internal_dispose_GC ( HDC handle, GCData data);
67
68 }