Top Fields Constructors Methods
jogamp.newt.driver.macosx

public Class WindowDriver

extends WindowImpl
implements MutableSurface, DriverClearFocus, DriverUpdatePosition
Class Inheritance
All Implemented Interfaces
jogamp.newt.driver.DriverUpdatePosition, jogamp.newt.driver.DriverClearFocus, com.jogamp.nativewindow.MutableSurface, com.jogamp.nativewindow.NativeSurface, com.jogamp.nativewindow.SurfaceUpdatedListener
Imports
com.jogamp.common.util.InterruptSource, com.jogamp.nativewindow.AbstractGraphicsConfiguration, .GraphicsConfigurationFactory, .NativeWindow, .NativeWindowException, .MutableSurface, .ScalableSurface, .VisualIDHolder, com.jogamp.nativewindow.util.Point, .PointImmutable, jogamp.nativewindow.SurfaceScaleUtils, jogamp.nativewindow.macosx.OSXUtil, jogamp.newt.PointerIconImpl, .ScreenImpl, .WindowImpl, jogamp.newt.driver.DriverClearFocus, .DriverUpdatePosition, com.jogamp.newt.event.InputEvent, .KeyEvent, .MonitorEvent, com.jogamp.opengl.math.FloatUtil

Field Summary

Modifier and TypeField 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
Inherited from jogamp.newt.WindowImpl:
capabilitiesChoosercapsRequestedCHANGE_MASK_ALWAYSONBOTTOMCHANGE_MASK_ALWAYSONTOPCHANGE_MASK_DECORATIONCHANGE_MASK_FULLSCREENCHANGE_MASK_MAXIMIZED_HORZCHANGE_MASK_MAXIMIZED_VERTCHANGE_MASK_PARENTINGCHANGE_MASK_RESIZABLECHANGE_MASK_STICKYCHANGE_MASK_VISIBILITYCHANGE_MASK_VISIBILITY_FASTDEBUG_TEST_REPARENT_INCOMPATIBLEhasPixelScalekeyboardVisiblemaxPixelScaleminimumReconfigStateMaskminPixelScaleQUIRK_BIT_VISIBILITYquirksreqPixelScaleSTATE_BIT_COUNT_ALL_PUBLICSTATE_BIT_COUNT_ALL_RECONFIGSTATE_BIT_FULLSCREEN_SPANSTATE_MASK_ALL_PUBLICSTATE_MASK_ALL_PUBLIC_SUPPORTEDSTATE_MASK_ALL_RECONFIGSTATE_MASK_CREATENATIVEsupportedReconfigStateMaskwindowList

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private native void
changeContentView0(long parentWindowOrView, long window, long view)

Must be called on Main-Thread

public final void
clearFocus()

Implements jogamp.newt.driver.DriverClearFocus.clearFocus.

Programmatic clear the focus
private native void
close0(long window)

Must be called on Main-Thread

protected void
private static native void
confinePointer0(long windowHandle, boolean confine)

protected boolean
private native long
contentView0(long window)

protected void
createNativeImpl()

Implements abstract jogamp.newt.WindowImpl.createNativeImpl.

The native implementation must set the native windowHandle.
private native long
createView0(int x, int y, int w, int h)

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
if true, event will be enqueued, otherwise consumed directly.
enqueue
,
final boolean
if true wait until consumed.
wait
,
final short eventType, final int modifiers, final int x, final int y, final short button, final float[] rotationXYZ, final float rotationScale)

Overrides jogamp.newt.WindowImpl.doMouseEvent.

Send mouse event (one-pointer) either to be directly consumed or to be enqueued
public final void
enqueueKeyEvent(final boolean wait, final short eventType, final int modifiers, final short _keyCode, final short _keySym, final char keyChar)

Overrides jogamp.newt.WindowImpl.enqueueKeyEvent.

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
getDisplayID0(long window)

private static native Object
getLocationOnScreen0(long windowHandle, int src_x, int src_y)

private Point
getLocationOnScreenByParent(final int x, final int y, final NativeWindow parent)

protected Point
getLocationOnScreenImpl(final int x, final int y)

Implements abstract jogamp.newt.WindowImpl.getLocationOnScreenImpl.

Translates the given window client-area coordinates with top-left origin to screen coordinates in window units.
protected final int
getSupportedReconfigMaskImpl()

Implements abstract jogamp.newt.WindowImpl.getSupportedReconfigMaskImpl.

Returns the reconfigure state-mask supported by the implementation.
public final long
getSurfaceHandle()

Overrides jogamp.newt.WindowImpl.getSurfaceHandle.

Implements com.jogamp.nativewindow.NativeSurface.getSurfaceHandle.

Returns the handle to the surface for this NativeSurface.
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
lockSurface0(long window, long view)

protected int
protected void
monitorModeChanged(final MonitorEvent me, final boolean success)

Overrides jogamp.newt.WindowImpl.monitorModeChanged.

Notify WindowDriver about the finished monitor mode change.
private native void
orderFront0(long window)

Must be called on Main-Thread

private native void
orderOut0(long window)

Must be called on Main-Thread.

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.newt.WindowImpl.reconfigureWindowImpl.

The native implementation should invoke the referenced java state callbacks to notify this Java object of state changes.
private native void
requestFocus0(long window, boolean force)

Must be called on Main-Thread

protected void
requestFocusImpl(final boolean
if true, bypass focusChanged(boolean, boolean) and force focus request
force
)

Implements abstract jogamp.newt.WindowImpl.requestFocusImpl.

Async request which shall be performed within TIMEOUT_NATIVEWINDOW.
private native void
resignFocus0(long window)

Must be called on Main-Thread

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.newt.WindowImpl.sendKeyEvent.

private native void
setPixelScale0(long window, long view, float reqPixelScale)

private static native void
setPointerIcon0(long windowHandle, long handle)

protected void
private static native void
setPointerVisible0(long windowHandle, boolean hasFocus, boolean visible)

protected boolean
protected void
public void
setSurfaceHandle(final long surfaceHandle)

Implements com.jogamp.nativewindow.MutableSurface.setSurfaceHandle.

Sets the surface handle which is created outside of this implementation.
public final boolean
setSurfaceScale(final float[]
requested surface pixel scale float[2] values for x- and y-direction.
pixelScale
)

Overrides jogamp.newt.WindowImpl.setSurfaceScale.

Implements com.jogamp.nativewindow.ScalableSurface.setSurfaceScale.

Request a pixel scale in x- and y-direction for the associated NativeSurface, where size_in_pixel_units = pixel_scale * size_in_window_units.
private native void
setTitle0(long window, String title)

Must be called on Main-Thread

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.newt.WindowImpl.sizeChanged.

Triggered by implementation's WM events to update the client-area size in window units w/o insets/decorations.
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
unlockSurface0(long window, long view)

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
updatePixelScaleByDisplayID(final boolean sendEvent)

private boolean
updatePixelScaleByWindowHandle(final boolean sendEvent)

public void
updatePosition(final int
x-component
x
,
final int
y-component
y
)

Implements jogamp.newt.driver.DriverUpdatePosition.updatePosition.

Programmatic update the top-left corner of the client area relative to it's parent.
private native void
private boolean
useParent(final NativeWindow parent)

private static native void
warpPointer0(long windowHandle, int x, int y)

protected void
warpPointerImpl(final int x, final int y)

Overrides jogamp.newt.WindowImpl.warpPointerImpl.

Inherited from jogamp.newt.WindowImpl:
addChildaddGestureHandleraddGestureHandleraddGestureListeneraddGestureListeneraddKeyListeneraddKeyListeneraddMouseListeneraddMouseListeneraddSurfaceUpdatedListeneraddSurfaceUpdatedListeneraddWindowListeneraddWindowListenerappendStateBitsareDefaultGesturesEnabledautoPositioncanCreateNativeImplconfinePointerconsumeEventconsumeKeyEventconsumePointerEventconsumeWindowEventconvertToPixelUnitsconvertToPixelUnitsconvertToWindowUnitsconvertToWindowUnitscreatecreatedefinePositiondefineSizedestroydestroydoMouseEventdoPointerEventdoPointerEventenqueueEventenqueueMouseEventenqueueWindowEventfocusChangedfocusVisibleChangedgetBoundsgetChosenCapabilitiesgetCurrentSurfaceScalegetDefaultCloseOperationgetDelegatedWindowgetDisplayHandlegetGraphicsConfigurationgetHeightgetInsetsgetKeyListenergetKeyListenersgetLifecycleHookgetLocationOnScreengetLockgetMainMonitorgetMaximumSurfaceScalegetMinimumSurfaceScalegetMouseListenergetMouseListenersgetNativeSurfacegetParentgetParentWindowHandlegetPixelScaleXgetPixelScaleYgetPixelsPerMMgetPointerIcongetReconfigStateMaskStringgetReconfigureMaskgetRequestedCapabilitiesgetRequestedSurfaceScalegetScreengetScreenIndexgetStateMaskgetStateMaskStringgetStatePublicBitCountgetStatePublicBitmaskgetSupportedStateMaskgetSupportedStateMaskStringgetSurfaceHeightgetSurfaceLockOwnergetSurfaceWidthgetThreadNamegetTitlegetWidthgetWindowHandlegetWindowListenergetWindowListenersgetWrappedSurfacegetXgetYhasDeviceChangedhasFocusinsetsChangedinsetsVisibleChangedisAlwaysOnBottomisAlwaysOnTopisChildWindowisFullscreenisKeyboardVisibleisKeyCodeTrackedisKeyPressedisMaximizedHorzisMaximizedVertisNativeValidisOffscreenInstanceisPointerConfinedisPointerVisibleisReconfigureMaskSupportedisResizableisStickyisSurfaceLockedByOtherThreadisUndecoratedisVisiblekeyboardVisibilityChangedlockSurfacemaximizedChangedpixelScaleChangeNotifypositionChangedreconfigMaximizedManualremoveChildremoveGestureHandlerremoveGestureListenerremoveKeyListenerremoveMouseListenerremoveSurfaceUpdatedListenerremoveWindowListenerreparentWindowrequestFocusrequestFocusresetMaximizedManualrunOnEDTIfAvailsendMouseEventsendMouseEventRequestFocussendWindowEventsetAlwaysOnBottomsetAlwaysOnTopsetBrokenFocusChangesetCapabilitiesChoosersetDefaultCloseOperationsetDefaultGesturesEnabledsetFocusActionsetFullscreensetFullscreensetGraphicsConfigurationsetKeyboardFocusHandlersetKeyboardVisiblesetKeyboardVisibleImplsetKeyPressedsetLifecycleHooksetMaximizedsetPointerIconsetPointerVisiblesetPositionsetResizablesetSizesetStickysetSurfaceSizesetTitlesetTopLevelPositionsetTopLevelSizesetUndecoratedsetVisiblesetVisiblesetVisibleImplsetWindowDestroyNotifyActionsetWindowHandleshutdownAllsizePosInsetsFocusVisibleChangedsizePosMaxInsetsVisibleChangedsurfaceSwapsurfaceUpdatedtoHexStringtoHexStringtoStringunlockSurfacevisibleChangedvisibleChangedSendMouseEventvisibleChangedWindowRepaintwarpPointerwindowDestroyNotifywindowRepaintwindowRepaint

Field Detail

isOffscreenInstanceback to summary
private boolean isOffscreenInstance
NSBackingStoreBufferedback to summary
private static final int NSBackingStoreBuffered
NSBackingStoreNonretainedback to summary
private static final int NSBackingStoreNonretained
NSBackingStoreRetainedback to summary
private static final int NSBackingStoreRetained
NSBorderlessWindowMaskback to summary
private static final int NSBorderlessWindowMask
NSClosableWindowMaskback to summary
private static final int NSClosableWindowMask
NSMiniaturizableWindowMaskback to summary
private static final int NSMiniaturizableWindowMask
NSResizableWindowMaskback to summary
private static final int NSResizableWindowMask
NSTitledWindowMaskback to summary
private static final int NSTitledWindowMask
sscSurfaceHandleback to summary
private long sscSurfaceHandle
surfaceHandleback to summary
private volatile long surfaceHandle

Constructor Detail

WindowDriverback to summary
public WindowDriver()

Method Detail

changeContentView0back to summary
private native void changeContentView0(long parentWindowOrView, long window, long view)

Must be called on Main-Thread

clearFocusback to summary
public final void clearFocus()

Implements jogamp.newt.driver.DriverClearFocus.clearFocus.

Doc from jogamp.newt.driver.DriverClearFocus.clearFocus.

Programmatic clear the focus

Annotations
@Override
close0back to summary
private native void close0(long window)

Must be called on Main-Thread

closeNativeImplback to summary
protected void closeNativeImpl()

Implements abstract jogamp.newt.WindowImpl.closeNativeImpl.

Annotations
@Override
confinePointer0back to summary
private static native void confinePointer0(long windowHandle, boolean confine)
confinePointerImplback to summary
protected boolean confinePointerImpl(final boolean confine)

Overrides jogamp.newt.WindowImpl.confinePointerImpl.

Annotations
@Override
contentView0back to summary
private native long contentView0(long window)
createNativeImplback to summary
protected void createNativeImpl()

Implements abstract jogamp.newt.WindowImpl.createNativeImpl.

Doc from jogamp.newt.WindowImpl.createNativeImpl.

The native implementation must set the native windowHandle.

The implementation shall respect the states isAlwaysOnTop()/FLAG_IS_ALWAYSONTOP and isUndecorated()/FLAG_IS_UNDECORATED, ie. the created window shall reflect those settings.

The implementation should invoke the referenced java state callbacks to notify this Java object of state changes.

Annotations
@Override
createView0back to summary
private native long createView0(int x, int y, int w, int h)
createWindowback to summary
private void createWindow(final boolean offscreenInstance, final boolean recreate, final PointImmutable pS, final int width, final int height, final int flags)
createWindow0back to summary
private native long createWindow0(int x, int y, int w, int h, boolean fullscreen, int windowStyle, int backingStoreType, long view)
doMouseEventback 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.newt.WindowImpl.doMouseEvent.

Doc from jogamp.newt.WindowImpl.doMouseEvent.

Send mouse event (one-pointer) either to be directly consumed or to be enqueued

Parameters
enqueue:boolean

if true, event will be enqueued, otherwise consumed directly.

wait:boolean

if true wait until consumed.

Annotations
@Override
enqueueKeyEventback 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.newt.WindowImpl.enqueueKeyEvent.

Annotations
@Override
enqueueKeyEventback to summary
protected final void enqueueKeyEvent(final boolean wait, final short eventType, int modifiers, final short _keyCode, final char keyChar, final char keySymChar)
getDisplayIDback to summary
protected int getDisplayID()
getDisplayID0back to summary
private native int getDisplayID0(long window)
getLocationOnScreen0back to summary
private static native Object getLocationOnScreen0(long windowHandle, int src_x, int src_y)
getLocationOnScreenByParentback to summary
private Point getLocationOnScreenByParent(final int x, final int y, final NativeWindow parent)
getLocationOnScreenImplback to summary
protected Point getLocationOnScreenImpl(final int x, final int y)

Implements abstract jogamp.newt.WindowImpl.getLocationOnScreenImpl.

Doc from jogamp.newt.WindowImpl.getLocationOnScreenImpl.

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 null, in which case the caller shall traverse through the NativeWindow tree as demonstrated in getLocationOnScreen(com.jogamp.nativewindow.util.Point).

Returns:Point

if not null, the screen location of the given coordinates

Annotations
@Override
getSupportedReconfigMaskImplback to summary
protected final int getSupportedReconfigMaskImpl()

Implements abstract jogamp.newt.WindowImpl.getSupportedReconfigMaskImpl.

Doc from jogamp.newt.WindowImpl.getSupportedReconfigMaskImpl.

Returns the reconfigure state-mask supported by the implementation.

Default value is STATE_MASK_VISIBLE | STATE_MASK_FOCUSED, i.e. the minimum requirement for all implementations.

Annotations
@Override
getSurfaceHandleback to summary
public final long getSurfaceHandle()

Overrides jogamp.newt.WindowImpl.getSurfaceHandle.

Implements com.jogamp.nativewindow.NativeSurface.getSurfaceHandle.

Doc from com.jogamp.nativewindow.NativeSurface.getSurfaceHandle.

Returns the handle to the surface for this NativeSurface.

The surface handle should be set/update by lockSurface(), where unlockSurface() is not allowed to modify it. After unlockSurface() it is no more guaranteed that the surface handle is still valid. The surface handle shall reflect the platform one for all drawable surface operations, e.g. opengl, swap-buffer.

On X11 this returns an entity of type Window, since there is no differentiation of surface and window there.
On Microsoft Windows this returns an entity of type HDC.

Annotations
@Override
initIDs0back to summary
protected static native boolean initIDs0()
initWindow0back 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

instantiationFinishedImplback to summary
protected final void instantiationFinishedImpl()

Overrides jogamp.newt.WindowImpl.instantiationFinishedImpl.

Annotations
@Override
lockSurface0back to summary
private native boolean lockSurface0(long window, long view)
lockSurfaceImplback to summary
protected int lockSurfaceImpl()

Overrides jogamp.newt.WindowImpl.lockSurfaceImpl.

Annotations
@Override
monitorModeChangedback to summary
protected void monitorModeChanged(final MonitorEvent me, final boolean success)

Overrides jogamp.newt.WindowImpl.monitorModeChanged.

Doc from jogamp.newt.WindowImpl.monitorModeChanged.

Notify WindowDriver about the finished monitor mode change.

Annotations
@Override
orderFront0back to summary
private native void orderFront0(long window)

Must be called on Main-Thread

orderOut0back 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().

reconfigureWindowImplback to summary
protected boolean reconfigureWindowImpl(int _x, int _y, int _width, int _height, final int flags)

Implements abstract jogamp.newt.WindowImpl.reconfigureWindowImpl.

Doc from jogamp.newt.WindowImpl.reconfigureWindowImpl.

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.

Parameters
_x:int

client-area position in window units, or <0 if unchanged

_y:int

client-area position in window units, or <0 if unchanged

_width:int

client-area size in window units, or <=0 if unchanged

_height:int

client-area size in window units, or <=0 if unchanged

flags:int

bitfield of change and status flags

Annotations
@Override
requestFocus0back to summary
private native void requestFocus0(long window, boolean force)

Must be called on Main-Thread

requestFocusImplback to summary
protected void requestFocusImpl(final boolean force)

Implements abstract jogamp.newt.WindowImpl.requestFocusImpl.

Doc from jogamp.newt.WindowImpl.requestFocusImpl.

Async request which shall be performed within TIMEOUT_NATIVEWINDOW.

If if force == false the native implementation may only request focus if not yet owner.

focusChanged(boolean, boolean) should be called to notify about the focus traversal.

Parameters
force:boolean

if true, bypass focusChanged(boolean, boolean) and force focus request

Annotations
@Override
resignFocus0back to summary
private native void resignFocus0(long window)

Must be called on Main-Thread

screenPositionChangedback 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.

sendKeyEventback to summary
public final void sendKeyEvent(final short eventType, final int modifiers, final short keyCode, final short keySym, final char keyChar)

Overrides jogamp.newt.WindowImpl.sendKeyEvent.

Annotations
@Override
setPixelScale0back to summary
private native void setPixelScale0(long window, long view, float reqPixelScale)
setPointerIcon0back to summary
private static native void setPointerIcon0(long windowHandle, long handle)
setPointerIconImplback to summary
protected void setPointerIconImpl(final PointerIconImpl pi)

Overrides jogamp.newt.WindowImpl.setPointerIconImpl.

Annotations
@Override
setPointerVisible0back to summary
private static native void setPointerVisible0(long windowHandle, boolean hasFocus, boolean visible)
setPointerVisibleImplback to summary
protected boolean setPointerVisibleImpl(final boolean pointerVisible)

Overrides jogamp.newt.WindowImpl.setPointerVisibleImpl.

Annotations
@Override
setScreenback to summary
protected void setScreen(final ScreenImpl newScreen)

Overrides jogamp.newt.WindowImpl.setScreen.

Annotations
@Override
setSurfaceHandleback to summary
public void setSurfaceHandle(final long surfaceHandle)

Implements com.jogamp.nativewindow.MutableSurface.setSurfaceHandle.

Doc from com.jogamp.nativewindow.MutableSurface.setSurfaceHandle.

Sets the surface handle which is created outside of this implementation.

Annotations
@Override
setSurfaceScaleback to summary
public final boolean setSurfaceScale(final float[] pixelScale)

Overrides jogamp.newt.WindowImpl.setSurfaceScale.

Implements com.jogamp.nativewindow.ScalableSurface.setSurfaceScale.

Doc from com.jogamp.nativewindow.ScalableSurface.setSurfaceScale.

Request a pixel scale in x- and y-direction for the associated NativeSurface, where size_in_pixel_units = pixel_scale * size_in_window_units.

Default pixel scale request for both directions is AUTOMAX_PIXELSCALE.

In case platform only supports uniform pixel scale, i.e. one scale for both directions, either AUTOMAX_PIXELSCALE or the maximum requested pixel scale component is used.

The requested pixel scale will be validated against platform limits before native scale-setup, i.e. clipped to IDENTITY_PIXELSCALE if not supported or clipped to the platform maximum. It can be queried via getRequestedSurfaceScale(float[]).

The actual realized pixel scale values of the NativeSurface can be queried via getCurrentSurfaceScale(float[]) or computed via surface.convertToPixelUnits(new int[] { 1, 1 })

Parameters
pixelScale:float[]

requested surface pixel scale float[2] values for x- and y-direction.

Returns:boolean

true if the current pixel scale has changed, otherwise false.

Annotations
@Override
setTitle0back to summary
private native void setTitle0(long window, String title)

Must be called on Main-Thread

setTitleImplback to summary
protected void setTitleImpl(final String title)

Overrides jogamp.newt.WindowImpl.setTitleImpl.

Annotations
@Override
setWindowClientTopLeftPoint0back to summary
private native void setWindowClientTopLeftPoint0(long window, int x, int y, boolean display)

Must be called on Main-Thread

setWindowClientTopLeftPointAndSize0back to summary
private native void setWindowClientTopLeftPointAndSize0(long window, int x, int y, int w, int h, boolean display)

Must be called on Main-Thread

sizeChangedback to summary
protected void sizeChanged(final boolean defer, final int newWidth, final int newHeight, final boolean force)

Overrides jogamp.newt.WindowImpl.sizeChanged.

Doc from jogamp.newt.WindowImpl.sizeChanged.

Triggered by implementation's WM events to update the client-area size in window units w/o insets/decorations.

Annotations
@Override
sizeScreenPosInsetsChangedback 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.

superSizeChangedOffThreadback to summary
private void superSizeChangedOffThread(final boolean defer, final int newWidth, final int newHeight, final boolean force)
unlockSurface0back to summary
private native boolean unlockSurface0(long window, long view)
unlockSurfaceImplback to summary
protected void unlockSurfaceImpl()

Overrides jogamp.newt.WindowImpl.unlockSurfaceImpl.

Annotations
@Override
updatePixelScaleback to summary
private boolean updatePixelScale(final boolean sendEvent, final boolean defer, final boolean deferOffThread, final float newPixelScaleRaw, final float maxPixelScaleRaw)
updatePixelScaleback to summary
protected void updatePixelScale(final boolean defer, final float newPixelScaleRaw, final float maxPixelScaleRaw)

Called from native code

updatePixelScaleByDisplayIDback to summary
private boolean updatePixelScaleByDisplayID(final boolean sendEvent)
updatePixelScaleByWindowHandleback to summary
private boolean updatePixelScaleByWindowHandle(final boolean sendEvent)
updatePositionback to summary
public void updatePosition(final int x, final int y)

Implements jogamp.newt.driver.DriverUpdatePosition.updatePosition.

Doc from jogamp.newt.driver.DriverUpdatePosition.updatePosition.

Programmatic update the top-left corner of the client area relative to it's parent.

Parameters
x:int

x-component

y:int

y-component

Annotations
@Override
updateSizePosInsets0back to summary
private native void updateSizePosInsets0(long window, boolean defer)

Triggers sizeScreenPosInsetsChanged(boolean, int, int, int, int, int, int, int, int, boolean)

useParentback to summary
private boolean useParent(final NativeWindow parent)
warpPointer0back to summary
private static native void warpPointer0(long windowHandle, int x, int y)
warpPointerImplback to summary
protected void warpPointerImpl(final int x, final int y)

Overrides jogamp.newt.WindowImpl.warpPointerImpl.

Annotations
@Override