Top Fields Constructors Methods
jogamp.newt.driver.macosx

public Class DisplayDriver

extends DisplayImpl
Class Inheritance
Imports
java.net.URLConnection, java.nio.Buffer, .ByteBuffer, com.jogamp.nativewindow.AbstractGraphicsDevice, .NativeWindowException, com.jogamp.nativewindow.util.PixelFormat, com.jogamp.common.nio.Buffers, com.jogamp.common.util.IOUtil, com.jogamp.nativewindow.macosx.MacOSXGraphicsDevice, com.jogamp.newt.NewtFactory, com.jogamp.opengl.util.PNGPixelRect, jogamp.newt.DisplayImpl, .NEWTJNILibLoader

Field Summary

Modifier and TypeField and Description
private static final PNGPixelRect
Inherited from jogamp.newt.DisplayImpl:
aDevicedispatchMessagesRunnableedtUtilexclusivefqnamehashCodeidnamenilStringrefCounttype

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
private static native long
createPointerIcon0(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 long
destroyPointerIcon0(long handle)

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

Overrides jogamp.newt.DisplayImpl.destroyPointerIconImpl.

Executed from EDT!
protected void
dispatchMessagesNative()

Implements abstract jogamp.newt.DisplayImpl.dispatchMessagesNative.

Dispatch native Toolkit messageges
public final boolean
getNativePointerIconForceDirectNIO()

Overrides jogamp.newt.DisplayImpl.getNativePointerIconForceDirectNIO.

Returns the native platform's direct NIO buffer requirement pointer-icon pixel data.
public PixelFormat
getNativePointerIconPixelFormat()

Overrides jogamp.newt.DisplayImpl.getNativePointerIconPixelFormat.

Returns the native platform's PixelFormat for pointer-icon pixel data.
private static native boolean
public static void
initSingleton()

Hides jogamp.newt.DisplayImpl.initSingleton.

Ensure static init has been run.
public static void
private static native void
pack-priv static native void
setAppIcon0(Object pixels, int pixels_byte_offset, boolean pixels_is_direct, int width, int height)

public static void
private static native void
Inherited from jogamp.newt.DisplayImpl:
addReferencecreatecreateEDTUtilcreateNativecreatePointerIconcreatePointerIconcreatePointerIconImplCheckeddestroydispatchMessagesenqueueEventequalsgetEDTUtilgetFQNamegetGraphicsDevicegetHandlegetIdgetNamegetReferenceCountgetTypehashCodeisEDTRunningisExclusiveisNativeValidisNativeValidAsyncisPNGUtilAvailableremoveReferencerunOnEDTIfAvailrunWithLockedDevicerunWithLockedDisplayDevicesetEDTUtiltoStringvalidateDisplayNamevalidateEDTStopped

Field Detail

defaultIconDataback to summary
private static final PNGPixelRect defaultIconData

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
createNativeImplback to summary
protected void createNativeImpl()

Implements abstract jogamp.newt.DisplayImpl.createNativeImpl.

Annotations
@Override
createPointerIcon0back to summary
private static native long createPointerIcon0(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 long destroyPointerIcon0(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
dispatchMessagesNativeback to summary
protected void dispatchMessagesNative()

Implements abstract jogamp.newt.DisplayImpl.dispatchMessagesNative.

Doc from jogamp.newt.DisplayImpl.dispatchMessagesNative.

Dispatch native Toolkit messageges

Annotations
@Override
getNativePointerIconForceDirectNIOback to summary
public final boolean getNativePointerIconForceDirectNIO()

Overrides jogamp.newt.DisplayImpl.getNativePointerIconForceDirectNIO.

Doc from com.jogamp.newt.Display.getNativePointerIconForceDirectNIO.

Returns the native platform's direct NIO buffer requirement pointer-icon pixel data.

Using this value will avoid conversion within createPointerIcon(PixelRectangle, int, int).

Note

MUST BE DIRECT BUFFER, since NSBitmapImageRep uses buffer directly!

Annotations
@Override
getNativePointerIconPixelFormatback to summary
public PixelFormat getNativePointerIconPixelFormat()

Overrides jogamp.newt.DisplayImpl.getNativePointerIconPixelFormat.

Doc from com.jogamp.newt.Display.getNativePointerIconPixelFormat.

Returns the native platform's PixelFormat for pointer-icon pixel data.

Using this value will avoid conversion within createPointerIcon(PixelRectangle, int, int).

Known native pixel formats are:

Annotations
@Override
initNSApplication0back to summary
private static native boolean initNSApplication0()
initSingletonback to summary
public static void initSingleton()

Hides jogamp.newt.DisplayImpl.initSingleton.

Doc from jogamp.newt.DisplayImpl.initSingleton.

Ensure static init has been run.

runNSApplicationback to summary
public static void runNSApplication()
runNSApplication0back to summary
private static native void runNSApplication0()
setAppIcon0back to summary
pack-priv static native void setAppIcon0(Object pixels, int pixels_byte_offset, boolean pixels_is_direct, int width, int height)
stopNSApplicationback to summary
public static void stopNSApplication()
stopNSApplication0back to summary
private static native void stopNSApplication0()