javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/org/eclipse/swt/internal/qt/graphics/WindowSurface.java
changeset 78 71ad690e91f5
parent 21 2a9601315dfc
equal deleted inserted replaced
72:1f0034e370aa 78:71ad690e91f5
   158     {
   158     {
   159     	checkState();
   159     	checkState();
   160     	OS.windowsurface_refresh(handle);
   160     	OS.windowsurface_refresh(handle);
   161     }
   161     }
   162     
   162     
       
   163     /**
       
   164      * Switch to software rendering when the window is going invisible 
       
   165      * and back to hardware accelerated rendering when going visible.
       
   166      * @param goingVisible True if the window is about to become visible (partially or fully).
       
   167      *                     False if the window is about to become invisible (fully).
       
   168      */
       
   169     public void handleSymbianWindowVisibilityChange(boolean goingVisible)
       
   170     {
       
   171         OS.windowsurface_handleSymbianWindowVisibilityChange(handle, goingVisible);
       
   172     }
       
   173     
   163     private void checkState() {
   174     private void checkState() {
   164     	Utils.validateUiThread();
   175     	Utils.validateUiThread();
   165     	if (disposed) {
   176     	if (disposed) {
   166             throw new IllegalStateException("WindowSurface already disposed");
   177             throw new IllegalStateException("WindowSurface already disposed");
   167         }
   178         }