aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-14 13:39:34 +0200
committerSven Gothel <[email protected]>2011-09-14 13:39:34 +0200
commita245d530274908427806a9a00242256f372c6552 (patch)
tree663f1db3336a4c39d5f276fafcb54fb4b8fd605c /src/newt/classes/com/jogamp
parentf45753d2da46786b023166f805bacbc3bdce71c1 (diff)
NEWT setAlwaysOnTop(): Allow windows to stay permanent on top; TODO: X11/Windows
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r--src/newt/classes/com/jogamp/newt/Window.java4
-rw-r--r--src/newt/classes/com/jogamp/newt/opengl/GLWindow.java8
2 files changed, 12 insertions, 0 deletions
diff --git a/src/newt/classes/com/jogamp/newt/Window.java b/src/newt/classes/com/jogamp/newt/Window.java
index 84f2f0294..24555bf39 100644
--- a/src/newt/classes/com/jogamp/newt/Window.java
+++ b/src/newt/classes/com/jogamp/newt/Window.java
@@ -217,6 +217,10 @@ public interface Window extends NativeWindow, WindowClosingProtocol {
boolean isUndecorated();
+ void setAlwaysOnTop(boolean value);
+
+ boolean isAlwaysOnTop();
+
void setTitle(String title);
String getTitle();
diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
index bde4373d1..7712b4654 100644
--- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
+++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
@@ -222,6 +222,14 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC
return window.isUndecorated();
}
+ public final void setAlwaysOnTop(boolean value) {
+ window.setAlwaysOnTop(value);
+ }
+
+ public final boolean isAlwaysOnTop() {
+ return window.isAlwaysOnTop();
+ }
+
public final void setFocusAction(FocusRunnable focusAction) {
window.setFocusAction(focusAction);
}