APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.glass.ui.mac

pack-priv final Class MacCursor

extends Cursor
Class Inheritance
Imports
com.sun.glass.ui.Cursor, .Pixels, .Size

MacOSX platform implementation class for Cursor.

Field Summary

Modifier and TypeField and Description
private static boolean
private static boolean
private static boolean
Inherited from com.sun.glass.ui.Cursor:
CURSOR_CLOSED_HANDCURSOR_CROSSHAIRCURSOR_CUSTOMCURSOR_DEFAULTCURSOR_DISAPPEARCURSOR_MOVECURSOR_NONECURSOR_OPEN_HANDCURSOR_POINTING_HANDCURSOR_RESIZE_DOWNCURSOR_RESIZE_LEFTCURSOR_RESIZE_LEFTRIGHTCURSOR_RESIZE_NORTHEASTCURSOR_RESIZE_NORTHWESTCURSOR_RESIZE_RIGHTCURSOR_RESIZE_SOUTHEASTCURSOR_RESIZE_SOUTHWESTCURSOR_RESIZE_UPCURSOR_RESIZE_UPDOWNCURSOR_TEXTCURSOR_WAIT

Constructor Summary

AccessConstructor and Description
protected
MacCursor(int type)

protected
MacCursor(int x, int y, Pixels pixels)

Method Summary

Modifier and TypeMethod and Description
protected native long
_createCursor(int x, int y, Pixels pixels)

Implements abstract com.sun.glass.ui.Cursor._createCursor.

private static native Size
_getBestSize(int width, int height)

private static native void
private native void
_set(int type)

private native void
_setCustom(long ptr)

private static native void
_setVisible(boolean visible)

pack-priv static Size
getBestSize_impl(int width, int height)

pack-priv void
set()

pack-priv static void
setVisible_impl(boolean visible)

Inherited from com.sun.glass.ui.Cursor:
getBestSizegetNativeCursorgetTypesetVisible

Field Detail

isCursorNONEback to summary
private static boolean isCursorNONE
isNSCursorVisibleback to summary
private static boolean isNSCursorVisible
isVisibleback to summary
private static boolean isVisible

Constructor Detail

MacCursorback to summary
protected MacCursor(int type)
MacCursorback to summary
protected MacCursor(int x, int y, Pixels pixels)

Method Detail

_createCursorback to summary
protected native long _createCursor(int x, int y, Pixels pixels)

Implements abstract com.sun.glass.ui.Cursor._createCursor.

Annotations
@Override
_getBestSizeback to summary
private static native Size _getBestSize(int width, int height)
_initIDsback to summary
private static native void _initIDs()
_setback to summary
private native void _set(int type)
_setCustomback to summary
private native void _setCustom(long ptr)
_setVisibleback to summary
private static native void _setVisible(boolean visible)
getBestSize_implback to summary
pack-priv static Size getBestSize_impl(int width, int height)
setback to summary
pack-priv void set()
setVisible_implback to summary
pack-priv static void setVisible_impl(boolean visible)