diff options
author | Sven Gothel <[email protected]> | 2013-01-28 16:15:50 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-01-28 16:15:50 +0100 |
commit | 2f63a43fd6ff9964251c43e248c51bc821f3ecbd (patch) | |
tree | e504246cc8badc5a2a27f1d364cec207f14c8193 | |
parent | 2fe180fbee15b82e2ae14fe3c95887db246c874d (diff) |
Add WindowClosingProtocol impact detail on WindowListener.windowDestroyNotify(..)
-rw-r--r-- | src/newt/classes/com/jogamp/newt/event/WindowListener.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/event/WindowListener.java b/src/newt/classes/com/jogamp/newt/event/WindowListener.java index e841a06cf..011e1f654 100644 --- a/src/newt/classes/com/jogamp/newt/event/WindowListener.java +++ b/src/newt/classes/com/jogamp/newt/event/WindowListener.java @@ -34,6 +34,8 @@ package com.jogamp.newt.event; +import javax.media.nativewindow.WindowClosingProtocol; + public interface WindowListener extends NEWTEventListener { /** Window is resized, your application shall respect the new window dimension. A repaint is recommended. */ public void windowResized(WindowEvent e); @@ -41,7 +43,14 @@ public interface WindowListener extends NEWTEventListener { /** Window has been moved. */ public void windowMoved(WindowEvent e); - /** Window will be destroyed. Release of resources is recommended. */ + /** + * Window destruction has been requested. + * <p> + * Depending on the {@link WindowClosingProtocol#getDefaultCloseOperation() default close operation}, + * the window maybe destroyed or not. + * </p> + * In case the window will be destroyed (see above), release of resources is recommended. + **/ public void windowDestroyNotify(WindowEvent e); /** Window has been destroyed.*/ |