diff --git a/src/java/org/lwjgl/opengl/Display.java b/src/java/org/lwjgl/opengl/Display.java index c4a13e57..11589f37 100644 --- a/src/java/org/lwjgl/opengl/Display.java +++ b/src/java/org/lwjgl/opengl/Display.java @@ -1249,4 +1249,47 @@ public final class Display { } } } + + /** + * Enable or disable the Display window to be resized. + * + * @param set true to make the Display window resizable; + * false to disable resizing on the Display window. + */ + public static void setResizable(boolean resizable) { + + } + + /** + * @return true if the Display window is resizable. + */ + public static boolean isResizable() { + return false; + } + + /** + * @return true if the Display window has been resized. + * This value will be updated after a call to Display.update(). + */ + public static boolean wasResized() { + return false; + } + + /** + * @return this method will return the width of the Display window. + * + * This value will be updated after a call to Display.update(). + */ + public static int getWidth() { + return 0; + } + + /** + * @return this method will return the height of the Display window. + * + * This value will be updated after a call to Display.update(). + */ + public static int getHeight() { + return 0; + } } diff --git a/src/java/org/lwjgl/opengl/DisplayImplementation.java b/src/java/org/lwjgl/opengl/DisplayImplementation.java index 031527f1..84360dea 100644 --- a/src/java/org/lwjgl/opengl/DisplayImplementation.java +++ b/src/java/org/lwjgl/opengl/DisplayImplementation.java @@ -159,4 +159,32 @@ interface DisplayImplementation extends InputImplementation { * @return number of icons used. */ int setIcon(ByteBuffer[] icons); + + /** + * Enable or disable the Display window to be resized. + * + * @param set true to make the Display window resizable; + * false to disable resizing on the Display window. + */ + void setResizable(boolean resizable); + + /** + * @return true if the Display window is resizable. + */ + boolean isResizable(); + + /** + * @return true if the Display window has been resized. + */ + boolean wasResized(); + + /** + * @return this method will return a the width of the Display window. + */ + int getWidth(); + + /** + * @return this method will return a the height of the Display window. + */ + int getHeight(); } diff --git a/src/java/org/lwjgl/opengl/LinuxDisplay.java b/src/java/org/lwjgl/opengl/LinuxDisplay.java index b8702de0..6f40d257 100644 --- a/src/java/org/lwjgl/opengl/LinuxDisplay.java +++ b/src/java/org/lwjgl/opengl/LinuxDisplay.java @@ -1356,6 +1356,18 @@ final class LinuxDisplay implements DisplayImplementation { public boolean isInsideWindow() { return mouseInside; } + + public void setResizable(boolean resizable) { + + } + + public boolean isResizable() { + return false; + } + + public boolean wasResized() { + return false; + } /** * Helper class for managing Compiz's workarounds. We need this to enable Legacy diff --git a/src/java/org/lwjgl/opengl/MacOSXDisplay.java b/src/java/org/lwjgl/opengl/MacOSXDisplay.java index dc648552..6c59c0e0 100644 --- a/src/java/org/lwjgl/opengl/MacOSXDisplay.java +++ b/src/java/org/lwjgl/opengl/MacOSXDisplay.java @@ -504,7 +504,20 @@ final class MacOSXDisplay implements DisplayImplementation { return Display.getDisplayMode().getHeight(); } - public boolean isInsideWindow() { - return true; - } + public boolean isInsideWindow() { + return true; + } + + public void setResizable(boolean resizable) { + + } + + public boolean isResizable() { + return false; + } + + public boolean wasResized() { + return false; + } + } diff --git a/src/java/org/lwjgl/opengl/WindowsDisplay.java b/src/java/org/lwjgl/opengl/WindowsDisplay.java index 4cfbfc90..1c554a2a 100644 --- a/src/java/org/lwjgl/opengl/WindowsDisplay.java +++ b/src/java/org/lwjgl/opengl/WindowsDisplay.java @@ -935,11 +935,23 @@ final class WindowsDisplay implements DisplayImplementation { return -1; } - private native boolean nTrackMouseEvent(long hwnd); + private native boolean nTrackMouseEvent(long hwnd); - public boolean isInsideWindow() { - return mouseInside; - } + public boolean isInsideWindow() { + return mouseInside; + } + + public void setResizable(boolean resizable) { + + } + + public boolean isResizable() { + return false; + } + + public boolean wasResized() { + return false; + } private static final class Rect { public int top;