summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-12-31 16:54:07 +0100
committerSven Gothel <[email protected]>2013-12-31 16:54:07 +0100
commit6da365d9d3aa29070afa1a1c82996ec7f92a690b (patch)
treec2261a9be96009196505af3e0f351a6e7f69b948 /src/newt/classes/com/jogamp
parentd8b3e369cf5365d09853db20b817cda7553b9a48 (diff)
Bug 935: NEWT PointerIcon: Add size, hotspot 'getter' and String representation
PointerIcon's size and hotspot maybe be useful for certain user-app calculation.
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r--src/newt/classes/com/jogamp/newt/Display.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/Display.java b/src/newt/classes/com/jogamp/newt/Display.java
index ee6dfd080..cf1099c85 100644
--- a/src/newt/classes/com/jogamp/newt/Display.java
+++ b/src/newt/classes/com/jogamp/newt/Display.java
@@ -37,6 +37,8 @@ import java.util.Iterator;
import javax.media.nativewindow.AbstractGraphicsDevice;
import javax.media.nativewindow.NativeWindowException;
+import javax.media.nativewindow.util.DimensionImmutable;
+import javax.media.nativewindow.util.PointImmutable;
import jogamp.newt.Debug;
@@ -71,7 +73,15 @@ public abstract class Display {
* PointerIcons can be used via {@link Window#setPointerIcon(PointerIcon)}.
* </p>
*/
- public static interface PointerIcon { }
+ public static interface PointerIcon {
+ /** Returns the size, i.e. width and height. */
+ DimensionImmutable getSize();
+ /** Returns the hotspot. */
+ PointImmutable getHotspot();
+
+ @Override
+ String toString();
+ }
/**
* Returns the created {@link PointerIcon} or <code>null</code> if not implemented on platform.