29package com.jogamp.opengl.test.junit.util;
31import com.jogamp.newt.event.WindowEvent;
32import com.jogamp.newt.event.WindowListener;
33import com.jogamp.newt.event.WindowUpdateEvent;
39 boolean verbose =
true;
46 public void setVerbose(
final boolean v) { verbose =
false; }
61 if(focusCount<0) { focusCount=0; }
64 System.err.println(
"FOCUS NEWT GAINED [fc "+focusCount+
"]: "+prefix+
", "+e);
69 if(focusCount>0) { focusCount=0; }
72 System.err.println(
"FOCUS NEWT LOST [fc "+focusCount+
"]: "+prefix+
", "+e);
82 public String
toString() {
return prefix+
"[focusCount "+focusCount+
"]"; }
NEWT Window events are provided for notification purposes ONLY.
void windowDestroyNotify(final WindowEvent e)
Window destruction has been requested.
NEWTFocusAdapter(final String prefix)
void setVerbose(final boolean v)
Instance starts in verbose mode, call w/ false to disable verbosity.
void windowRepaint(final WindowUpdateEvent e)
Window area shall be repainted.
void windowGainedFocus(final WindowEvent e)
Window gained focus.
void windowResized(final WindowEvent e)
Window is resized, your application shall respect the new window dimension.
void windowMoved(final WindowEvent e)
Window has been moved.
void windowDestroyed(final WindowEvent e)
Window has been destroyed.
void windowLostFocus(final WindowEvent e)
Window lost focus.
NEWT WindowEvent listener.