javauis/lcdui_qt/src/javax/microedition/lcdui/ImageBuffer.java
changeset 35 85266cc22c7f
parent 26 dc7c549001d5
child 47 f40128debb5d
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
       
    17 
    17 package javax.microedition.lcdui;
    18 package javax.microedition.lcdui;
    18 
    19 
    19 import org.eclipse.swt.graphics.Internal_GfxPackageSupport;
    20 import org.eclipse.swt.graphics.Internal_GfxPackageSupport;
    20 import org.eclipse.swt.internal.qt.graphics.GraphicsContext;
    21 import org.eclipse.swt.internal.qt.graphics.GraphicsContext;
       
    22 import org.eclipse.swt.widgets.Widget;
    21 
    23 
    22 final class ImageBuffer extends Buffer
    24 final class ImageBuffer extends Buffer
    23 {
    25 {
    24 
    26 
    25     private Image host;
    27     private Image host;
    32     int getHostType()
    34     int getHostType()
    33     {
    35     {
    34         return HOST_TYPE_IMAGE;
    36         return HOST_TYPE_IMAGE;
    35     }
    37     }
    36 
    38 
    37     void setupWindowSurface()
       
    38     {
       
    39         // nothing to do here
       
    40     }
       
    41 
       
    42     Object getHost()
    39     Object getHost()
    43     {
    40     {
    44         return host;
    41         return host;
    45     }
    42     }
    46 
    43 
    47     void bindToHost(GraphicsContext gc)
    44     void bindToHost(GraphicsContext gc)
    48     {
    45     {
    49         gc.bindTarget(Internal_GfxPackageSupport.getImage(Image.getESWTImage(host)));
    46         gc.bindTarget(Internal_GfxPackageSupport.getImage(Image.getESWTImage(host)));
    50     }
    47     }
    51 
    48 
       
    49     void blit(GraphicsContext gc, Widget widget) {
       
    50 		// nothing to do 
       
    51 	}
       
    52 
       
    53     void endPaint() {
       
    54 		// nothing to do 
       
    55 	}
       
    56 
       
    57 	boolean isPaintingActive() {
       
    58 		return false;
       
    59 	}
       
    60 
       
    61 	void beginPaint(int x, int y, int w, int h) {
       
    62 		// nothing to do 
       
    63 	}
       
    64 
    52 }
    65 }