add surface.setAlwaysOnTop(boolean) for all renderers (fixes #3718)

This commit is contained in:
Ben Fry
2015-09-11 09:33:41 -04:00
parent e83c78def3
commit b8ed1abcdb
6 changed files with 27 additions and 0 deletions

View File

@@ -594,6 +594,12 @@ public class PSurfaceAWT extends PSurfaceNone {
}
@Override
public void setAlwaysOnTop(boolean always) {
frame.setAlwaysOnTop(always);
}
List<Image> iconImages;
protected void setProcessingIcon(Frame frame) {

View File

@@ -71,6 +71,9 @@ public interface PSurface {
/** Set true if we want to resize things (default is not resizable) */
public void setResizable(boolean resizable);
/** Dumb name, but inherited from Frame and no better ideas. */
public void setAlwaysOnTop(boolean always);
public void setIcon(PImage icon);
//

View File

@@ -111,6 +111,10 @@ public class PSurfaceNone implements PSurface {
public void setupExternalMessages() { }
@Override
public void setAlwaysOnTop(boolean always) { }
//

View File

@@ -302,6 +302,12 @@ public class PSurfaceFX implements PSurface {
}
@Override
public void setAlwaysOnTop(boolean always) {
stage.setAlwaysOnTop(always);
}
/*
@Override
public void placeWindow(int[] location) {

View File

@@ -459,6 +459,12 @@ public class PSurfaceJOGL implements PSurface {
}
@Override
public void setAlwaysOnTop(boolean always) {
window.setAlwaysOnTop(always);
}
protected void initIcons() {
final int[] sizes = { 16, 32, 48, 64, 128, 256, 512 };
String[] iconImages = new String[sizes.length];

View File

@@ -10,6 +10,8 @@ o this is the difference between a lot of loadPixels() and not
o so important to have it in before beta if that's the change
o https://github.com/processing/processing/issues/99
X won't fix for now, requires too much reworking on the image system
X add surface.setAlwaysOnTop(boolean)
X https://github.com/processing/processing/issues/3718
andres
X P2D: error calling surface.setTitle()