public class CursorCache
extends java.lang.Object
Constructor | Description |
---|---|
CursorCache() |
Modifier and Type | Method | Description |
---|---|---|
static void |
dispose() |
Disposes all cursors held in the cache.
|
static org.eclipse.swt.graphics.Cursor |
getCursor(int type) |
Returns a cursor that is also cached as to not create more handles for each time the cursor type is fetched.
|
public static org.eclipse.swt.graphics.Cursor getCursor(int type)
type
- Cursor Type to fetchpublic static void dispose()
IMPORTANT: ONLY CALL WHEN YOU WANT TO DISPOSE ALL CACHED CURSORS!