diff options
Diffstat (limited to 'src/newt/classes/com')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/Window.java | 18 | ||||
-rw-r--r-- | src/newt/classes/com/jogamp/newt/opengl/GLWindow.java | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/newt/classes/com/jogamp/newt/Window.java b/src/newt/classes/com/jogamp/newt/Window.java index 32024a49a..3c5441bf7 100644 --- a/src/newt/classes/com/jogamp/newt/Window.java +++ b/src/newt/classes/com/jogamp/newt/Window.java @@ -269,22 +269,22 @@ public interface Window extends NativeWindow, WindowClosingProtocol { */ void warpPointer(int x, int y); - /** Defining ids for the reparenting strategy */ - public interface ReparentAction { + /** Reparenting operation types */ + public enum ReparentOperation { /** No native reparenting valid */ - static final int ACTION_INVALID = -1; + ACTION_INVALID, /** No native reparenting action required, no change*/ - static final int ACTION_UNCHANGED = 0; + ACTION_NOP, /** Native reparenting incl. Window tree */ - static final int ACTION_NATIVE_REPARENTING = 1; + ACTION_NATIVE_REPARENTING, /** Native window creation after tree change - instead of reparenting. */ - static final int ACTION_NATIVE_CREATION = 2; + ACTION_NATIVE_CREATION, /** Change Window tree only, native creation is pending */ - static final int ACTION_NATIVE_CREATION_PENDING = 3; + ACTION_NATIVE_CREATION_PENDING; } /** @@ -299,9 +299,9 @@ public interface Window extends NativeWindow, WindowClosingProtocol { * * @return The issued reparent action type (strategy) as defined in Window.ReparentAction */ - int reparentWindow(NativeWindow newParent); + ReparentOperation reparentWindow(NativeWindow newParent); - int reparentWindow(NativeWindow newParent, boolean forceDestroyCreate); + ReparentOperation reparentWindow(NativeWindow newParent, boolean forceDestroyCreate); boolean setFullscreen(boolean fullscreen); diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java index 419ce7f7f..efdcf4c12 100644 --- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java +++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java @@ -308,11 +308,11 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC ", \n\tContext: " + context + ", \n\tWindow: "+window+ /** ", \n\tFactory: "+factory+ */ "]"; } - public final int reparentWindow(NativeWindow newParent) { + public final ReparentOperation reparentWindow(NativeWindow newParent) { return window.reparentWindow(newParent); } - public final int reparentWindow(NativeWindow newParent, boolean forceDestroyCreate) { + public final ReparentOperation reparentWindow(NativeWindow newParent, boolean forceDestroyCreate) { return window.reparentWindow(newParent, forceDestroyCreate); } |