| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private long | |
| private volatile long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private native void | |
| public final void | |
| private native void | |
| protected void | |
| private static native void | |
| protected boolean | |
| private native long | |
| protected void | createNativeImpl()
Implements abstract jogamp. |
| private native long | |
| private void | createWindow(final boolean offscreenInstance, final boolean recreate, final PointImmutable pS, final int width, final int height, final int flags)
|
| private native long | createWindow0(int x, int y, int w, int h, boolean fullscreen, int windowStyle, int backingStoreType, long view)
|
| protected final void | doMouseEvent(final boolean enqueue, final boolean
if true wait until wait, final short eventType, final int modifiers, final int x, final int y, final short button, final float[] rotationXYZ, final float rotationScale)consumed.Overrides jogamp. |
| public final void | enqueueKeyEvent(final boolean wait, final short eventType, final int modifiers, final short _keyCode, final short _keySym, final char keyChar)
Overrides jogamp. |
| protected final void | enqueueKeyEvent(final boolean wait, final short eventType, int modifiers, final short _keyCode, final char keyChar, final char keySymChar)
|
| protected int | |
| private native int | |
| private static native Object | |
| private Point | |
| protected Point | getLocationOnScreenImpl(final int x, final int y)
Implements abstract jogamp. |
| protected final int | getSupportedReconfigMaskImpl()
Implements abstract jogamp. |
| public final long | getSurfaceHandle()
Overrides jogamp. Implements com. |
| protected static native boolean | |
| private native void | initWindow0(long parentWindow, long window, int x, int y, int w, int h, float reqPixelScale, boolean opaque, boolean atop, boolean abottom, boolean visible, long view)
Must be called on Main-Thread |
| protected final void | |
| private native boolean | |
| protected int | |
| protected void | monitorModeChanged(final MonitorEvent me, final boolean success)
Overrides jogamp. |
| private native void | |
| private native void | |
| protected boolean | reconfigureWindowImpl(int
client-area position in window units, or <0 if unchanged _x, int client-area position in window units, or <0 if unchanged _y, int client-area size in window units, or <=0 if unchanged _width, int client-area size in window units, or <=0 if unchanged _height, final int bitfield of change and status flags flags)Implements abstract jogamp. |
| private native void | |
| protected void | requestFocusImpl(final boolean
if true, bypass force)focusChanged(boolean, boolean) and force focus requestImplements abstract jogamp. TIMEOUT_NATIVEWINDOW.
|
| private native void | |
| protected void | screenPositionChanged(final boolean defer, final int newX, final int newY)
Callback for native screen position change event of the client area. |
| public final void | sendKeyEvent(final short eventType, final int modifiers, final short keyCode, final short keySym, final char keyChar)
Overrides jogamp. |
| private native void | |
| private static native void | |
| protected void | |
| private static native void | |
| protected boolean | setPointerVisibleImpl(final boolean pointerVisible)
Overrides jogamp. |
| protected void | |
| public void | setSurfaceHandle(final long surfaceHandle)
Implements com. |
| public final boolean | setSurfaceScale(final float[]
requested surface pixel scale float[2] values for x- and y-direction. pixelScale)Overrides jogamp. Implements com. NativeSurface,
where size_in_pixel_units = pixel_scale * size_in_window_units.
|
| private native void | |
| protected void | |
| private native void | setWindowClientTopLeftPoint0(long window, int x, int y, boolean display)
Must be called on Main-Thread |
| private native void | setWindowClientTopLeftPointAndSize0(long window, int x, int y, int w, int h, boolean display)
Must be called on Main-Thread |
| protected void | sizeChanged(final boolean defer, final int newWidth, final int newHeight, final boolean force)
Overrides jogamp. |
| protected void | sizeScreenPosInsetsChanged(final boolean defer, final int newX, final int newY, final int newWidth, final int newHeight, final int left, final int right, final int top, final int bottom, final boolean force)
Triggered by implementation's WM events to update the client-area position, size and insets. |
| private void | superSizeChangedOffThread(final boolean defer, final int newWidth, final int newHeight, final boolean force)
|
| private native boolean | |
| protected void | |
| private boolean | updatePixelScale(final boolean sendEvent, final boolean defer, final boolean deferOffThread, final float newPixelScaleRaw, final float maxPixelScaleRaw)
|
| protected void | updatePixelScale(final boolean defer, final float newPixelScaleRaw, final float maxPixelScaleRaw)
Called from native code |
| private boolean | |
| private boolean | |
| public void | updatePosition(final int
x-component x, final int y-component y)Implements jogamp. |
| private native void | updateSizePosInsets0(long window, boolean defer)
Triggers |
| private boolean | |
| private static native void | |
| protected void |
| isOffscreenInstance | back to summary |
|---|---|
| private boolean isOffscreenInstance | |
| NSBackingStoreBuffered | back to summary |
|---|---|
| private static final int NSBackingStoreBuffered | |
| NSBackingStoreNonretained | back to summary |
|---|---|
| private static final int NSBackingStoreNonretained | |
| NSBackingStoreRetained | back to summary |
|---|---|
| private static final int NSBackingStoreRetained | |
| NSBorderlessWindowMask | back to summary |
|---|---|
| private static final int NSBorderlessWindowMask | |
| NSClosableWindowMask | back to summary |
|---|---|
| private static final int NSClosableWindowMask | |
| NSMiniaturizableWindowMask | back to summary |
|---|---|
| private static final int NSMiniaturizableWindowMask | |
| NSResizableWindowMask | back to summary |
|---|---|
| private static final int NSResizableWindowMask | |
| NSTitledWindowMask | back to summary |
|---|---|
| private static final int NSTitledWindowMask | |
| sscSurfaceHandle | back to summary |
|---|---|
| private long sscSurfaceHandle | |
| surfaceHandle | back to summary |
|---|---|
| private volatile long surfaceHandle | |
| WindowDriver | back to summary |
|---|---|
| public WindowDriver() | |
| changeContentView0 | back to summary |
|---|---|
| private native void changeContentView0(long parentWindowOrView, long window, long view) Must be called on Main-Thread | |
| clearFocus | back to summary |
|---|---|
| public final void clearFocus() Implements jogamp. Doc from jogamp. Programmatic clear the focus
| |
| close0 | back to summary |
|---|---|
| private native void close0(long window) Must be called on Main-Thread | |
| closeNativeImpl | back to summary |
|---|---|
| protected void closeNativeImpl() Implements abstract jogamp.
| |
| confinePointer0 | back to summary |
|---|---|
| private static native void confinePointer0(long windowHandle, boolean confine) | |
| confinePointerImpl | back to summary |
|---|---|
| protected boolean confinePointerImpl(final boolean confine) Overrides jogamp.
| |
| contentView0 | back to summary |
|---|---|
| private native long contentView0(long window) | |
| createNativeImpl | back to summary |
|---|---|
| protected void createNativeImpl() Implements abstract jogamp. Doc from jogamp. The native implementation must set the native windowHandle.
The implementation shall respect the states The implementation should invoke the referenced java state callbacks to notify this Java object of state changes.
| |
| createView0 | back to summary |
|---|---|
| private native long createView0(int x, int y, int w, int h) | |
| createWindow | back to summary |
|---|---|
| private void createWindow(final boolean offscreenInstance, final boolean recreate, final PointImmutable pS, final int width, final int height, final int flags) | |
| createWindow0 | back to summary |
|---|---|
| private native long createWindow0(int x, int y, int w, int h, boolean fullscreen, int windowStyle, int backingStoreType, long view) | |
| doMouseEvent | back to summary |
|---|---|
| protected final void doMouseEvent(final boolean enqueue, final boolean wait, final short eventType, final int modifiers, final int x, final int y, final short button, final float[] rotationXYZ, final float rotationScale) Overrides jogamp. Doc from jogamp. Send mouse event (one-pointer) either to be directly consumed or to be enqueued | |
| enqueueKeyEvent | back to summary |
|---|---|
| public final void enqueueKeyEvent(final boolean wait, final short eventType, final int modifiers, final short _keyCode, final short _keySym, final char keyChar) Overrides jogamp.
| |
| enqueueKeyEvent | back to summary |
|---|---|
| protected final void enqueueKeyEvent(final boolean wait, final short eventType, int modifiers, final short _keyCode, final char keyChar, final char keySymChar) | |
| getDisplayID | back to summary |
|---|---|
| protected int getDisplayID() | |
| getDisplayID0 | back to summary |
|---|---|
| private native int getDisplayID0(long window) | |
| getLocationOnScreen0 | back to summary |
|---|---|
| private static native Object getLocationOnScreen0(long windowHandle, int src_x, int src_y) | |
| getLocationOnScreenByParent | back to summary |
|---|---|
| private Point getLocationOnScreenByParent(final int x, final int y, final NativeWindow parent) | |
| getLocationOnScreenImpl | back to summary |
|---|---|
| protected Point getLocationOnScreenImpl(final int x, final int y) Implements abstract jogamp. Doc from jogamp. Translates the given window client-area coordinates with top-left origin to screen coordinates in window units. Since the position reflects the client area, it does not include the insets.
May return | |
| getSupportedReconfigMaskImpl | back to summary |
|---|---|
| protected final int getSupportedReconfigMaskImpl() Implements abstract jogamp. Doc from jogamp. Returns the reconfigure state-mask supported by the implementation.
Default value is
| |
| getSurfaceHandle | back to summary |
|---|---|
| public final long getSurfaceHandle() Overrides jogamp. Implements com. Doc from com. Returns the handle to the surface for this NativeSurface.
The surface handle should be set/update by
On X11 this returns an entity of type Window,
since there is no differentiation of surface and window there.
| |
| initIDs0 | back to summary |
|---|---|
| protected static native boolean initIDs0() | |
| initWindow0 | back to summary |
|---|---|
| private native void initWindow0(long parentWindow, long window, int x, int y, int w, int h, float reqPixelScale, boolean opaque, boolean atop, boolean abottom, boolean visible, long view) Must be called on Main-Thread | |
| instantiationFinishedImpl | back to summary |
|---|---|
| protected final void instantiationFinishedImpl() Overrides jogamp.
| |
| lockSurface0 | back to summary |
|---|---|
| private native boolean lockSurface0(long window, long view) | |
| lockSurfaceImpl | back to summary |
|---|---|
| protected int lockSurfaceImpl() Overrides jogamp.
| |
| monitorModeChanged | back to summary |
|---|---|
| protected void monitorModeChanged(final MonitorEvent me, final boolean success) Overrides jogamp. Doc from jogamp. Notify WindowDriver about the finished monitor mode change.
| |
| orderFront0 | back to summary |
|---|---|
| private native void orderFront0(long window) Must be called on Main-Thread | |
| orderOut0 | back to summary |
|---|---|
| private native void orderOut0(long window) Must be called on Main-Thread. In case this is a child window and parent is still visible, orderBack(..) is issued instead of orderOut(). | |
| reconfigureWindowImpl | back to summary |
|---|---|
| protected boolean reconfigureWindowImpl(int _x, int _y, int _width, int _height, final int flags) Implements abstract jogamp. Doc from jogamp. The native implementation should invoke the referenced java state callbacks to notify this Java object of state changes. Implementations shall set x/y to 0, in case it's negative. This could happen due to insets and positioning a decorated window to 0/0, which would place the frame outside of the screen.
| |
| requestFocus0 | back to summary |
|---|---|
| private native void requestFocus0(long window, boolean force) Must be called on Main-Thread | |
| requestFocusImpl | back to summary |
|---|---|
| protected void requestFocusImpl(final boolean force) Implements abstract jogamp. Doc from jogamp. Async request which shall be performed within
If if
| |
| resignFocus0 | back to summary |
|---|---|
| private native void resignFocus0(long window) Must be called on Main-Thread | |
| screenPositionChanged | back to summary |
|---|---|
| protected void screenPositionChanged(final boolean defer, final int newX, final int newY) Callback for native screen position change event of the client area. | |
| sendKeyEvent | back to summary |
|---|---|
| public final void sendKeyEvent(final short eventType, final int modifiers, final short keyCode, final short keySym, final char keyChar) Overrides jogamp.
| |
| setPixelScale0 | back to summary |
|---|---|
| private native void setPixelScale0(long window, long view, float reqPixelScale) | |
| setPointerIcon0 | back to summary |
|---|---|
| private static native void setPointerIcon0(long windowHandle, long handle) | |
| setPointerIconImpl | back to summary |
|---|---|
| protected void setPointerIconImpl(final PointerIconImpl pi) Overrides jogamp.
| |
| setPointerVisible0 | back to summary |
|---|---|
| private static native void setPointerVisible0(long windowHandle, boolean hasFocus, boolean visible) | |
| setPointerVisibleImpl | back to summary |
|---|---|
| protected boolean setPointerVisibleImpl(final boolean pointerVisible) Overrides jogamp.
| |
| setScreen | back to summary |
|---|---|
| protected void setScreen(final ScreenImpl newScreen) Overrides jogamp.
| |
| setSurfaceHandle | back to summary |
|---|---|
| public void setSurfaceHandle(final long surfaceHandle) Implements com. Doc from com. Sets the surface handle which is created outside of this implementation.
| |
| setSurfaceScale | back to summary |
|---|---|
| public final boolean setSurfaceScale(final float[] pixelScale) Overrides jogamp. Implements com. Doc from com. Request a pixel scale in x- and y-direction for the associated
Default pixel scale request for both directions is
In case platform only supports uniform pixel scale, i.e. one scale for both directions,
either
The requested pixel scale will be validated against platform limits before native scale-setup,
i.e. clipped to
The actual realized pixel scale values of the
| |
| setTitle0 | back to summary |
|---|---|
| private native void setTitle0(long window, String title) Must be called on Main-Thread | |
| setTitleImpl | back to summary |
|---|---|
| protected void setTitleImpl(final String title) Overrides jogamp.
| |
| setWindowClientTopLeftPoint0 | back to summary |
|---|---|
| private native void setWindowClientTopLeftPoint0(long window, int x, int y, boolean display) Must be called on Main-Thread | |
| setWindowClientTopLeftPointAndSize0 | back to summary |
|---|---|
| private native void setWindowClientTopLeftPointAndSize0(long window, int x, int y, int w, int h, boolean display) Must be called on Main-Thread | |
| sizeChanged | back to summary |
|---|---|
| protected void sizeChanged(final boolean defer, final int newWidth, final int newHeight, final boolean force) Overrides jogamp. Doc from jogamp. Triggered by implementation's WM events to update the client-area size in window units w/o insets/decorations.
| |
| sizeScreenPosInsetsChanged | back to summary |
|---|---|
| protected void sizeScreenPosInsetsChanged(final boolean defer, final int newX, final int newY, final int newWidth, final int newHeight, final int left, final int right, final int top, final int bottom, final boolean force) Triggered by implementation's WM events to update the client-area position, size and insets. | |
| superSizeChangedOffThread | back to summary |
|---|---|
| private void superSizeChangedOffThread(final boolean defer, final int newWidth, final int newHeight, final boolean force) | |
| unlockSurface0 | back to summary |
|---|---|
| private native boolean unlockSurface0(long window, long view) | |
| unlockSurfaceImpl | back to summary |
|---|---|
| protected void unlockSurfaceImpl() Overrides jogamp.
| |
| updatePixelScale | back to summary |
|---|---|
| private boolean updatePixelScale(final boolean sendEvent, final boolean defer, final boolean deferOffThread, final float newPixelScaleRaw, final float maxPixelScaleRaw) | |
| updatePixelScale | back to summary |
|---|---|
| protected void updatePixelScale(final boolean defer, final float newPixelScaleRaw, final float maxPixelScaleRaw) Called from native code | |
| updatePixelScaleByDisplayID | back to summary |
|---|---|
| private boolean updatePixelScaleByDisplayID(final boolean sendEvent) | |
| updatePixelScaleByWindowHandle | back to summary |
|---|---|
| private boolean updatePixelScaleByWindowHandle(final boolean sendEvent) | |
| updatePosition | back to summary |
|---|---|
| public void updatePosition(final int x, final int y) Implements jogamp. Doc from jogamp. Programmatic update the top-left corner of the client area relative to it's parent.
| |
| updateSizePosInsets0 | back to summary |
|---|---|
| private native void updateSizePosInsets0(long window, boolean defer) Triggers | |
| useParent | back to summary |
|---|---|
| private boolean useParent(final NativeWindow parent) | |
| warpPointer0 | back to summary |
|---|---|
| private static native void warpPointer0(long windowHandle, int x, int y) | |
| warpPointerImpl | back to summary |
|---|---|
| protected void warpPointerImpl(final int x, final int y) Overrides jogamp.
| |