|
1 /******************************************************************************* |
|
2 * Copyright (c) 2009, 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
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 * Nokia Corporation - initial implementation |
|
10 *******************************************************************************/ |
|
11 |
|
12 package org.eclipse.swt.graphics; |
|
13 |
|
14 /** |
|
15 * <p> |
|
16 * <b>IMPORTANT:</b> This class is <em>not</em> part of the SWT public API. It |
|
17 * must never be accessed from application code. |
|
18 * </p> |
|
19 */ |
|
20 public final class Internal_GfxPackageSupport { |
|
21 /* |
|
22 * From the class Image |
|
23 */ |
|
24 public static int getNullIconHandle() { |
|
25 return Image.getNullIconHandle(); |
|
26 } |
|
27 public static Image new_Image(Device device, org.eclipse.swt.internal.qt.graphics.Image cgImage) { |
|
28 return Image.new_Image(device, cgImage); |
|
29 } |
|
30 public static int getIconHandle(Image i) { |
|
31 return i.getIconHandle(); |
|
32 } |
|
33 public static org.eclipse.swt.internal.qt.graphics.Image getImage(Image i) { |
|
34 return i.getImage(); |
|
35 } |
|
36 public static int getImageHandle(Image i) { |
|
37 return i.getImageHandle(); |
|
38 } |
|
39 public static int getPixmapHandle(Image i) { |
|
40 return i.getPixmapHandle(); |
|
41 } |
|
42 |
|
43 public static Color newColor(Device device, int handle) { |
|
44 return Color.qt_new(device, handle); |
|
45 } |
|
46 public static Font newFont(Device device, int handle) { |
|
47 return Font.qt_new(device, handle); |
|
48 } |
|
49 } |