javauis/lcdui_qt/src/javax/microedition/lcdui/LCDUIInvokerImpl.java
changeset 35 85266cc22c7f
parent 26 dc7c549001d5
child 48 e0d6e9bd3ca7
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
   203     protected Object doGetGraphics(Object canvas)
   203     protected Object doGetGraphics(Object canvas)
   204     {
   204     {
   205         return ((Canvas) canvas).getGameBufferGraphics();
   205         return ((Canvas) canvas).getGameBufferGraphics();
   206     }
   206     }
   207 
   207 
       
   208     protected org.eclipse.swt.internal.qt.graphics.WindowSurface doGetWindowSurface( Graphics g )
       
   209     {
       
   210         if( g != null )
       
   211         {
       
   212             return g.getGraphicsBuffer().getWindowSurface();
       
   213         }
       
   214         return null;
       
   215     }
       
   216     
   208     protected Object doGetFlushLock(Object graphics)
   217     protected Object doGetFlushLock(Object graphics)
   209     {
   218     {
   210         //return ((Graphics) graphics).graphicsBuffer;
   219         //return ((Graphics) graphics).graphicsBuffer;
   211         return null;
   220         return null;
   212     }
   221     }
   225                                    int x, int y, int width, int height)
   234                                    int x, int y, int width, int height)
   226     {
   235     {
   227         ((Canvas) canvas).flushGameBuffer(x, y, width, height);
   236         ((Canvas) canvas).flushGameBuffer(x, y, width, height);
   228     }
   237     }
   229 
   238 
       
   239     protected void doSync(Object graphics) 
       
   240     {
       
   241     	((Graphics)graphics).sync();
       
   242     } 
       
   243     
       
   244     protected void doStartExternalRendering(Graphics g)
       
   245     {
       
   246         // Flush any pending 2D graphics.
       
   247         g.sync();
       
   248         g.getGraphicsBuffer().startFrame( g.getClipX(),
       
   249                                           g.getClipY(),
       
   250                                           g.getClipWidth(),
       
   251                                           g.getClipHeight() );
       
   252     }
       
   253     
       
   254     protected void doEndExternalRendering(Graphics g)
       
   255     {
       
   256         g.getGraphicsBuffer().endFrame();
       
   257     }
       
   258     
   230     protected String doGetDynamicProperty(String key)
   259     protected String doGetDynamicProperty(String key)
   231     {
   260     {
   232         if("com.nokia.key.scancode".equals(key))
   261         if("com.nokia.key.scancode".equals(key))
   233         {
   262         {
   234             return String.valueOf(ESWTUIThreadRunner.getLastKeyScancode());
   263             return String.valueOf(ESWTUIThreadRunner.getLastKeyScancode());