javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/org/eclipse/swt/graphics/Internal_GfxPackageSupport.java
changeset 57 59b3b4473dc8
parent 56 abc41079b313
child 72 1f0034e370aa
equal deleted inserted replaced
56:abc41079b313 57:59b3b4473dc8
    24  * From the class Image
    24  * From the class Image
    25  */
    25  */
    26 public static int getNullIconHandle() {
    26 public static int getNullIconHandle() {
    27     return Image.getNullIconHandle();
    27     return Image.getNullIconHandle();
    28 }
    28 }
    29 public static Image new_Image(Device device, org.eclipse.swt.internal.qt.graphics.Image cgImage) {
    29 
    30     return Image.new_Image(device, cgImage);
    30 public static Image new_Image(Device device, 
       
    31         org.eclipse.swt.internal.qt.graphics.Image cgImage) {
       
    32     return Image.qt_new(device, cgImage);
    31 }
    33 }
       
    34 
    32 public static int getIconHandle(Image i) {
    35 public static int getIconHandle(Image i) {
    33     return i.getIconHandle();
    36     return i.getIconHandle();
    34 }
    37 }
       
    38 
    35 public static org.eclipse.swt.internal.qt.graphics.Image getImage(Image i) {
    39 public static org.eclipse.swt.internal.qt.graphics.Image getImage(Image i) {
    36     return i.getImage();
    40     return i.getImage();
    37 }
    41 }
       
    42 
    38 public static int getImageHandle(Image i) {
    43 public static int getImageHandle(Image i) {
    39     return i.getImageHandle();
    44     return i.getImageHandle();
    40 }
    45 }
       
    46 
    41 public static int getPixmapHandle(Image i) {
    47 public static int getPixmapHandle(Image i) {
    42     return i.getPixmapHandle();
    48     return i.getPixmapHandle();
    43 }
    49 }
    44 /*
       
    45  * From the class Device
       
    46  */
       
    47 public static boolean internal(Device d) {
       
    48 	return d.internal;
       
    49 }
       
    50 public static boolean initialized() {
       
    51 	return Device.initialized;
       
    52 }
       
    53 
    50 
    54 public static Color newColor(Device device, int handle) {
       
    55     return Color.qt_new(device, handle);
       
    56 }
       
    57 public static Font newFont(Device device, int handle) {
       
    58     return Font.qt_new(device, handle);
       
    59 }
       
    60 
       
    61 /*
       
    62  * From the class Image
       
    63  */
       
    64 public static Image createImageWithoutSecurityCheck(Device device,
    51 public static Image createImageWithoutSecurityCheck(Device device,
    65         String filename) {
    52         String filename) {
    66     return Image.createImageWithoutSecurityCheck(device, filename);
    53     return Image.createImageWithoutSecurityCheck(device, filename);
    67 }
    54 }
    68 
    55 
    72 
    59 
    73 public static Point getImageSize(InputStream stream) {
    60 public static Point getImageSize(InputStream stream) {
    74     return Image.getImageSize(stream);
    61     return Image.getImageSize(stream);
    75 }
    62 }
    76 
    63 
       
    64 /*
       
    65  * From the class Device
       
    66  */
       
    67 public static boolean internal(Device d) {
       
    68 	return d.internal;
    77 }
    69 }
       
    70 
       
    71 public static boolean initialized() {
       
    72 	return Device.initialized;
       
    73 }
       
    74 
       
    75 public static Color newColor(Device device, int handle) {
       
    76     return Color.qt_new(device, handle);
       
    77 }
       
    78 
       
    79 public static Font newFont(Device device, int handle) {
       
    80     return Font.qt_new(device, handle);
       
    81 }
       
    82 
       
    83 }