Top Fields Constructors Methods
jogamp.newt.driver.x11

public Class DisplayDriver

extends DisplayImpl
Class Inheritance
Imports
java.nio.Buffer, .ByteBuffer, com.jogamp.nativewindow.AbstractGraphicsDevice, .NativeWindowException, com.jogamp.nativewindow.util.PixelFormat, com.jogamp.common.nio.Buffers, com.jogamp.nativewindow.x11.X11GraphicsDevice, jogamp.nativewindow.x11.X11Util, jogamp.newt.DisplayImpl, .NEWTJNILibLoader

Field Summary

Modifier and TypeField and Description
private long
javaObjectAtom

X11 Window java object property used on EDT

private RandR
private int
randr_error_base

X11 Keyboard handle used on EDT

private int
randr_event_base

X11 Keyboard handle used on EDT

private long
windowDeleteAtom

X11 Window delete atom marker used on EDT

Inherited from jogamp.newt.DisplayImpl:
aDevicedispatchMessagesRunnableedtUtilexclusivefqnamehashCodeidnamenilStringrefCounttype

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
private native void
CompleteDisplay0(long handle)

protected void
createNativeImpl()

Implements abstract jogamp.newt.DisplayImpl.createNativeImpl.

We use a private non-shared X11 Display instance for EDT window operations and one for exposed animation, eg.
private static long
createPointerIcon(final long display, final Buffer pixels, final int width, final int height, final int hotX, final int hotY)

private static native long
createPointerIcon0(long display, Object pixels, int pixels_byte_offset, boolean pixels_is_direct, int width, int height, int hotX, int hotY)

protected final long
createPointerIconImpl(final PixelFormat
the pixels's format
pixelformat
,
final int
the pixels's width
width
,
final int
the pixels's height
height
,
final ByteBuffer
the pixels
pixels
,
final int
the PointerIcon's hot-spot x-coord
hotX
,
final int
the PointerIcon's hot-spot x-coord
hotY
)

Overrides jogamp.newt.DisplayImpl.createPointerIconImpl.

Executed from EDT!
private static native void
destroyPointerIcon0(long display, long handle)

protected final void
destroyPointerIconImpl(final long displayHandle, final long piHandle)

Overrides jogamp.newt.DisplayImpl.destroyPointerIconImpl.

Executed from EDT!
private native void
DispatchMessages0(long display, long javaObjectAtom, long windowDeleteAtom, final int randr_event_base, final int randr_error_base)

protected void
dispatchMessagesNative()

Implements abstract jogamp.newt.DisplayImpl.dispatchMessagesNative.

Dispatch native Toolkit messageges
private void
displayCompleted(final long javaObjectAtom, final long windowDeleteAtom, final int randr_event_base, final int randr_error_base)

private native void
DisplayRelease0(long handle, long javaObjectAtom, long windowDeleteAtom)

protected long
protected int
protected int
protected long
private static native boolean
initIDs0(boolean debug)

pack-priv static void
initSingleton()

Hides jogamp.newt.DisplayImpl.initSingleton.

Ensure static init has been run.
protected Boolean
isXineramaEnabled()

Returns null if !

pack-priv void
registerRandR(final RandR rAndR)

private void
sendRRScreenChangeNotify(final long event)

public String
Inherited from jogamp.newt.DisplayImpl:
addReferencecreatecreateEDTUtilcreateNativecreatePointerIconcreatePointerIconcreatePointerIconImplCheckeddestroydispatchMessagesenqueueEventequalsgetEDTUtilgetFQNamegetGraphicsDevicegetHandlegetIdgetNamegetNativePointerIconForceDirectNIOgetNativePointerIconPixelFormatgetReferenceCountgetTypehashCodeisEDTRunningisExclusiveisNativeValidisNativeValidAsyncisPNGUtilAvailableremoveReferencerunOnEDTIfAvailrunWithLockedDevicerunWithLockedDisplayDevicesetEDTUtiltoStringvalidateEDTStopped

Field Detail

javaObjectAtomback to summary
private long javaObjectAtom

X11 Window java object property used on EDT

rAndRback to summary
private RandR rAndR
randr_error_baseback to summary
private int randr_error_base

X11 Keyboard handle used on EDT

randr_event_baseback to summary
private int randr_event_base

X11 Keyboard handle used on EDT

windowDeleteAtomback to summary
private long windowDeleteAtom

X11 Window delete atom marker used on EDT

Constructor Detail

DisplayDriverback to summary
public DisplayDriver()

Method Detail

closeNativeImplback to summary
protected void closeNativeImpl(final AbstractGraphicsDevice aDevice)

Implements abstract jogamp.newt.DisplayImpl.closeNativeImpl.

Annotations
@Override
CompleteDisplay0back to summary
private native void CompleteDisplay0(long handle)
createNativeImplback to summary
protected void createNativeImpl()

Implements abstract jogamp.newt.DisplayImpl.createNativeImpl.

We use a private non-shared X11 Display instance for EDT window operations and one for exposed animation, eg. OpenGL.

Annotations
@Override
createPointerIconback to summary
private static long createPointerIcon(final long display, final Buffer pixels, final int width, final int height, final int hotX, final int hotY)
createPointerIcon0back to summary
private static native long createPointerIcon0(long display, Object pixels, int pixels_byte_offset, boolean pixels_is_direct, int width, int height, int hotX, int hotY)
createPointerIconImplback to summary
protected final long createPointerIconImpl(final PixelFormat pixelformat, final int width, final int height, final ByteBuffer pixels, final int hotX, final int hotY)

Overrides jogamp.newt.DisplayImpl.createPointerIconImpl.

Doc from jogamp.newt.DisplayImpl.createPointerIconImpl.

Executed from EDT!

Parameters
pixelformat:PixelFormat

the pixels's format

width:int

the pixels's width

height:int

the pixels's height

pixels:ByteBuffer

the pixels

hotX:int

the PointerIcon's hot-spot x-coord

hotY:int

the PointerIcon's hot-spot x-coord

Returns:long

if successful a valid handle (not null), otherwise null.

Annotations
@Override
destroyPointerIcon0back to summary
private static native void destroyPointerIcon0(long display, long handle)
destroyPointerIconImplback to summary
protected final void destroyPointerIconImpl(final long displayHandle, final long piHandle)

Overrides jogamp.newt.DisplayImpl.destroyPointerIconImpl.

Doc from jogamp.newt.DisplayImpl.destroyPointerIconImpl.

Executed from EDT!

Annotations
@Override
DispatchMessages0back to summary
private native void DispatchMessages0(long display, long javaObjectAtom, long windowDeleteAtom, final int randr_event_base, final int randr_error_base)
dispatchMessagesNativeback to summary
protected void dispatchMessagesNative()

Implements abstract jogamp.newt.DisplayImpl.dispatchMessagesNative.

Doc from jogamp.newt.DisplayImpl.dispatchMessagesNative.

Dispatch native Toolkit messageges

Annotations
@Override
displayCompletedback to summary
private void displayCompleted(final long javaObjectAtom, final long windowDeleteAtom, final int randr_event_base, final int randr_error_base)
DisplayRelease0back to summary
private native void DisplayRelease0(long handle, long javaObjectAtom, long windowDeleteAtom)
getJavaObjectAtomback to summary
protected long getJavaObjectAtom()
getRandRErrorBaseback to summary
protected int getRandRErrorBase()
getRandREventBaseback to summary
protected int getRandREventBase()
getWindowDeleteAtomback to summary
protected long getWindowDeleteAtom()
initIDs0back to summary
private static native boolean initIDs0(boolean debug)
initSingletonback to summary
pack-priv static void initSingleton()

Hides jogamp.newt.DisplayImpl.initSingleton.

Ensure static init has been run.

isXineramaEnabledback to summary
protected Boolean isXineramaEnabled()

Returns null if !isNativeValid(), otherwise the Boolean value of X11GraphicsDevice#isXineramaEnabled().

registerRandRback to summary
pack-priv void registerRandR(final RandR rAndR)
sendRRScreenChangeNotifyback to summary
private void sendRRScreenChangeNotify(final long event)
validateDisplayNameback to summary
public String validateDisplayName(final String name, final long handle)

Overrides jogamp.newt.DisplayImpl.validateDisplayName.

Annotations
@Override