diff options
author | Sven Gothel <[email protected]> | 2020-01-06 18:16:47 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-01-06 18:16:47 +0100 |
commit | abbc95745b69dcd7f5f84c7a56bf32947c23e74d (patch) | |
tree | 2ff465c56ef5c5ab31b27ffa2b212865b21cb173 /src/nativewindow/classes | |
parent | 8ab8412568d362b0bf65a40d727ba052a519ea3d (diff) |
Bug 1421: OSXUtil: Add GetLocation(..), simply returning the view's frame position
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r-- | src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java b/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java index e06a68953..1197f059d 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java +++ b/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java @@ -117,6 +117,13 @@ public class OSXUtil implements ToolkitProperties { /** * @param windowOrView + * @return top-left client-area position in window units + */ + public static Point GetLocation(final long windowOrView) { + return (Point) GetLocation0(windowOrView); + } + /** + * @param windowOrView * @param src_x * @param src_y * @return top-left client-area position in window units @@ -436,6 +443,7 @@ public class OSXUtil implements ToolkitProperties { private static native boolean initIDs0(); private static native boolean isNSView0(long object); private static native boolean isNSWindow0(long object); + private static native Object GetLocation0(long windowOrView); private static native Object GetLocationOnScreen0(long windowOrView, int src_x, int src_y); private static native Object GetInsets0(long windowOrView); private static native float GetScreenPixelScale1(int displayID); |