29package com.jogamp.opengl.test.junit.newt.event;
31import com.jogamp.opengl.GLCapabilities;
32import com.jogamp.opengl.GLProfile;
34import org.junit.AfterClass ;
35import org.junit.Assert;
36import org.junit.BeforeClass ;
37import org.junit.FixMethodOrder;
38import org.junit.runners.MethodSorters;
40import com.jogamp.newt.opengl.GLWindow;
41import com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareES2;
42import com.jogamp.opengl.test.junit.util.AWTRobotUtil;
43import com.jogamp.opengl.test.junit.util.NewtTestUtil;
48@FixMethodOrder(MethodSorters.NAME_ASCENDING)
60 _glWindow.
setTitle(
"Event Modifier Test GLWindow");
63 _glWindow.
setSize(TEST_FRAME_WIDTH, TEST_FRAME_HEIGHT);
72 Assert.assertNotNull(_robot);
85 public static void main(
final String args[])
throws Exception {
87 org.junit.runner.JUnitCore.
main( testName ) ;
An implementation of GLAutoDrawable and Window interface, using a delegated Window instance,...
final void addMouseListener(final MouseListener l)
Appends the given MouseListener to the end of the list.
final void setPosition(final int x, final int y)
Sets the location of the window's client area excluding insets (window decorations) in window units.
final void setTitle(final String title)
final void setSize(final int width, final int height)
Sets the size of the window's client area in window units, excluding decorations.
final void setVisible(final boolean visible)
Calls setVisible(true, visible), i.e.
final void destroy()
Destroys all resources associated with this GLAutoDrawable, inclusive the GLContext.
static GLWindow create(final GLCapabilitiesImmutable caps)
Creates a new GLWindow attaching a new Window referencing a new default Screen and default Display wi...
Specifies a set of OpenGL capabilities.
Specifies the the OpenGL profile.
static GLProfile getGL2ES2(final AbstractGraphicsDevice device)
Returns the GL2ES2 profile implementation, hence compatible w/ GL2ES2.
Test whether or not event modifiers are preserved by NEWT.
static void baseBeforeClass()
Must be called from subclass @BeforeClass code, allowing it to perform its specific initialization fi...
Test whether or not event modifiers are properly delivered by NEWT.
static void beforeClass()
static void main(final String args[])
static void requestFocus(final Robot robot, final Object obj)
FIXME: AWTRobotUtil Cleanup: Use specific type for argument object.
static void assertRequestFocusAndWait(final Robot robot, final Object requestFocus, final Object waitForFocus, final FocusEventCountAdapter gain, final FocusEventCountAdapter lost)
static boolean waitForRealized(final Screen screen, final boolean realized, final Runnable waitAction)
static boolean waitForVisible(final Window win, final boolean visible, final Runnable waitAction)
void addGLEventListener(GLEventListener listener)
Adds the given listener to the end of this drawable queue.