Top Description Fields Constructors Methods
com.sun.glass.ui.mac

pack-priv final Class MacPixels

extends Pixels
Class Inheritance
Imports
java.nio.ByteBuffer, .IntBuffer, com.sun.glass.ui.Pixels

MacOSX platform implementation class for Pixels.

Field Summary

Modifier and TypeField and Description
private static final int
Inherited from com.sun.glass.ui.Pixels:
bytesbytesPerComponentheightintswidth

Constructor Summary

AccessConstructor and Description
protected
MacPixels(int width, int height, ByteBuffer data)

protected
MacPixels(int width, int height, ByteBuffer data, float scalex, float scaley)

protected
MacPixels(int width, int height, IntBuffer data)

protected
MacPixels(int width, int height, IntBuffer data, float scalex, float scaley)

Method Summary

Modifier and TypeMethod and Description
protected native void
_attachByte(long ptr, int w, int h, ByteBuffer bytes, byte[] array, int offset)

Implements abstract com.sun.glass.ui.Pixels._attachByte.

protected native void
_attachInt(long ptr, int w, int h, IntBuffer ints, int[] array, int offset)

Implements abstract com.sun.glass.ui.Pixels._attachInt.

protected void
private static native int
pack-priv static int
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from com.sun.glass.ui.Pixels:
asByteBufferasByteBufferequalsgetBuffergetBytesPerComponentgetHeightgetHeightUnsafegetNativeFormatgetPixelsgetScaleXgetScaleXUnsafegetScaleYgetScaleYUnsafegetWidthgetWidthUnsafehashCode

Field Detail

nativeFormatback to summary
private static final int nativeFormat

Constructor Detail

MacPixelsback to summary
protected MacPixels(int width, int height, ByteBuffer data)
MacPixelsback to summary
protected MacPixels(int width, int height, ByteBuffer data, float scalex, float scaley)
MacPixelsback to summary
protected MacPixels(int width, int height, IntBuffer data)
MacPixelsback to summary
protected MacPixels(int width, int height, IntBuffer data, float scalex, float scaley)

Method Detail

_attachByteback to summary
protected native void _attachByte(long ptr, int w, int h, ByteBuffer bytes, byte[] array, int offset)

Implements abstract com.sun.glass.ui.Pixels._attachByte.

Annotations
@Override
_attachIntback to summary
protected native void _attachInt(long ptr, int w, int h, IntBuffer ints, int[] array, int offset)

Implements abstract com.sun.glass.ui.Pixels._attachInt.

Annotations
@Override
_fillDirectByteBufferback to summary
protected void _fillDirectByteBuffer(ByteBuffer bb)

Implements abstract com.sun.glass.ui.Pixels._fillDirectByteBuffer.

Annotations
@Override
_initIDsback to summary
private static native int _initIDs()
getNativeFormat_implback to summary
pack-priv static int getNativeFormat_impl()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override