com.jogamp.newt.impl.opengl.broadcom.egl
Class Window

java.lang.Object
  extended by com.jogamp.newt.Window
      extended by com.jogamp.newt.impl.opengl.broadcom.egl.Window
All Implemented Interfaces:
NativeWindow, SurfaceUpdatedListener

public class Window
extends Window


Field Summary
 
Fields inherited from class com.jogamp.newt.Window
caps, ClickTimeout, config, DEBUG_IMPLEMENTATION, DEBUG_KEY_EVENT, DEBUG_MOUSE_EVENT, DEBUG_WINDOW_EVENT, fullscreen, height, nfs_height, nfs_width, nfs_x, nfs_y, parentNativeWindow, parentWindowHandle, screen, title, undecorated, visible, width, windowHandle, windowLock, x, y
 
Fields inherited from interface javax.media.nativewindow.NativeWindow
LOCK_SUCCESS, LOCK_SURFACE_CHANGED, LOCK_SURFACE_NOT_READY, LOCK_SURFACE_UNLOCKED
 
Constructor Summary
Window()
           
 
Method Summary
protected  void closeNative()
           
protected  void createNativeImpl()
          Create native windowHandle, ie creates a new native invisible window.
protected static boolean initIDs()
           
protected  boolean setFullscreenImpl(boolean fullscreen, int x, int y, int w, int h)
           
protected  void setPositionImpl(int x, int y)
           
protected  void setSizeImpl(int width, int height)
           
protected  void setVisibleImpl(boolean visible)
           
 boolean surfaceSwap()
          Provide a mechanism to utilize custom (pre-) swap surface code.
 
Methods inherited from class com.jogamp.newt.Window
addChild, addKeyListener, addKeyListener, addMouseListener, addMouseListener, addPaintListener, addPaintListener, addSurfaceUpdatedListener, addSurfaceUpdatedListener, addWindowListener, addWindowListener, create, create, destroy, destroy, enqueueKeyEvent, enqueueMouseEvent, enqueueWindowEvent, getDisplayHandle, getGraphicsConfiguration, getHeight, getInnerWindow, getInsets, getKeyListener, getKeyListeners, getLockedStack, getMouseListener, getMouseListeners, getPaintListener, getParentNativeWindow, getRequestedCapabilities, getScreen, getScreenIndex, getSurfaceHandle, getSurfaceLockOwner, getSurfaceUpdatedListener, getSurfaceUpdatedListeners, getThreadName, getTitle, getWidth, getWindowHandle, getWindowListener, getWindowListeners, getWindowLock, getWrappedWindow, getX, getY, hasDeviceChanged, invalidate, invalidate, isDestroyed, isFullscreen, isNativeWindowValid, isSurfaceLocked, isUndecorated, isUndecorated, isVisible, lockSurface, removeAllSurfaceUpdatedListener, removeChild, removeKeyListener, removeMouseListener, removePaintListener, removeSurfaceUpdatedListener, removeWindowListener, reparentWindow, reparentWindowImpl, requestFocus, requestFocusImpl, runOnEDTIfAvail, sendEvent, sendKeyEvent, sendMouseEvent, sendPaintEvent, sendPaintEvent, sendWindowEvent, setFullscreen, setHandleDestroyNotify, setPosition, setSize, setTitle, setTitleImpl, setUndecorated, setVisible, shouldNotCallThis, surfaceUpdated, toHexString, toHexString, toString, unlockSurface, windowDestroyed, windowDestroyNotify, windowIsLocked, windowLock, windowUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Window

public Window()
Method Detail

createNativeImpl

protected void createNativeImpl()
Description copied from class: Window
Create native windowHandle, ie creates a new native invisible window.

Specified by:
createNativeImpl in class Window

closeNative

protected void closeNative()
Specified by:
closeNative in class Window

setVisibleImpl

protected void setVisibleImpl(boolean visible)
Specified by:
setVisibleImpl in class Window

setSizeImpl

protected void setSizeImpl(int width,
                           int height)
Specified by:
setSizeImpl in class Window

setPositionImpl

protected void setPositionImpl(int x,
                               int y)
Specified by:
setPositionImpl in class Window

setFullscreenImpl

protected boolean setFullscreenImpl(boolean fullscreen,
                                    int x,
                                    int y,
                                    int w,
                                    int h)
Specified by:
setFullscreenImpl in class Window

surfaceSwap

public boolean surfaceSwap()
Description copied from interface: NativeWindow
Provide a mechanism to utilize custom (pre-) swap surface code. This method is called before the render toolkit (e.g. JOGL) swaps the buffer/surface. The implementation may itself apply the swapping, in which case true shall be returned.

Specified by:
surfaceSwap in interface NativeWindow
Overrides:
surfaceSwap in class Window
Returns:
true if this method completed swapping the surface, otherwise false, in which case eg the GLDrawable implementation has to swap the code.

initIDs

protected static boolean initIDs()


Copyright 2010 JogAmp Community.