com.jogamp.nativewindow.impl.jawt.windows
Class WindowsJAWTWindow

java.lang.Object
  extended by com.jogamp.nativewindow.impl.jawt.JAWTWindow
      extended by com.jogamp.nativewindow.impl.jawt.windows.WindowsJAWTWindow
All Implemented Interfaces:
NativeWindow, SurfaceUpdatedListener

public class WindowsJAWTWindow
extends JAWTWindow


Field Summary
static boolean PROFILING
           
static int PROFILING_TICKS
           
protected  long windowHandle
           
 
Fields inherited from class com.jogamp.nativewindow.impl.jawt.JAWTWindow
bounds, component, config, DEBUG, drawable
 
Fields inherited from interface javax.media.nativewindow.NativeWindow
LOCK_SUCCESS, LOCK_SURFACE_CHANGED, LOCK_SURFACE_NOT_READY, LOCK_SURFACE_UNLOCKED
 
Constructor Summary
WindowsJAWTWindow(Object comp, AbstractGraphicsConfiguration config)
           
 
Method Summary
 long getWindowHandle()
          Returns the window handle for this NativeWindow.
protected  void initNative()
           
 void invalidate()
          render all native window information invalid, as if the native window was destroyed
protected  int lockSurfaceImpl()
           
protected  void unlockSurfaceImpl()
           
 
Methods inherited from class com.jogamp.nativewindow.impl.jawt.JAWTWindow
destroy, getBounds, getDisplayHandle, getGraphicsConfiguration, getHeight, getLockedStack, getScreenIndex, getSurfaceHandle, getWidth, getWrappedWindow, init, isSurfaceLocked, lockSurface, setSize, surfaceSwap, surfaceUpdated, toString, unlockSurface, updateBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROFILING

public static final boolean PROFILING
See Also:
Constant Field Values

PROFILING_TICKS

public static final int PROFILING_TICKS
See Also:
Constant Field Values

windowHandle

protected long windowHandle
Constructor Detail

WindowsJAWTWindow

public WindowsJAWTWindow(Object comp,
                         AbstractGraphicsConfiguration config)
Method Detail

initNative

protected void initNative()
                   throws NativeWindowException
Specified by:
initNative in class JAWTWindow
Throws:
NativeWindowException

invalidate

public void invalidate()
Description copied from interface: NativeWindow
render all native window information invalid, as if the native window was destroyed

Specified by:
invalidate in interface NativeWindow
Overrides:
invalidate in class JAWTWindow
See Also:
NativeWindow.destroy()

lockSurfaceImpl

protected int lockSurfaceImpl()
                       throws NativeWindowException
Specified by:
lockSurfaceImpl in class JAWTWindow
Throws:
NativeWindowException

unlockSurfaceImpl

protected void unlockSurfaceImpl()
                          throws NativeWindowException
Specified by:
unlockSurfaceImpl in class JAWTWindow
Throws:
NativeWindowException

getWindowHandle

public long getWindowHandle()
Description copied from interface: NativeWindow
Returns the window handle for this NativeWindow.

The window handle shall reflect the platform one for all window related operations, e.g. open, close, resize.

On X11 this returns an entity of type Window.
On Microsoft Windows this returns an entity of type HWND.

Specified by:
getWindowHandle in interface NativeWindow
Overrides:
getWindowHandle in class JAWTWindow


Copyright 2010 JogAmp Community.