JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
WindowListener.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
3 * Copyright (c) 2010 JogAmp Community. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
8 *
9 * - Redistribution of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * - Redistribution in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * Neither the name of Sun Microsystems, Inc. or the names of
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * This software is provided "AS IS," without a warranty of any kind. ALL
21 * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
22 * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
23 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
24 * MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
25 * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
26 * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR
27 * ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
28 * DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
29 * DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
30 * ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
31 * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32 *
33 */
34
35package com.jogamp.newt.event;
36
37import com.jogamp.nativewindow.WindowClosingProtocol;
38
39/** NEWT {@link WindowEvent} listener. */
40public interface WindowListener extends NEWTEventListener {
41 /** Window is resized, your application shall respect the new window dimension. A repaint is recommended. */
42 public void windowResized(WindowEvent e);
43
44 /** Window has been moved. */
45 public void windowMoved(WindowEvent e);
46
47 /**
48 * Window destruction has been requested.
49 * <p>
50 * Depending on the {@link WindowClosingProtocol#getDefaultCloseOperation() default close operation},
51 * the window maybe destroyed or not.
52 * </p>
53 * In case the window will be destroyed (see above), release of resources is recommended.
54 **/
56
57 /**
58 * Window has been destroyed.
59 */
61
62 /** Window gained focus. */
64
65 /** Window lost focus. */
67
68 /** Window area shall be repainted. */
70}
NEWT Window events are provided for notification purposes ONLY.
void windowRepaint(WindowUpdateEvent e)
Window area shall be repainted.
void windowMoved(WindowEvent e)
Window has been moved.
void windowResized(WindowEvent e)
Window is resized, your application shall respect the new window dimension.
void windowDestroyNotify(WindowEvent e)
Window destruction has been requested.
void windowGainedFocus(WindowEvent e)
Window gained focus.
void windowDestroyed(WindowEvent e)
Window has been destroyed.
void windowLostFocus(WindowEvent e)
Window lost focus.