com.jogamp.newt.impl.opengl.broadcom.egl
Class Window
java.lang.Object
com.jogamp.newt.impl.WindowImpl
com.jogamp.newt.impl.opengl.broadcom.egl.Window
- All Implemented Interfaces:
- NEWTEventConsumer, Window, NativeSurface, NativeWindow, SurfaceUpdatedListener, WindowClosingProtocol
public class Window
- extends WindowImpl
Fields inherited from class com.jogamp.newt.impl.WindowImpl |
capabilitiesChooser, capsRequested, config, DEBUG_TEST_REPARENT_INCOMPATIBLE, fullscreen, hasFocus, height, nfs_height, nfs_width, nfs_x, nfs_y, title, undecorated, visible, width, x, y |
Method Summary |
protected void |
closeNativeImpl()
|
protected void |
createNativeImpl()
The native implementation must set the native windowHandle.
The implementation should invoke the referenced java state callbacks
to notify this Java object of state changes. |
protected Point |
getLocationOnScreenImpl(int x,
int y)
Return screen coordinates of the given coordinates
or null, in which case a NativeWindow traversal shall being used
as demonstrated in WindowImpl.getLocationOnScreen(javax.media.nativewindow.util.Point) . |
protected static boolean |
initIDs()
|
protected boolean |
reconfigureWindowImpl(int x,
int y,
int width,
int height,
boolean parentChange,
int fullScreenChange,
int decorationChange)
The native implementation should invoke the referenced java state callbacks
to notify this Java object of state changes. |
protected void |
requestFocusImpl(boolean reparented)
The native implementation must invoke WindowImpl.focusChanged(boolean)
to change the focus state, if force == false . |
protected void |
setSizeImpl(int width,
int height)
|
protected void |
setVisibleImpl(boolean visible,
int x,
int y,
int width,
int height)
The native implementation must invoke WindowImpl.visibleChanged(boolean)
to change the visibility state. |
boolean |
surfaceSwap()
Provide a mechanism to utilize custom (pre-) swap surface
code. |
Methods inherited from class com.jogamp.newt.impl.WindowImpl |
addChild, addKeyListener, addKeyListener, addMouseListener, addMouseListener, addSurfaceUpdatedListener, addSurfaceUpdatedListener, addWindowListener, addWindowListener, consumeEvent, consumeKeyEvent, consumeMouseEvent, consumeWindowEvent, create, create, destroy, enqueueEvent, enqueueKeyEvent, enqueueMouseEvent, enqueueRequestFocus, enqueueWindowEvent, focusAction, focusChanged, getChosenCapabilities, getDefaultCloseOperation, getDisplayHandle, getGraphicsConfiguration, getHeight, getInsets, getKeyListener, getKeyListeners, getLifecycleHook, getLocationOnScreen, getMouseListener, getMouseListeners, getParent, getParentWindowHandle, getRequestedCapabilities, getScreen, getScreenIndex, getSurfaceHandle, getSurfaceLockOwner, getSurfaceUpdatedListener, getSurfaceUpdatedListeners, getThreadName, getTitle, getWidth, getWindowHandle, getWindowListener, getWindowListeners, getWindowLockRecursionCount, getWrappedWindow, getX, getY, hasDeviceChanged, hasFocus, init, invalidate, invalidate, isFullscreen, isNativeValid, isSurfaceLocked, isSurfaceLockedByOtherThread, isUndecorated, isValid, isVisible, lockSurface, lockSurfaceImpl, positionChanged, removeAllSurfaceUpdatedListener, removeChild, removeKeyListener, removeMouseListener, removeSurfaceUpdatedListener, removeWindowListener, reparentWindow, reparentWindow, requestFocus, runOnEDTIfAvail, sendKeyEvent, sendMouseEvent, sendWindowEvent, setCapabilitiesChooser, setDefaultCloseOperation, setFocusAction, setFullscreen, setHandleDestroyNotify, setLifecycleHook, setPosition, setSize, setTitle, setTitleImpl, setUndecorated, setVisible, setWindowHandle, shouldNotCallThis, sizeChanged, surfaceUpdated, toHexString, toHexString, toString, unlockSurface, unlockSurfaceImpl, visibleChanged, windowDestroyNotify, windowRepaint |
Window
public Window()
createNativeImpl
protected void createNativeImpl()
- Description copied from class:
WindowImpl
- The native implementation must set the native windowHandle.
The implementation should invoke the referenced java state callbacks
to notify this Java object of state changes.
- Specified by:
createNativeImpl
in class WindowImpl
- See Also:
WindowImpl.windowDestroyNotify()
,
WindowImpl.focusChanged(boolean)
,
WindowImpl.visibleChanged(boolean)
,
#sizeChanged(int,int)
,
WindowImpl.positionChanged(int,int)
,
WindowImpl.windowDestroyNotify()
closeNativeImpl
protected void closeNativeImpl()
- Specified by:
closeNativeImpl
in class WindowImpl
setVisibleImpl
protected void setVisibleImpl(boolean visible,
int x,
int y,
int width,
int height)
- Description copied from class:
WindowImpl
- The native implementation must invoke
WindowImpl.visibleChanged(boolean)
to change the visibility state. This may happen asynchronous within
Window.TIMEOUT_NATIVEWINDOW
.
- Specified by:
setVisibleImpl
in class WindowImpl
requestFocusImpl
protected void requestFocusImpl(boolean reparented)
- Description copied from class:
WindowImpl
- The native implementation must invoke
WindowImpl.focusChanged(boolean)
to change the focus state, if force == false
.
This may happen asynchronous within Window.TIMEOUT_NATIVEWINDOW
.
- Specified by:
requestFocusImpl
in class WindowImpl
- Parameters:
reparented
- if true, bypass WindowImpl.focusChanged(boolean)
and force focus request
setSizeImpl
protected void setSizeImpl(int width,
int height)
reconfigureWindowImpl
protected boolean reconfigureWindowImpl(int x,
int y,
int width,
int height,
boolean parentChange,
int fullScreenChange,
int decorationChange)
- Description copied from class:
WindowImpl
- The native implementation should invoke the referenced java state callbacks
to notify this Java object of state changes.
- Specified by:
reconfigureWindowImpl
in class WindowImpl
- Parameters:
x
- -1 if no position change requested, otherwise greater than zeroy
- -1 if no position change requested, otherwise greater than zerowidth
- -1 if no size change requested, otherwise greater than zeroheight
- -1 if no size change requested, otherwise greater than zeroparentChange
- true if reparenting requested, otherwise falsefullScreenChange
- 0 if unchanged, -1 fullscreen off, 1 fullscreen ondecorationChange
- 0 if unchanged, -1 undecorated, 1 decorated- See Also:
#sizeChanged(int,int)
,
WindowImpl.positionChanged(int,int)
getLocationOnScreenImpl
protected Point getLocationOnScreenImpl(int x,
int y)
- Description copied from class:
WindowImpl
- Return screen coordinates of the given coordinates
or null, in which case a NativeWindow traversal shall being used
as demonstrated in
WindowImpl.getLocationOnScreen(javax.media.nativewindow.util.Point)
.
- Specified by:
getLocationOnScreenImpl
in class WindowImpl
- Returns:
- if not null, the screen location of the given coordinates
surfaceSwap
public boolean surfaceSwap()
- Description copied from interface:
NativeSurface
- 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 NativeSurface
- Overrides:
surfaceSwap
in class WindowImpl
- 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.