JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs Class Reference

Test for Bug 1421, Bug 1358, Bug 969 and Bug 672. More...

Inheritance diagram for com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs:
Collaboration diagram for com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs:

Public Member Functions

void release ()
 
void test01_GLCanvasTabPlainGLDirect () throws InterruptedException
 
void test02_GLCanvasTabSashGLDirect () throws InterruptedException
 
void test11_GLCanvasTabPlainGLWComp () throws InterruptedException
 
void test12_GLCanvasTabSashGLWComp () throws InterruptedException
 
void test21_NewtCanvasSWTTabPlainGLDirect () throws InterruptedException
 
void test22_NewtCanvasSWTTabSashGLDirect () throws InterruptedException
 
void test31_NewtCanvasSWTTabPlainGLWComp () throws InterruptedException
 
void test32_NewtCanvasSWTTabSashGLWComp () throws InterruptedException
 
- Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
int getMaxTestNameLen ()
 
String getSnapshotFilename (final int sn, String postSNDetail, final GLCapabilitiesImmutable caps, final int width, final int height, final boolean sinkHasAlpha, String fileSuffix, final String destPath)
 
void snapshot (final int sn, final String postSNDetail, final GL gl, final GLReadBufferUtil readBufferUtil, final String fileSuffix, final String destPath)
 Takes a snapshot of the drawable's current front framebuffer. More...
 

Static Public Member Functions

static void startup ()
 
static void main (final String args[]) throws IOException
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
static void setResetXRandRIfX11AfterClass ()
 
static int resetXRandRIfX11 ()
 Iterates through all outputs and sets the preferred mode and normal rotation using RandR 1.3. More...
 
static int processCommand (final String[] cmdline, final OutputStream outstream, final StringBuilder outstring, final String outPrefix)
 
static final void oneTimeSetUpUITest ()
 
static final void oneTimeTearDownUITest ()
 

Protected Member Functions

void runTestInLayout (final boolean focusOnTab1, final boolean useNewtCanvasSWT, final boolean addComposite, final GLCapabilitiesImmutable caps) throws InterruptedException
 

Detailed Description

Test for Bug 1421, Bug 1358, Bug 969 and Bug 672.

High-DPI scaling impact on MacOS and SWT child window positioning on MacOS.

Testing the TabFolder and a SashForm in the 2nd tab covering both SWT layout use cases on both our SWT support classes SWT GLCanvas and NewtCanvasSWT.

Bug 1421 test01_tabFolderParent() shows that the inner child NEWT GLWindow is position wrongly. It's position is shifted down abo0ut the height of the parent TabFolder and right about the width of the same.

Definition at line 106 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Member Function Documentation

◆ main()

static void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.main ( final String  args[]) throws IOException
static

Definition at line 606 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ release()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.release ( )

Definition at line 129 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ runTestInLayout()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.runTestInLayout ( final boolean  focusOnTab1,
final boolean  useNewtCanvasSWT,
final boolean  addComposite,
final GLCapabilitiesImmutable  caps 
) throws InterruptedException
protected

Definition at line 175 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ startup()

static void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.startup ( )
static

Definition at line 124 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ test01_GLCanvasTabPlainGLDirect()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.test01_GLCanvasTabPlainGLDirect ( ) throws InterruptedException

Definition at line 547 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ test02_GLCanvasTabSashGLDirect()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.test02_GLCanvasTabSashGLDirect ( ) throws InterruptedException

Definition at line 554 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ test11_GLCanvasTabPlainGLWComp()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.test11_GLCanvasTabPlainGLWComp ( ) throws InterruptedException

Definition at line 561 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ test12_GLCanvasTabSashGLWComp()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.test12_GLCanvasTabSashGLWComp ( ) throws InterruptedException

Definition at line 568 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ test21_NewtCanvasSWTTabPlainGLDirect()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.test21_NewtCanvasSWTTabPlainGLDirect ( ) throws InterruptedException

Definition at line 576 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ test22_NewtCanvasSWTTabSashGLDirect()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.test22_NewtCanvasSWTTabSashGLDirect ( ) throws InterruptedException

Definition at line 583 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ test31_NewtCanvasSWTTabPlainGLWComp()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.test31_NewtCanvasSWTTabPlainGLWComp ( ) throws InterruptedException

Definition at line 590 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

◆ test32_NewtCanvasSWTTabSashGLWComp()

void com.jogamp.opengl.test.junit.jogl.swt.TestGLCanvasSWTNewtCanvasSWTPosInTabs.test32_NewtCanvasSWTTabSashGLWComp ( ) throws InterruptedException

Definition at line 597 of file TestGLCanvasSWTNewtCanvasSWTPosInTabs.java.

Here is the call graph for this function:

The documentation for this class was generated from the following file: