summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-08 22:50:22 +0200
committerSven Gothel <[email protected]>2014-06-08 22:50:22 +0200
commit14ff638b63fc7adaa59f351891f6a38806d7fa5d (patch)
tree0c61ee420775df3730da1452033463460a1cd954 /src/newt/classes/jogamp
parent58153310faa4089417037e67e06c0812908cecd2 (diff)
NEWT Window: Remove deprecated methods: HiDPI + reparentWindow(..)
Remove HiDPI pixel- from/to window-unit conversion and getter methods: Rectangle HiDPI pixel- from/to window-units are erroneous in case of multiple monitor setup where a mixed pixel-scale exist, since the methods didn't take the monitor viewport and each of it's pixel-scale into account (expensive). Remove deprecated reparentWindow(..) methods.
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index 0df105ff0..0501f6ad6 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -1586,16 +1586,6 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
private final ReparentActionRecreate reparentActionRecreate = new ReparentActionRecreate();
@Override
- public final ReparentOperation reparentWindow(NativeWindow newParent) {
- return reparentWindow(newParent, -1, -1, 0);
- }
-
- @Override
- public final ReparentOperation reparentWindow(NativeWindow newParent, int x, int y, boolean forceDestroyCreate) {
- return reparentWindow(newParent, x, y, forceDestroyCreate ? REPARENT_HINT_FORCE_RECREATION : 0);
- }
-
- @Override
public final ReparentOperation reparentWindow(NativeWindow newParent, int x, int y, int hints) {
final ReparentAction reparentAction = new ReparentAction(newParent, x, y, hints);
runOnEDTIfAvail(true, reparentAction);
@@ -1920,12 +1910,6 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
}
@Override
- public final Rectangle getSurfaceBounds() {
- // FIXME HiDPI: Shortcut, may need to adjust if we change scaling methodology
- return new Rectangle(x * getPixelScaleX(), y * getPixelScaleY(), pixWidth, pixHeight);
- }
-
- @Override
public final int[] convertToWindowUnits(final int[] pixelUnitsAndResult) {
pixelUnitsAndResult[0] /= getPixelScaleX();
pixelUnitsAndResult[1] /= getPixelScaleY();
@@ -1947,16 +1931,6 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
return windowUnitsAndResult.scale(getPixelScaleX(), getPixelScaleY());
}
- @Override
- public final Rectangle convertToWindowUnits(final Rectangle pixelUnitsAndResult) {
- return pixelUnitsAndResult.scaleInv(getPixelScaleX(), getPixelScaleY());
- }
-
- @Override
- public final Rectangle convertToPixelUnits(final Rectangle windowUnitsAndResult) {
- return windowUnitsAndResult.scale(getPixelScaleX(), getPixelScaleY());
- }
-
/** HiDPI: We currently base scaling of window units to pixel units on an integer scale factor per component. */
protected final int getPixelScaleX() {
return hasPixelScale[0];