Top Description Inners Fields Constructors Methods
com.sun.glass.ui.monocle

pack-priv Class MX6Cursor

extends NativeCursor
Class Inheritance
Imports
com.sun.glass.ui.Size, java.io.IOException, java.nio.Buffer, .ByteBuffer, .ByteOrder, .IntBuffer, .ShortBuffer

Cursor using a framebuffer overlay on Freescale i.MX6.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private MX6Cursor.MXCFBGblAlpha
private static final int
private static final int
private Buffer
private int
private int
private long
private int
private int
private Buffer
private ByteBuffer
private int
private int
private MX6Cursor.MXCFBPos
private int
private int
private static final int
private LinuxSystem
Inherited from com.sun.glass.ui.monocle.NativeCursor:
isVisible

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Size
getBestSize()

Implements abstract com.sun.glass.ui.monocle.NativeCursor.getBestSize.

Returns the preferred size of a native cursor.

pack-priv void
setHotSpot(int hotspotX, int hotspotY)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setHotSpot.

Sets the offset of the cursor's hot spot within the cursor image The hot spot offsets default to 0, 0.

pack-priv void
setImage(byte[] cursorImage)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setImage.

Sets the cursor image

pack-priv void
setLocation(int x, int y)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setLocation.

Sets the location of the hot spot of the cursor on the screen

pack-priv void
setVisibility(boolean visibility)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setVisibility.

Sets whether or not the cursor is visible.

pack-priv void
shutdown()

Implements abstract com.sun.glass.ui.monocle.NativeCursor.shutdown.

Performs any necessary shutdown of the cursor infrastructure.

private void
updateImage(boolean always)

Inherited from com.sun.glass.ui.monocle.NativeCursor:
getVisiblity

Field Detail

alphaback to summary
private MX6Cursor.MXCFBGblAlpha alpha
CURSOR_HEIGHTback to summary
private static final int CURSOR_HEIGHT
CURSOR_WIDTHback to summary
private static final int CURSOR_WIDTH
cursorBufferback to summary
private Buffer cursorBuffer
cursorXback to summary
private int cursorX
cursorYback to summary
private int cursorY
fdback to summary
private long fd
hotspotXback to summary
private int hotspotX
hotspotYback to summary
private int hotspotY
offsetCursorBufferback to summary
private Buffer offsetCursorBuffer
offsetCursorByteBufferback to summary
private ByteBuffer offsetCursorByteBuffer
offsetXback to summary
private int offsetX
offsetYback to summary
private int offsetY
posback to summary
private MX6Cursor.MXCFBPos pos
screenHeightback to summary
private int screenHeight
screenWidthback to summary
private int screenWidth
SHORT_KEYback to summary
private static final int SHORT_KEY
systemback to summary
private LinuxSystem system

Constructor Detail

MX6Cursorback to summary
pack-priv MX6Cursor()

Method Detail

getBestSizeback to summary
pack-priv Size getBestSize()

Implements abstract com.sun.glass.ui.monocle.NativeCursor.getBestSize.

Doc from com.sun.glass.ui.monocle.NativeCursor.getBestSize.

Returns the preferred size of a native cursor.

Annotations
@Override
setHotSpotback to summary
pack-priv void setHotSpot(int hotspotX, int hotspotY)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setHotSpot.

Doc from com.sun.glass.ui.monocle.NativeCursor.setHotSpot.

Sets the offset of the cursor's hot spot within the cursor image The hot spot offsets default to 0, 0.

Annotations
@Override
setImageback to summary
pack-priv void setImage(byte[] cursorImage)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setImage.

Doc from com.sun.glass.ui.monocle.NativeCursor.setImage.

Sets the cursor image

Annotations
@Override
setLocationback to summary
pack-priv void setLocation(int x, int y)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setLocation.

Doc from com.sun.glass.ui.monocle.NativeCursor.setLocation.

Sets the location of the hot spot of the cursor on the screen

Annotations
@Override
setVisibilityback to summary
pack-priv void setVisibility(boolean visibility)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setVisibility.

Doc from com.sun.glass.ui.monocle.NativeCursor.setVisibility.

Sets whether or not the cursor is visible. The implementation should set the isVisible field. On success the isVisible field is set to the visibility parameter.

Annotations
@Override
shutdownback to summary
pack-priv void shutdown()

Implements abstract com.sun.glass.ui.monocle.NativeCursor.shutdown.

Doc from com.sun.glass.ui.monocle.NativeCursor.shutdown.

Performs any necessary shutdown of the cursor infrastructure. Called only once.

Annotations
@Override
updateImageback to summary
private void updateImage(boolean always)
com.sun.glass.ui.monocle back to summary

private Class MX6Cursor.MXCFBColorKey

extends Structure
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final IntBuffer
Inherited from com.sun.glass.ui.monocle.C.Structure:
bp

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
setColorKey(int key)

pack-priv void
setEnable(int enable)

pack-priv int
sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes.

Field Detail

databack to summary
private final IntBuffer data

Constructor Detail

MXCFBColorKeyback to summary
pack-priv MXCFBColorKey()

Method Detail

setColorKeyback to summary
pack-priv void setColorKey(int key)
setEnableback to summary
pack-priv void setEnable(int enable)
sizeofback to summary
pack-priv int sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

Doc from com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes. Must be overridden by subclasses.

Annotations
@Override
com.sun.glass.ui.monocle back to summary

private Class MX6Cursor.MXCFBGblAlpha

extends Structure
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final IntBuffer
Inherited from com.sun.glass.ui.monocle.C.Structure:
bp

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
setAlpha(int alpha)

pack-priv void
setEnable(int enable)

pack-priv int
sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes.

Field Detail

databack to summary
private final IntBuffer data

Constructor Detail

MXCFBGblAlphaback to summary
pack-priv MXCFBGblAlpha()

Method Detail

setAlphaback to summary
pack-priv void setAlpha(int alpha)
setEnableback to summary
pack-priv void setEnable(int enable)
sizeofback to summary
pack-priv int sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

Doc from com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes. Must be overridden by subclasses.

Annotations
@Override
com.sun.glass.ui.monocle back to summary

private Class MX6Cursor.MXCFBPos

extends Structure
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ShortBuffer
Inherited from com.sun.glass.ui.monocle.C.Structure:
bp

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
set(int x, int y)

pack-priv int
sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes.

Field Detail

databack to summary
private final ShortBuffer data

Constructor Detail

MXCFBPosback to summary
pack-priv MXCFBPos()

Method Detail

setback to summary
pack-priv void set(int x, int y)
sizeofback to summary
pack-priv int sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

Doc from com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes. Must be overridden by subclasses.

Annotations
@Override