Add placeholder methods for initial resizing api for the Display
This commit is contained in:
parent
bad616d4cb
commit
9aafabd728
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue