org.xwt.plat
Class Win32.Win32Surface

java.lang.Object
  extended byorg.xwt.PixelBuffer
      extended byorg.xwt.Surface
          extended byorg.xwt.Surface.DoubleBufferedSurface
              extended byorg.xwt.plat.Win32.Win32Surface
Enclosing class:
Win32

public static class Win32.Win32Surface
extends Surface.DoubleBufferedSurface


Nested Class Summary
 
Nested classes inherited from class org.xwt.Surface
Surface.DoubleBufferedSurface, Surface.SimpleMessage
 
Field Summary
 int current_cursor
           
 int hdc
           
 int hwnd
           
 Semaphore hwndCreated
          used to block while waiting for the message pump thread to create a hwnd for us
 int previous_cursor
          used to restore the cursor immediately before ReleaseCapture()
 
Fields inherited from class org.xwt.Surface
allSurfaces, alt, button1, button2, button3, control, cursor, maximized, minimized, mousex, mousey, root, shift
 
Constructor Summary
Win32.Win32Surface(Box b, boolean framed)
           
 
Method Summary
 void _dispose()
           
 void _setMaximized(boolean m)
           
 void _setMinimized(boolean m)
           
 void _setSize(int w, int h)
           
 void blit(PixelBuffer s, int sx, int sy, int dx, int dy, int dx2, int dy2)
          copies a region from the doublebuffer to this surface
 void finalize()
           
 void natInit(boolean framed)
           
 void postCursorChange()
           
 void setIcon(Picture p)
           
 void setInvisible(boolean i)
           
 void setLocation()
           
 void setTitleBarText(java.lang.String s)
           
 void syncCursor()
           
 void toBack()
           
 void toFront()
           
 int WndProc(int hwnd, int imsg, int wparam, int lparam)
          nothing more than a method version of WndProc, so we can access instance members/methods
 
Methods inherited from class org.xwt.Surface.DoubleBufferedSurface
Dirty, drawPicture, drawPictureAlphaOnly, fillTrapezoid, render_, render
 
Methods inherited from class org.xwt.Surface
Click, Close, dirty, dispose, DoubleClick, Focused, getHeight, getWidth, KeyPressed, KeyReleased, Maximized, Minimized, Move, PosChange, Press, Refresh, Release, setLimits, setMaximized, setMinimized, setSize, SizeChange
 
Methods inherited from class org.xwt.PixelBuffer
drawLine
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hwndCreated

public Semaphore hwndCreated
used to block while waiting for the message pump thread to create a hwnd for us


hwnd

public int hwnd

hdc

public int hdc

current_cursor

public int current_cursor

previous_cursor

public int previous_cursor
used to restore the cursor immediately before ReleaseCapture()

Constructor Detail

Win32.Win32Surface

public Win32.Win32Surface(Box b,
                          boolean framed)
Method Detail

WndProc

public int WndProc(int hwnd,
                   int imsg,
                   int wparam,
                   int lparam)
nothing more than a method version of WndProc, so we can access instance members/methods


natInit

public void natInit(boolean framed)

syncCursor

public void syncCursor()
Specified by:
syncCursor in class Surface

finalize

public void finalize()

postCursorChange

public void postCursorChange()

toBack

public void toBack()
Specified by:
toBack in class Surface

toFront

public void toFront()
Specified by:
toFront in class Surface

_setMinimized

public void _setMinimized(boolean m)
Specified by:
_setMinimized in class Surface

setInvisible

public void setInvisible(boolean i)
Specified by:
setInvisible in class Surface

_setMaximized

public void _setMaximized(boolean m)
Specified by:
_setMaximized in class Surface

_setSize

public void _setSize(int w,
                     int h)
Specified by:
_setSize in class Surface

setLocation

public void setLocation()
Specified by:
setLocation in class Surface

setTitleBarText

public void setTitleBarText(java.lang.String s)
Specified by:
setTitleBarText in class Surface

setIcon

public void setIcon(Picture p)
Specified by:
setIcon in class Surface

_dispose

public void _dispose()
Specified by:
_dispose in class Surface

blit

public void blit(PixelBuffer s,
                 int sx,
                 int sy,
                 int dx,
                 int dy,
                 int dx2,
                 int dy2)
Description copied from class: Surface.DoubleBufferedSurface
copies a region from the doublebuffer to this surface

Specified by:
blit in class Surface.DoubleBufferedSurface