summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--make/build-common.xml4
-rw-r--r--make/build-newt.xml55
-rw-r--r--make/build.xml2
-rw-r--r--src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/Gears.java4
-rwxr-xr-xsrc/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java5
-rwxr-xr-xsrc/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsNEWT.java4
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/Display.java18
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/Screen.java10
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/Window.java12
-rw-r--r--src/newt/classes/com/jogamp/newt/event/InputEvent.java4
-rw-r--r--src/newt/classes/com/jogamp/newt/event/KeyListener.java2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/MouseListener.java2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/NEWTEvent.java (renamed from src/newt/classes/com/jogamp/newt/event/Event.java)28
-rw-r--r--src/newt/classes/com/jogamp/newt/event/NEWTEventListener.java (renamed from src/newt/classes/com/jogamp/newt/event/EventListener.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/event/PaintEvent.java2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/TraceKeyAdapter.java (renamed from src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/DebugKeyAdapter.java)24
-rw-r--r--src/newt/classes/com/jogamp/newt/event/TraceMouseAdapter.java81
-rw-r--r--src/newt/classes/com/jogamp/newt/event/TraceWindowAdapter.java68
-rw-r--r--src/newt/classes/com/jogamp/newt/event/WindowEvent.java2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/WindowListener.java2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/awt/AWTAdapter.java (renamed from src/newt/classes/com/jogamp/newt/awt/event/AWTAdapter.java)16
-rw-r--r--src/newt/classes/com/jogamp/newt/event/awt/AWTKeyAdapter.java (renamed from src/newt/classes/com/jogamp/newt/awt/event/AWTKeyAdapter.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/awt/AWTMouseAdapter.java (renamed from src/newt/classes/com/jogamp/newt/awt/event/AWTMouseAdapter.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/awt/AWTNewtEventFactory.java (renamed from src/newt/classes/com/jogamp/newt/awt/event/AWTNewtEventFactory.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/event/awt/AWTWindowAdapter.java (renamed from src/newt/classes/com/jogamp/newt/awt/event/AWTWindowAdapter.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/awt/AWTCanvas.java (renamed from src/newt/classes/com/jogamp/newt/awt/AWTCanvas.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/awt/AWTDisplay.java (renamed from src/newt/classes/com/jogamp/newt/awt/AWTDisplay.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/awt/AWTScreen.java (renamed from src/newt/classes/com/jogamp/newt/awt/AWTScreen.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/awt/AWTWindow.java (renamed from src/newt/classes/com/jogamp/newt/awt/AWTWindow.java)4
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/intel/gdl/Display.java (renamed from src/newt/classes/com/jogamp/newt/intel/gdl/Display.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/intel/gdl/Screen.java (renamed from src/newt/classes/com/jogamp/newt/intel/gdl/Screen.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/intel/gdl/Window.java (renamed from src/newt/classes/com/jogamp/newt/intel/gdl/Window.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/macosx/MacDisplay.java (renamed from src/newt/classes/com/jogamp/newt/macosx/MacDisplay.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/macosx/MacScreen.java (renamed from src/newt/classes/com/jogamp/newt/macosx/MacScreen.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/macosx/MacWindow.java (renamed from src/newt/classes/com/jogamp/newt/macosx/MacWindow.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/opengl/broadcom/egl/Display.java (renamed from src/newt/classes/com/jogamp/newt/opengl/broadcom/egl/Display.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/opengl/broadcom/egl/Screen.java (renamed from src/newt/classes/com/jogamp/newt/opengl/broadcom/egl/Screen.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/opengl/broadcom/egl/Window.java (renamed from src/newt/classes/com/jogamp/newt/opengl/broadcom/egl/Window.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/opengl/kd/KDDisplay.java (renamed from src/newt/classes/com/jogamp/newt/opengl/kd/KDDisplay.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/opengl/kd/KDScreen.java (renamed from src/newt/classes/com/jogamp/newt/opengl/kd/KDScreen.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/opengl/kd/KDWindow.java (renamed from src/newt/classes/com/jogamp/newt/opengl/kd/KDWindow.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/windows/WindowsDisplay.java (renamed from src/newt/classes/com/jogamp/newt/windows/WindowsDisplay.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/windows/WindowsScreen.java (renamed from src/newt/classes/com/jogamp/newt/windows/WindowsScreen.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java (renamed from src/newt/classes/com/jogamp/newt/windows/WindowsWindow.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/x11/X11Display.java (renamed from src/newt/classes/com/jogamp/newt/x11/X11Display.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/x11/X11Screen.java (renamed from src/newt/classes/com/jogamp/newt/x11/X11Screen.java)2
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/x11/X11Window.java (renamed from src/newt/classes/com/jogamp/newt/x11/X11Window.java)2
-rw-r--r--src/newt/classes/com/jogamp/newt/util/MainThread.java2
-rwxr-xr-xsrc/newt/native/BroadcomEGL.c16
-rw-r--r--src/newt/native/IntelGDL.c24
-rwxr-xr-xsrc/newt/native/KDWindow.c20
-rw-r--r--src/newt/native/MacWindow.m62
-rwxr-xr-xsrc/newt/native/WindowsWindow.c74
-rwxr-xr-xsrc/newt/native/X11Window.c54
54 files changed, 414 insertions, 239 deletions
diff --git a/make/build-common.xml b/make/build-common.xml
index cc40a5cd4..461e96f1f 100644
--- a/make/build-common.xml
+++ b/make/build-common.xml
@@ -283,12 +283,13 @@
<property name="jogl.sdk.jar" value="${build.jogl}/jogl.sdk.jar" />
<property name="newt.core.jar" value="${build.newt}/newt.core.jar" />
+ <property name="newt.awt.jar" value="${build.newt}/newt.awt.jar" />
<property name="newt.os.x11.jar" value="${build.newt}/newt.os.x11.jar" />
<property name="newt.os.win.jar" value="${build.newt}/newt.os.win.jar" />
<property name="newt.os.osx.jar" value="${build.newt}/newt.os.osx.jar" />
<property name="newt.ogl.jar" value="${build.newt}/newt.ogl.jar" />
<property name="newt.broadcomegl.jar" value="${build.newt}/newt.broadcomegl.jar" />
- <property name="newt.awt.jar" value="${build.newt}/newt.awt.jar" />
+ <property name="newt.intelgdl.jar" value="${build.newt}/newt.intelgdl.jar" />
<!-- Atomic CDC JARS -->
<property name="nativewindow.core.cdc.jar" value="${build.nativewindow}/nativewindow.core.cdc.jar" />
@@ -315,6 +316,7 @@
<property name="newt.os.osx.cdc.jar" value="${build.newt}/newt.os.osx.cdc.jar" />
<property name="newt.ogl.cdc.jar" value="${build.newt}/newt.ogl.cdc.jar" />
<property name="newt.broadcomegl.cdc.jar" value="${build.newt}/newt.broadcomegl.cdc.jar" />
+ <property name="newt.intelgdl.cdc.jar" value="${build.newt}/newt.intelgdl.cdc.jar" />
<!-- The location and name of the configuration ANT file that will
- validate to ensure that all user-define variables are set. -->
diff --git a/make/build-newt.xml b/make/build-newt.xml
index 22b34fdc2..c6d67b85c 100644
--- a/make/build-newt.xml
+++ b/make/build-newt.xml
@@ -87,25 +87,28 @@
<!-- partitioning -->
<property name="java.part.core"
- value="com/jogamp/newt/*, com/jogamp/newt/event/*, com/jogamp/newt/util/*, com/jogamp/newt/impl/*, com/jogamp/newt/intel/gdl/*"/>
+ value="com/jogamp/newt/*, com/jogamp/newt/event/*, com/jogamp/newt/util/*, com/jogamp/newt/impl/*"/>
+
+ <property name="java.part.awt"
+ value="com/jogamp/newt/impl/awt/*, com/jogamp/newt/event/awt/*"/>
<property name="java.part.x11"
- value="com/jogamp/newt/x11/*"/>
+ value="com/jogamp/newt/impl/x11/*"/>
<property name="java.part.windows"
- value="com/jogamp/newt/windows/*"/>
+ value="com/jogamp/newt/impl/windows/*"/>
<property name="java.part.macosx"
- value="com/jogamp/newt/macosx/*"/>
+ value="com/jogamp/newt/impl/macosx/*"/>
<property name="java.part.opengl"
- value="com/jogamp/newt/opengl/*, com/jogamp/newt/opengl/kd/*"/>
+ value="com/jogamp/newt/opengl/*, com/jogamp/newt/impl/opengl/kd/*"/>
<property name="java.part.broadcomegl"
- value="com/jogamp/newt/opengl/broadcom/egl/*"/>
+ value="com/jogamp/newt/impl/opengl/broadcom/egl/*"/>
- <property name="java.part.awt"
- value="com/jogamp/newt/awt/**"/>
+ <property name="java.part.intelgdl"
+ value="com/jogamp/newt/impl/intel/gdl/*"/>
<!-- condition excludes -->
@@ -159,7 +162,7 @@
<property name="javadoc.link" value="http://java.sun.com/j2se/1.4.2/docs/api/" />
<property name="javadoc.windowtitle" value="NEWT API -- ${newt_base_version} Specification" />
<property name="javadoc.overview" value="spec-overview.html" />
- <property name="javadoc.spec.packagenames" value="com.jogamp.newt, com.jogamp.newt.opengl" />
+ <property name="javadoc.spec.packagenames" value="com.jogamp.newt, com.jogamp.newt.event.*, com.jogamp.newt.opengl" />
<property name="javadoc.packagenames" value="${javadoc.spec.packagenames}" />
@@ -475,23 +478,23 @@
</macrodef>
<target name="c.build.newt.prepare.KD" if="useKD">
- <javah destdir="${src.generated.c}/KD" classpath="${classes}" class="com.jogamp.newt.opengl.kd.KDWindow" />
+ <javah destdir="${src.generated.c}/KD" classpath="${classes}" class="com.jogamp.newt.impl.opengl.kd.KDWindow" />
</target>
<target name="c.build.newt.prepare.IntelGDL" if="useIntelGDL">
- <javah destdir="${src.generated.c}/IntelGDL" classpath="${classes}" class="com.jogamp.newt.intel.gdl.Display" />
- <javah destdir="${src.generated.c}/IntelGDL" classpath="${classes}" class="com.jogamp.newt.intel.gdl.Screen" />
- <javah destdir="${src.generated.c}/IntelGDL" classpath="${classes}" class="com.jogamp.newt.intel.gdl.Window" />
+ <javah destdir="${src.generated.c}/IntelGDL" classpath="${classes}" class="com.jogamp.newt.impl.intel.gdl.Display" />
+ <javah destdir="${src.generated.c}/IntelGDL" classpath="${classes}" class="com.jogamp.newt.impl.intel.gdl.Screen" />
+ <javah destdir="${src.generated.c}/IntelGDL" classpath="${classes}" class="com.jogamp.newt.impl.intel.gdl.Window" />
</target>
<target name="c.build.newt.prepare.BroadcomEGL" if="useBroadcomEGL">
- <javah destdir="${src.generated.c}/BroadcomEGL" classpath="${classes}" class="com.jogamp.newt.opengl.broadcom.egl.Window" />
+ <javah destdir="${src.generated.c}/BroadcomEGL" classpath="${classes}" class="com.jogamp.newt.impl.opengl.broadcom.egl.Window" />
</target>
<target name="c.build.newt.prepare.desktop" unless="setup.nodesktop">
- <javah destdir="${src.generated.c}/Windows" classpath="${classes}" class="com.jogamp.newt.windows.WindowsWindow" />
- <javah destdir="${src.generated.c}/MacOSX" classpath="${classes}" class="com.jogamp.newt.macosx.MacWindow" />
- <javah destdir="${src.generated.c}/X11" classpath="${classes}" class="com.jogamp.newt.x11.X11Window" />
+ <javah destdir="${src.generated.c}/Windows" classpath="${classes}" class="com.jogamp.newt.impl.windows.WindowsWindow" />
+ <javah destdir="${src.generated.c}/MacOSX" classpath="${classes}" class="com.jogamp.newt.impl.macosx.MacWindow" />
+ <javah destdir="${src.generated.c}/X11" classpath="${classes}" class="com.jogamp.newt.impl.x11.X11Window" />
</target>
<target name="c.build.newt.prepare" depends="c.build.newt.prepare.KD,c.build.newt.prepare.IntelGDL,c.build.newt.prepare.BroadcomEGL,c.build.newt.prepare.desktop" />
@@ -592,6 +595,13 @@
</jar>
</target>
+ <target name="build-jars-driver" depends="setup-manifestfile">
+ <jar manifest="tempversion" destfile="${newt.intelgdl.jar}" filesonly="true">
+ <fileset dir="${classes}"
+ includes="${java.part.intelgdl}"/>
+ </jar>
+ </target>
+
<target name="build-jars-opengl-cdc" depends="setup-manifestfile-cdc" unless="setup.noOpenGL">
<jar manifest="tempversion-cdc" destfile="${newt.ogl.cdc.jar}" filesonly="true">
<fileset dir="${classes-cdc}"
@@ -603,6 +613,13 @@
</jar>
</target>
+ <target name="build-jars-driver-cdc" depends="setup-manifestfile-cdc">
+ <jar manifest="tempversion-cdc" destfile="${newt.intelgdl.cdc.jar}" filesonly="true">
+ <fileset dir="${classes}"
+ includes="${java.part.intelgdl}"/>
+ </jar>
+ </target>
+
<target name="build-jars-desktop" depends="setup-manifestfile" unless="setup.nodesktop">
<jar manifest="tempversion" destfile="${newt.os.x11.jar}" filesonly="true">
<fileset dir="${classes}"
@@ -656,7 +673,7 @@
</jar>
</target>
- <target name="build-jars-javase" depends="setup-manifestfile,build-jars-awt,build-jars-opengl,build-jars-all-noawt,build-jars-all-awt,build-jars-desktop">
+ <target name="build-jars-javase" depends="setup-manifestfile,build-jars-awt,build-jars-opengl,build-jars-all-noawt,build-jars-all-awt,build-jars-desktop,build-jars-driver">
<jar manifest="tempversion" destfile="${newt.core.jar}" filesonly="true">
<fileset dir="${classes}"
includes="${java.part.core}"/>
@@ -664,7 +681,7 @@
<delete file="tempversion"/>
</target>
- <target name="build-jars-cdc" depends="setup-manifestfile-cdc,build-jars-opengl-cdc,build-jars-all-cdc,build-jars-desktop-cdc" unless="setup.noCDC">
+ <target name="build-jars-cdc" depends="setup-manifestfile-cdc,build-jars-opengl-cdc,build-jars-all-cdc,build-jars-desktop-cdc,build-jars-driver-cdc" unless="setup.noCDC">
<jar manifest="tempversion-cdc" destfile="${newt.core.cdc.jar}" filesonly="true">
<fileset dir="${classes-cdc}"
includes="${java.part.core}"/>
diff --git a/make/build.xml b/make/build.xml
index 8d2c9765a..5a0952289 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -19,7 +19,7 @@
<property name="javadoc.spec.packagenames" value="javax.media.opengl.*" />
<property name="javadoc.windowtitle" value="JOGL, NativeWindow and NEWT APIs" />
- <property name="javadoc.packagenames" value="${javadoc.nw.spec.packagenames},${javadoc.spec.packagenames},com.jogamp.opengl.util.*,com.jogamp.newt, com.jogamp.newt.opengl" />
+ <property name="javadoc.packagenames" value="${javadoc.nw.spec.packagenames},${javadoc.spec.packagenames},com.jogamp.opengl.util.*,com.jogamp.newt, com.jogamp.newt.event.*, com.jogamp.newt.opengl" />
<property name="javadoc.dev" value="${project.root}/javadoc_dev" />
<property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.jogamp.opengl.impl.*,com.jogamp.nativewindow.impl.*,com.jogamp.newt.*,com.sun.gluegen,com.jogamp.gluegen.runtime" />
diff --git a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/Gears.java b/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/Gears.java
index 45d5a4a58..956f4f1e3 100644
--- a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/Gears.java
+++ b/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/Gears.java
@@ -4,7 +4,7 @@ package com.jogamp.test.junit.jogl.demos.gl2.gears;
import javax.media.opengl.*;
import javax.media.opengl.awt.*;
import com.jogamp.newt.event.*;
-import com.jogamp.newt.awt.event.*;
+import com.jogamp.newt.event.awt.*;
import java.awt.Component;
import com.jogamp.newt.Window;
@@ -64,7 +64,7 @@ public class Gears implements GLEventListener {
gl.glEnable(GL2.GL_NORMALIZE);
- GearsMouseAdapter gearsMouse = new GearsMouseAdapter();
+ MouseListener gearsMouse = new TraceMouseAdapter(new GearsMouseAdapter());
if (drawable instanceof Component) {
Component comp = (Component) drawable;
diff --git a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java b/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java
index 36146df58..dc0923ee8 100755
--- a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java
+++ b/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java
@@ -35,7 +35,8 @@ package com.jogamp.test.junit.jogl.demos.gl2.gears;
import javax.media.opengl.*;
import com.jogamp.opengl.util.Animator;
import javax.media.opengl.awt.GLCanvas;
-import com.jogamp.newt.awt.event.AWTKeyAdapter;
+import com.jogamp.newt.event.awt.AWTKeyAdapter;
+import com.jogamp.newt.event.TraceKeyAdapter;
import com.jogamp.test.junit.jogl.demos.gl2.gears.Gears;
import java.awt.Frame;
@@ -77,7 +78,7 @@ public class TestGearsAWT {
Animator animator = new Animator(glCanvas);
QuitKeyAdapter quitKeyAdapter = new QuitKeyAdapter();
- new AWTKeyAdapter(new DebugKeyAdapter()).addTo(glCanvas);
+ new AWTKeyAdapter(new TraceKeyAdapter()).addTo(glCanvas);
new AWTKeyAdapter(quitKeyAdapter).addTo(glCanvas);
frame.setVisible(true);
diff --git a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsNEWT.java b/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsNEWT.java
index e1de72ab5..835d19185 100755
--- a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsNEWT.java
+++ b/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsNEWT.java
@@ -37,6 +37,7 @@ import com.jogamp.opengl.util.Animator;
import com.jogamp.test.junit.jogl.demos.gl2.gears.Gears;
import com.jogamp.newt.*;
+import com.jogamp.newt.event.*;
import com.jogamp.newt.opengl.*;
import org.junit.Assert;
@@ -65,13 +66,14 @@ public class TestGearsNEWT {
protected void runTestGL(GLCapabilities caps) throws InterruptedException {
GLWindow glWindow = GLWindow.create(caps);
Assert.assertNotNull(glWindow);
+ glWindow.setTitle("Gears NEWT Test");
glWindow.addGLEventListener(new Gears());
Animator animator = new Animator(glWindow);
QuitKeyAdapter quitKeyAdapter = new QuitKeyAdapter();
- glWindow.addKeyListener(new DebugKeyAdapter());
+ glWindow.addKeyListener(new TraceKeyAdapter());
glWindow.addKeyListener(quitKeyAdapter);
glWindow.setSize(width, height);
diff --git a/src/newt/classes/com/jogamp/newt/Display.java b/src/newt/classes/com/jogamp/newt/Display.java
index 931c16cd9..df4d5b4f8 100755
--- a/src/newt/classes/com/jogamp/newt/Display.java
+++ b/src/newt/classes/com/jogamp/newt/Display.java
@@ -48,15 +48,15 @@ public abstract class Display {
Class displayClass = NewtFactory.getCustomClass(type, "Display");
if(null==displayClass) {
if (NativeWindowFactory.TYPE_EGL.equals(type)) {
- displayClass = Class.forName("com.jogamp.newt.opengl.kd.KDDisplay");
+ displayClass = Class.forName("com.jogamp.newt.impl.opengl.kd.KDDisplay");
} else if (NativeWindowFactory.TYPE_WINDOWS.equals(type)) {
- displayClass = Class.forName("com.jogamp.newt.windows.WindowsDisplay");
+ displayClass = Class.forName("com.jogamp.newt.impl.windows.WindowsDisplay");
} else if (NativeWindowFactory.TYPE_MACOSX.equals(type)) {
- displayClass = Class.forName("com.jogamp.newt.macosx.MacDisplay");
+ displayClass = Class.forName("com.jogamp.newt.impl.macosx.MacDisplay");
} else if (NativeWindowFactory.TYPE_X11.equals(type)) {
- displayClass = Class.forName("com.jogamp.newt.x11.X11Display");
+ displayClass = Class.forName("com.jogamp.newt.impl.x11.X11Display");
} else if (NativeWindowFactory.TYPE_AWT.equals(type)) {
- displayClass = Class.forName("com.jogamp.newt.awt.AWTDisplay");
+ displayClass = Class.forName("com.jogamp.newt.impl.awt.AWTDisplay");
} else {
throw new RuntimeException("Unknown display type \"" + type + "\"");
}
@@ -267,14 +267,14 @@ public abstract class Display {
protected abstract void dispatchMessagesNative();
- private LinkedList/*<Event>*/ events = new LinkedList();
+ private LinkedList/*<NEWTEvent>*/ events = new LinkedList();
protected void dispatchMessages() {
- Event e;
+ NEWTEvent e;
do {
synchronized(events) {
if (!events.isEmpty()) {
- e = (Event) events.removeFirst();
+ e = (NEWTEvent) events.removeFirst();
} else {
e = null;
}
@@ -292,7 +292,7 @@ public abstract class Display {
dispatchMessagesNative();
}
- public void enqueueEvent(com.jogamp.newt.event.Event e) {
+ public void enqueueEvent(NEWTEvent e) {
synchronized(events) {
events.add(e);
}
diff --git a/src/newt/classes/com/jogamp/newt/Screen.java b/src/newt/classes/com/jogamp/newt/Screen.java
index b393d30de..7bf520332 100755
--- a/src/newt/classes/com/jogamp/newt/Screen.java
+++ b/src/newt/classes/com/jogamp/newt/Screen.java
@@ -46,15 +46,15 @@ public abstract class Screen {
Class screenClass = NewtFactory.getCustomClass(type, "Screen");
if(null==screenClass) {
if (NativeWindowFactory.TYPE_EGL.equals(type)) {
- screenClass = Class.forName("com.jogamp.newt.opengl.kd.KDScreen");
+ screenClass = Class.forName("com.jogamp.newt.impl.opengl.kd.KDScreen");
} else if (NativeWindowFactory.TYPE_WINDOWS.equals(type)) {
- screenClass = Class.forName("com.jogamp.newt.windows.WindowsScreen");
+ screenClass = Class.forName("com.jogamp.newt.impl.windows.WindowsScreen");
} else if (NativeWindowFactory.TYPE_MACOSX.equals(type)) {
- screenClass = Class.forName("com.jogamp.newt.macosx.MacScreen");
+ screenClass = Class.forName("com.jogamp.newt.impl.macosx.MacScreen");
} else if (NativeWindowFactory.TYPE_X11.equals(type)) {
- screenClass = Class.forName("com.jogamp.newt.x11.X11Screen");
+ screenClass = Class.forName("com.jogamp.newt.impl.x11.X11Screen");
} else if (NativeWindowFactory.TYPE_AWT.equals(type)) {
- screenClass = Class.forName("com.jogamp.newt.awt.AWTScreen");
+ screenClass = Class.forName("com.jogamp.newt.impl.awt.AWTScreen");
} else {
throw new RuntimeException("Unknown window type \"" + type + "\"");
}
diff --git a/src/newt/classes/com/jogamp/newt/Window.java b/src/newt/classes/com/jogamp/newt/Window.java
index 33b971578..6f585a20a 100755
--- a/src/newt/classes/com/jogamp/newt/Window.java
+++ b/src/newt/classes/com/jogamp/newt/Window.java
@@ -71,15 +71,15 @@ public abstract class Window implements NativeWindow
Class windowClass = NewtFactory.getCustomClass(type, "Window");
if(null==windowClass) {
if (NativeWindowFactory.TYPE_EGL.equals(type)) {
- windowClass = Class.forName("com.jogamp.newt.opengl.kd.KDWindow");
+ windowClass = Class.forName("com.jogamp.newt.impl.opengl.kd.KDWindow");
} else if (NativeWindowFactory.TYPE_WINDOWS.equals(type)) {
- windowClass = Class.forName("com.jogamp.newt.windows.WindowsWindow");
+ windowClass = Class.forName("com.jogamp.newt.impl.windows.WindowsWindow");
} else if (NativeWindowFactory.TYPE_MACOSX.equals(type)) {
- windowClass = Class.forName("com.jogamp.newt.macosx.MacWindow");
+ windowClass = Class.forName("com.jogamp.newt.impl.macosx.MacWindow");
} else if (NativeWindowFactory.TYPE_X11.equals(type)) {
- windowClass = Class.forName("com.jogamp.newt.x11.X11Window");
+ windowClass = Class.forName("com.jogamp.newt.impl.x11.X11Window");
} else if (NativeWindowFactory.TYPE_AWT.equals(type)) {
- windowClass = Class.forName("com.jogamp.newt.awt.AWTWindow");
+ windowClass = Class.forName("com.jogamp.newt.impl.awt.AWTWindow");
} else {
throw new NativeWindowException("Unknown window type \"" + type + "\"");
}
@@ -576,7 +576,7 @@ public abstract class Window implements NativeWindow
// Generic Event Support
//
- protected void sendEvent(Event e) {
+ protected void sendEvent(NEWTEvent e) {
if(e instanceof WindowEvent) {
sendWindowEvent((WindowEvent)e);
} else if(e instanceof KeyEvent) {
diff --git a/src/newt/classes/com/jogamp/newt/event/InputEvent.java b/src/newt/classes/com/jogamp/newt/event/InputEvent.java
index 01a4b307a..02fbe59ef 100644
--- a/src/newt/classes/com/jogamp/newt/event/InputEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/InputEvent.java
@@ -35,7 +35,7 @@ package com.jogamp.newt.event;
import com.jogamp.newt.*;
-public abstract class InputEvent extends Event
+public abstract class InputEvent extends NEWTEvent
{
public static final int SHIFT_MASK = 1 << 0;
public static final int CTRL_MASK = 1 << 1;
@@ -91,7 +91,7 @@ public abstract class InputEvent extends Event
}
public String toString() {
- return "InputEvent[modifiers:"+modifiers+"]";
+ return "InputEvent[modifiers:"+modifiers+", "+super.toString()+"]";
}
private boolean consumed;
diff --git a/src/newt/classes/com/jogamp/newt/event/KeyListener.java b/src/newt/classes/com/jogamp/newt/event/KeyListener.java
index 925a902f7..5ce3868f5 100644
--- a/src/newt/classes/com/jogamp/newt/event/KeyListener.java
+++ b/src/newt/classes/com/jogamp/newt/event/KeyListener.java
@@ -35,7 +35,7 @@ package com.jogamp.newt.event;
import com.jogamp.newt.*;
-public interface KeyListener extends EventListener
+public interface KeyListener extends NEWTEventListener
{
public void keyPressed(KeyEvent e);
public void keyReleased(KeyEvent e);
diff --git a/src/newt/classes/com/jogamp/newt/event/MouseListener.java b/src/newt/classes/com/jogamp/newt/event/MouseListener.java
index 3d5b4d83f..b328aeac7 100644
--- a/src/newt/classes/com/jogamp/newt/event/MouseListener.java
+++ b/src/newt/classes/com/jogamp/newt/event/MouseListener.java
@@ -35,7 +35,7 @@ package com.jogamp.newt.event;
import com.jogamp.newt.*;
-public interface MouseListener extends EventListener
+public interface MouseListener extends NEWTEventListener
{
public void mouseClicked(MouseEvent e);
public void mouseEntered(MouseEvent e);
diff --git a/src/newt/classes/com/jogamp/newt/event/Event.java b/src/newt/classes/com/jogamp/newt/event/NEWTEvent.java
index d93995ead..6559c5953 100644
--- a/src/newt/classes/com/jogamp/newt/event/Event.java
+++ b/src/newt/classes/com/jogamp/newt/event/NEWTEvent.java
@@ -36,33 +36,32 @@ package com.jogamp.newt.event;
import com.jogamp.newt.*;
import java.util.*;
-public class Event {
+public class NEWTEvent extends java.util.EventObject {
private boolean isSystemEvent;
private int eventType;
- private Object source;
private long when;
static final boolean DEBUG = false;
- // 0: Event.java
+ // 0: NEWTEvent.java
// 1: InputEvent.java
// 2: KeyEvent.java
// 3: com.jogamp.newt.Window
- // 3: com.jogamp.newt.awt.event.AWTNewtEventFactory
+ // 3: com.jogamp.newt.event.awt.AWTNewtEventFactory
// 2: MouseEvent.java
// 3: com.jogamp.newt.Window
- // 3: com.jogamp.newt.awt.event.AWTNewtEventFactory
+ // 3: com.jogamp.newt.event.awt.AWTNewtEventFactory
// 1: PaintEvent.java
// 2: com.jogamp.newt.Window
- // 2: com.jogamp.newt.awt.event.AWTNewtEventFactory
+ // 2: com.jogamp.newt.event.awt.AWTNewtEventFactory
// 1: WindowEvent.java
// 2: com.jogamp.newt.Window
- // 2: com.jogamp.newt.awt.event.AWTNewtEventFactory
+ // 2: com.jogamp.newt.event.awt.AWTNewtEventFactory
//
static final String WindowClazzName = "com.jogamp.newt.Window" ;
- static final String AWTNewtEventFactoryClazzName = "com.jogamp.newt.awt.event.AWTNewtEventFactory" ;
+ static final String AWTNewtEventFactoryClazzName = "com.jogamp.newt.event.awt.AWTNewtEventFactory" ;
- static final boolean evaluateIsSystemEvent(Event event, Throwable t) {
+ static final boolean evaluateIsSystemEvent(NEWTEvent event, Throwable t) {
StackTraceElement[] stack = t.getStackTrace();
if(stack.length==0 || null==stack[0]) {
return false;
@@ -96,10 +95,10 @@ public class Event {
return res;
}
- protected Event(int eventType, Object source, long when) {
+ protected NEWTEvent(int eventType, Object source, long when) {
+ super(source);
this.isSystemEvent = evaluateIsSystemEvent(this, new Throwable());
this.eventType = eventType;
- this.source = source;
this.when = when;
}
@@ -114,18 +113,13 @@ public class Event {
return eventType;
}
- /** Returns the source Object which produced this Event. */
- public final Object getSource() {
- return source;
- }
-
/** Returns the timestamp, in milliseconds, of this event. */
public final long getWhen() {
return when;
}
public String toString() {
- return "Event[sys:"+isSystemEvent()+", source:"+getSource()+", when:"+getWhen()+"]";
+ return "NEWTEvent[sys:"+isSystemEvent()+", source:"+getSource().getClass().getName()+", when:"+getWhen()+" d "+(System.currentTimeMillis()-getWhen())+"ms]";
}
public static String toHexString(int hex) {
diff --git a/src/newt/classes/com/jogamp/newt/event/EventListener.java b/src/newt/classes/com/jogamp/newt/event/NEWTEventListener.java
index e47b9ccb3..2a187f8c4 100644
--- a/src/newt/classes/com/jogamp/newt/event/EventListener.java
+++ b/src/newt/classes/com/jogamp/newt/event/NEWTEventListener.java
@@ -35,7 +35,7 @@ package com.jogamp.newt.event;
import com.jogamp.newt.*;
-public interface EventListener extends java.util.EventListener
+public interface NEWTEventListener extends java.util.EventListener
{
public static final int WINDOW = 1 << 0;
public static final int MOUSE = 1 << 1;
diff --git a/src/newt/classes/com/jogamp/newt/event/PaintEvent.java b/src/newt/classes/com/jogamp/newt/event/PaintEvent.java
index 469358625..e1c667b55 100755
--- a/src/newt/classes/com/jogamp/newt/event/PaintEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/PaintEvent.java
@@ -39,7 +39,7 @@ import com.jogamp.newt.*;
*
* @author tdv
*/
-public class PaintEvent extends Event {
+public class PaintEvent extends NEWTEvent {
// bounds of the damage region
private int x, y, width, height;
diff --git a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/DebugKeyAdapter.java b/src/newt/classes/com/jogamp/newt/event/TraceKeyAdapter.java
index da5e7d62f..8034bdb9f 100644
--- a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/DebugKeyAdapter.java
+++ b/src/newt/classes/com/jogamp/newt/event/TraceKeyAdapter.java
@@ -1,4 +1,3 @@
-
/*
* Copyright (c) 2010 Sven Gothel. All Rights Reserved.
*
@@ -31,20 +30,31 @@
* SVEN GOTHEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
-package com.jogamp.test.junit.jogl.demos.gl2.gears;
+package com.jogamp.newt.event;
+
+public class TraceKeyAdapter implements KeyListener {
-import com.jogamp.newt.event.*;
+ KeyListener downstream;
-class DebugKeyAdapter extends KeyAdapter {
+ public TraceKeyAdapter() {
+ this.downstream = null;
+ }
+
+ public TraceKeyAdapter(KeyListener downstream) {
+ this.downstream = downstream;
+ }
public void keyPressed(KeyEvent e) {
- System.out.println("KEY-PRESSED "+Thread.currentThread()+": "+e);
+ System.out.println(e);
+ if(null!=downstream) { downstream.keyPressed(e); }
}
public void keyReleased(KeyEvent e) {
- System.out.println("KEY-RELEASED "+Thread.currentThread()+": "+e);
+ System.out.println(e);
+ if(null!=downstream) { downstream.keyReleased(e); }
}
public void keyTyped(KeyEvent e) {
- System.out.println("KEY-TYPED "+Thread.currentThread()+": "+e);
+ System.out.println(e);
+ if(null!=downstream) { downstream.keyTyped(e); }
}
}
diff --git a/src/newt/classes/com/jogamp/newt/event/TraceMouseAdapter.java b/src/newt/classes/com/jogamp/newt/event/TraceMouseAdapter.java
new file mode 100644
index 000000000..b19b5eb21
--- /dev/null
+++ b/src/newt/classes/com/jogamp/newt/event/TraceMouseAdapter.java
@@ -0,0 +1,81 @@
+/*
+ * Copyright (c) 2010 Sven Gothel. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * - Redistribution of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * Neither the name Sven Gothel or the names of
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
+ * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
+ * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
+ * MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
+ * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR
+ * ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
+ * DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
+ * DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
+ * ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
+ * SVEN GOTHEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ */
+package com.jogamp.newt.event;
+
+import com.jogamp.newt.*;
+
+public class TraceMouseAdapter implements MouseListener {
+
+ MouseListener downstream;
+
+ public TraceMouseAdapter() {
+ this.downstream = null;
+ }
+
+ public TraceMouseAdapter(MouseListener downstream) {
+ this.downstream = downstream;
+ }
+
+ public void mouseClicked(MouseEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.mouseClicked(e); }
+ }
+ public void mouseEntered(MouseEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.mouseEntered(e); }
+ }
+ public void mouseExited(MouseEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.mouseExited(e); }
+ }
+ public void mousePressed(MouseEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.mousePressed(e); }
+ }
+ public void mouseReleased(MouseEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.mouseReleased(e); }
+ }
+ public void mouseMoved(MouseEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.mouseMoved(e); }
+ }
+ public void mouseDragged(MouseEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.mouseDragged(e); }
+ }
+ public void mouseWheelMoved(MouseEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.mouseWheelMoved(e); }
+ }
+}
+
diff --git a/src/newt/classes/com/jogamp/newt/event/TraceWindowAdapter.java b/src/newt/classes/com/jogamp/newt/event/TraceWindowAdapter.java
new file mode 100644
index 000000000..5a93bca36
--- /dev/null
+++ b/src/newt/classes/com/jogamp/newt/event/TraceWindowAdapter.java
@@ -0,0 +1,68 @@
+/*
+ * Copyright (c) 2010 Sven Gothel. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * - Redistribution of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * Neither the name Sven Gothel or the names of
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
+ * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
+ * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
+ * MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
+ * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR
+ * ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
+ * DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
+ * DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
+ * ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
+ * SVEN GOTHEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ */
+package com.jogamp.newt.event;
+
+import com.jogamp.newt.*;
+
+public class TraceWindowAdapter implements WindowListener {
+
+ WindowListener downstream;
+
+ public TraceWindowAdapter() {
+ this.downstream = null;
+ }
+
+ public TraceWindowAdapter(WindowListener downstream) {
+ this.downstream = downstream;
+ }
+
+ public void windowResized(WindowEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.windowResized(e); }
+ }
+ public void windowMoved(WindowEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.windowMoved(e); }
+ }
+ public void windowDestroyNotify(WindowEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.windowDestroyNotify(e); }
+ }
+ public void windowGainedFocus(WindowEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.windowGainedFocus(e); }
+ }
+ public void windowLostFocus(WindowEvent e) {
+ System.out.println(e);
+ if(null!=downstream) { downstream.windowLostFocus(e); }
+ }
+}
diff --git a/src/newt/classes/com/jogamp/newt/event/WindowEvent.java b/src/newt/classes/com/jogamp/newt/event/WindowEvent.java
index 8204bfc79..6706ef778 100644
--- a/src/newt/classes/com/jogamp/newt/event/WindowEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/WindowEvent.java
@@ -35,7 +35,7 @@ package com.jogamp.newt.event;
import com.jogamp.newt.*;
-public class WindowEvent extends Event {
+public class WindowEvent extends NEWTEvent {
public static final int EVENT_WINDOW_RESIZED = 100;
public static final int EVENT_WINDOW_MOVED = 101;
public static final int EVENT_WINDOW_DESTROY_NOTIFY = 102;
diff --git a/src/newt/classes/com/jogamp/newt/event/WindowListener.java b/src/newt/classes/com/jogamp/newt/event/WindowListener.java
index 8c7601a8d..871f0fe12 100644
--- a/src/newt/classes/com/jogamp/newt/event/WindowListener.java
+++ b/src/newt/classes/com/jogamp/newt/event/WindowListener.java
@@ -35,7 +35,7 @@ package com.jogamp.newt.event;
import com.jogamp.newt.*;
-public interface WindowListener extends EventListener {
+public interface WindowListener extends NEWTEventListener {
public void windowResized(WindowEvent e);
public void windowMoved(WindowEvent e);
public void windowDestroyNotify(WindowEvent e);
diff --git a/src/newt/classes/com/jogamp/newt/awt/event/AWTAdapter.java b/src/newt/classes/com/jogamp/newt/event/awt/AWTAdapter.java
index 345eb02b9..6fb02e8e7 100644
--- a/src/newt/classes/com/jogamp/newt/awt/event/AWTAdapter.java
+++ b/src/newt/classes/com/jogamp/newt/event/awt/AWTAdapter.java
@@ -29,7 +29,7 @@
* ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
* SVEN GOTHEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
-package com.jogamp.newt.awt.event;
+package com.jogamp.newt.event.awt;
/**
* Convenient adapter forwarding AWT events to NEWT via the event listener model.<br>
@@ -38,11 +38,11 @@ package com.jogamp.newt.awt.event;
* it is converted to a NEWT event and the given NEWT listener is being called.<br>
*
* This adapter fullfills three use cases. First as a plain utility to write code AWT agnostic,
- * ie write an {@link javax.media.opengl.GLEvenListener} and some appropriate NEWT {@link com.jogamp.newt.event.EventListener}.<br>
+ * ie write an {@link javax.media.opengl.GLEvenListener} and some appropriate NEWT {@link com.jogamp.newt.event.NEWTEventListener}.<br>
*
* Attach the {@link javax.media.opengl.GLEvenListener} to a NEWT {@link javax.media.opengl.GLAutoDrawable}, e.g. {@link com.jogamp.newt.opengl.GLWindow},
* or to an AWT {@link javax.media.opengl.GLAutoDrawable}, e.g. {@link javax.media.opengl.awt.GLCanvas}.<br>
- * Attach the NEWT {@link com.jogamp.newt.event.EventListener} to a NEWT component, e.g. {@link com.jogamp.newt.Window},
+ * Attach the NEWT {@link com.jogamp.newt.event.NEWTEventListener} to a NEWT component, e.g. {@link com.jogamp.newt.Window},
* or to an AWT component, e.g. {@link java.awt.Component}.<br><br>
* <code>
javax.media.opengl.GLEvenListener demo1 = new javax.media.opengl.GLEvenListener() { ... } ;
@@ -93,14 +93,14 @@ package com.jogamp.newt.awt.event;
*/
public abstract class AWTAdapter implements java.util.EventListener
{
- com.jogamp.newt.event.EventListener newtListener;
+ com.jogamp.newt.event.NEWTEventListener newtListener;
com.jogamp.newt.Window newtWindow;
/**
* Simply wrap aroung a NEWT EventListener, exposed as an AWT EventListener.<br>
* The NEWT EventListener will be called when an event happens.<br>
*/
- public AWTAdapter(com.jogamp.newt.event.EventListener newtListener) {
+ public AWTAdapter(com.jogamp.newt.event.NEWTEventListener newtListener) {
if(null==newtListener) {
throw new RuntimeException("Argument newtListener is null");
}
@@ -113,7 +113,7 @@ public abstract class AWTAdapter implements java.util.EventListener
* where the given NEWT Window impersonates as the event's source.
* The NEWT EventListener will be called when an event happens.<br>
*/
- public AWTAdapter(com.jogamp.newt.event.EventListener newtListener, com.jogamp.newt.Window newtProxy) {
+ public AWTAdapter(com.jogamp.newt.event.NEWTEventListener newtListener, com.jogamp.newt.Window newtProxy) {
if(null==newtListener) {
throw new RuntimeException("Argument newtListener is null");
}
@@ -137,14 +137,14 @@ public abstract class AWTAdapter implements java.util.EventListener
}
/**
- * Due to the fact that some NEWT {@link com.jogamp.newt.event.EventListener}
+ * Due to the fact that some NEWT {@link com.jogamp.newt.event.NEWTEventListener}
* are mapped to more than one {@link java.util.EventListener},
* this method is for your convenience to use this Adapter as a listener for all types.<br>
* E.g. {@link com.jogamp.newt.event.MouseListener} is mapped to {@link java.awt.event.MouseListener} and {@link java.awt.event.MouseMotionListener}.
*/
public abstract AWTAdapter addTo(java.awt.Component awtComponent);
- void enqueueEvent(com.jogamp.newt.event.Event event) {
+ void enqueueEvent(com.jogamp.newt.event.NEWTEvent event) {
try {
newtWindow.getScreen().getDisplay().enqueueEvent(event);
} catch (NullPointerException npe) {
diff --git a/src/newt/classes/com/jogamp/newt/awt/event/AWTKeyAdapter.java b/src/newt/classes/com/jogamp/newt/event/awt/AWTKeyAdapter.java
index 866ec5476..64d4d8d86 100644
--- a/src/newt/classes/com/jogamp/newt/awt/event/AWTKeyAdapter.java
+++ b/src/newt/classes/com/jogamp/newt/event/awt/AWTKeyAdapter.java
@@ -29,7 +29,7 @@
* ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
* SVEN GOTHEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
-package com.jogamp.newt.awt.event;
+package com.jogamp.newt.event.awt;
public class AWTKeyAdapter extends AWTAdapter implements java.awt.event.KeyListener
{
diff --git a/src/newt/classes/com/jogamp/newt/awt/event/AWTMouseAdapter.java b/src/newt/classes/com/jogamp/newt/event/awt/AWTMouseAdapter.java
index db28616b9..7efcd123e 100644
--- a/src/newt/classes/com/jogamp/newt/awt/event/AWTMouseAdapter.java
+++ b/src/newt/classes/com/jogamp/newt/event/awt/AWTMouseAdapter.java
@@ -29,7 +29,7 @@
* ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
* SVEN GOTHEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
-package com.jogamp.newt.awt.event;
+package com.jogamp.newt.event.awt;
public class AWTMouseAdapter extends AWTAdapter implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
{
diff --git a/src/newt/classes/com/jogamp/newt/awt/event/AWTNewtEventFactory.java b/src/newt/classes/com/jogamp/newt/event/awt/AWTNewtEventFactory.java
index ea10c9de5..e4e97946a 100644
--- a/src/newt/classes/com/jogamp/newt/awt/event/AWTNewtEventFactory.java
+++ b/src/newt/classes/com/jogamp/newt/event/awt/AWTNewtEventFactory.java
@@ -30,7 +30,7 @@
* ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
* SVEN GOTHEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
-package com.jogamp.newt.awt.event;
+package com.jogamp.newt.event.awt;
import com.jogamp.common.util.IntIntHashMap;
diff --git a/src/newt/classes/com/jogamp/newt/awt/event/AWTWindowAdapter.java b/src/newt/classes/com/jogamp/newt/event/awt/AWTWindowAdapter.java
index d17bac242..2a5312d0b 100644
--- a/src/newt/classes/com/jogamp/newt/awt/event/AWTWindowAdapter.java
+++ b/src/newt/classes/com/jogamp/newt/event/awt/AWTWindowAdapter.java
@@ -29,7 +29,7 @@
* ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
* SVEN GOTHEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
-package com.jogamp.newt.awt.event;
+package com.jogamp.newt.event.awt;
public class AWTWindowAdapter extends AWTAdapter implements java.awt.event.ComponentListener, java.awt.event.WindowListener
{
diff --git a/src/newt/classes/com/jogamp/newt/awt/AWTCanvas.java b/src/newt/classes/com/jogamp/newt/impl/awt/AWTCanvas.java
index f6ea9acc3..8750a8bc1 100644
--- a/src/newt/classes/com/jogamp/newt/awt/AWTCanvas.java
+++ b/src/newt/classes/com/jogamp/newt/impl/awt/AWTCanvas.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.awt;
+package com.jogamp.newt.impl.awt;
import com.jogamp.newt.Window;
diff --git a/src/newt/classes/com/jogamp/newt/awt/AWTDisplay.java b/src/newt/classes/com/jogamp/newt/impl/awt/AWTDisplay.java
index d1fc1bc85..f54e66f07 100644
--- a/src/newt/classes/com/jogamp/newt/awt/AWTDisplay.java
+++ b/src/newt/classes/com/jogamp/newt/impl/awt/AWTDisplay.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.awt;
+package com.jogamp.newt.impl.awt;
import java.awt.event.*;
import com.jogamp.newt.Display;
diff --git a/src/newt/classes/com/jogamp/newt/awt/AWTScreen.java b/src/newt/classes/com/jogamp/newt/impl/awt/AWTScreen.java
index c804bce06..8702686c0 100644
--- a/src/newt/classes/com/jogamp/newt/awt/AWTScreen.java
+++ b/src/newt/classes/com/jogamp/newt/impl/awt/AWTScreen.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.awt;
+package com.jogamp.newt.impl.awt;
import com.jogamp.newt.*;
import java.awt.DisplayMode;
diff --git a/src/newt/classes/com/jogamp/newt/awt/AWTWindow.java b/src/newt/classes/com/jogamp/newt/impl/awt/AWTWindow.java
index daeaa3e4e..bc04f2523 100644
--- a/src/newt/classes/com/jogamp/newt/awt/AWTWindow.java
+++ b/src/newt/classes/com/jogamp/newt/impl/awt/AWTWindow.java
@@ -31,9 +31,9 @@
*
*/
-package com.jogamp.newt.awt;
+package com.jogamp.newt.impl.awt;
-import com.jogamp.newt.awt.event.*;
+import com.jogamp.newt.event.awt.*;
import java.awt.BorderLayout;
import java.awt.Canvas;
diff --git a/src/newt/classes/com/jogamp/newt/intel/gdl/Display.java b/src/newt/classes/com/jogamp/newt/impl/intel/gdl/Display.java
index f79573644..d19aaf796 100644
--- a/src/newt/classes/com/jogamp/newt/intel/gdl/Display.java
+++ b/src/newt/classes/com/jogamp/newt/impl/intel/gdl/Display.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.intel.gdl;
+package com.jogamp.newt.impl.intel.gdl;
import com.jogamp.newt.impl.*;
import javax.media.nativewindow.*;
diff --git a/src/newt/classes/com/jogamp/newt/intel/gdl/Screen.java b/src/newt/classes/com/jogamp/newt/impl/intel/gdl/Screen.java
index 873d1d009..3d9a5a309 100644
--- a/src/newt/classes/com/jogamp/newt/intel/gdl/Screen.java
+++ b/src/newt/classes/com/jogamp/newt/impl/intel/gdl/Screen.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.intel.gdl;
+package com.jogamp.newt.impl.intel.gdl;
import com.jogamp.newt.impl.*;
import javax.media.nativewindow.*;
diff --git a/src/newt/classes/com/jogamp/newt/intel/gdl/Window.java b/src/newt/classes/com/jogamp/newt/impl/intel/gdl/Window.java
index 879fc6134..cb52618b2 100644
--- a/src/newt/classes/com/jogamp/newt/intel/gdl/Window.java
+++ b/src/newt/classes/com/jogamp/newt/impl/intel/gdl/Window.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.intel.gdl;
+package com.jogamp.newt.impl.intel.gdl;
import javax.media.nativewindow.*;
diff --git a/src/newt/classes/com/jogamp/newt/macosx/MacDisplay.java b/src/newt/classes/com/jogamp/newt/impl/macosx/MacDisplay.java
index cf67537ae..68242bba7 100755
--- a/src/newt/classes/com/jogamp/newt/macosx/MacDisplay.java
+++ b/src/newt/classes/com/jogamp/newt/impl/macosx/MacDisplay.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.macosx;
+package com.jogamp.newt.impl.macosx;
import javax.media.nativewindow.*;
import javax.media.nativewindow.macosx.*;
diff --git a/src/newt/classes/com/jogamp/newt/macosx/MacScreen.java b/src/newt/classes/com/jogamp/newt/impl/macosx/MacScreen.java
index 92f8e908c..ce9254857 100755
--- a/src/newt/classes/com/jogamp/newt/macosx/MacScreen.java
+++ b/src/newt/classes/com/jogamp/newt/impl/macosx/MacScreen.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.macosx;
+package com.jogamp.newt.impl.macosx;
import com.jogamp.newt.*;
import javax.media.nativewindow.*;
diff --git a/src/newt/classes/com/jogamp/newt/macosx/MacWindow.java b/src/newt/classes/com/jogamp/newt/impl/macosx/MacWindow.java
index 8762d106c..8fb095661 100755
--- a/src/newt/classes/com/jogamp/newt/macosx/MacWindow.java
+++ b/src/newt/classes/com/jogamp/newt/impl/macosx/MacWindow.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.macosx;
+package com.jogamp.newt.impl.macosx;
import javax.media.nativewindow.*;
diff --git a/src/newt/classes/com/jogamp/newt/opengl/broadcom/egl/Display.java b/src/newt/classes/com/jogamp/newt/impl/opengl/broadcom/egl/Display.java
index 7db5b18dd..c2d323e56 100644
--- a/src/newt/classes/com/jogamp/newt/opengl/broadcom/egl/Display.java
+++ b/src/newt/classes/com/jogamp/newt/impl/opengl/broadcom/egl/Display.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.opengl.broadcom.egl;
+package com.jogamp.newt.impl.opengl.broadcom.egl;
import com.jogamp.newt.impl.*;
import com.jogamp.opengl.impl.egl.*;
diff --git a/src/newt/classes/com/jogamp/newt/opengl/broadcom/egl/Screen.java b/src/newt/classes/com/jogamp/newt/impl/opengl/broadcom/egl/Screen.java
index b4f07599b..e30896468 100755
--- a/src/newt/classes/com/jogamp/newt/opengl/broadcom/egl/Screen.java
+++ b/src/newt/classes/com/jogamp/newt/impl/opengl/broadcom/egl/Screen.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.opengl.broadcom.egl;
+package com.jogamp.newt.impl.opengl.broadcom.egl;
import javax.media.nativewindow.*;
diff --git a/src/newt/classes/com/jogamp/newt/opengl/broadcom/egl/Window.java b/src/newt/classes/com/jogamp/newt/impl/opengl/broadcom/egl/Window.java
index 185dc97b9..9e1ead40e 100755
--- a/src/newt/classes/com/jogamp/newt/opengl/broadcom/egl/Window.java
+++ b/src/newt/classes/com/jogamp/newt/impl/opengl/broadcom/egl/Window.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.opengl.broadcom.egl;
+package com.jogamp.newt.impl.opengl.broadcom.egl;
import com.jogamp.opengl.impl.egl.*;
import javax.media.nativewindow.*;
diff --git a/src/newt/classes/com/jogamp/newt/opengl/kd/KDDisplay.java b/src/newt/classes/com/jogamp/newt/impl/opengl/kd/KDDisplay.java
index 8a8e2a7c3..2ab30773f 100755
--- a/src/newt/classes/com/jogamp/newt/opengl/kd/KDDisplay.java
+++ b/src/newt/classes/com/jogamp/newt/impl/opengl/kd/KDDisplay.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.opengl.kd;
+package com.jogamp.newt.impl.opengl.kd;
import com.jogamp.newt.*;
import com.jogamp.newt.impl.*;
diff --git a/src/newt/classes/com/jogamp/newt/opengl/kd/KDScreen.java b/src/newt/classes/com/jogamp/newt/impl/opengl/kd/KDScreen.java
index cd53c8152..d570d9f5b 100755
--- a/src/newt/classes/com/jogamp/newt/opengl/kd/KDScreen.java
+++ b/src/newt/classes/com/jogamp/newt/impl/opengl/kd/KDScreen.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.opengl.kd;
+package com.jogamp.newt.impl.opengl.kd;
import com.jogamp.newt.*;
import javax.media.nativewindow.*;
diff --git a/src/newt/classes/com/jogamp/newt/opengl/kd/KDWindow.java b/src/newt/classes/com/jogamp/newt/impl/opengl/kd/KDWindow.java
index c8bed8a68..5f1068cad 100755
--- a/src/newt/classes/com/jogamp/newt/opengl/kd/KDWindow.java
+++ b/src/newt/classes/com/jogamp/newt/impl/opengl/kd/KDWindow.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.opengl.kd;
+package com.jogamp.newt.impl.opengl.kd;
import com.jogamp.newt.*;
import com.jogamp.newt.event.*;
diff --git a/src/newt/classes/com/jogamp/newt/windows/WindowsDisplay.java b/src/newt/classes/com/jogamp/newt/impl/windows/WindowsDisplay.java
index 678777e81..000e64b6d 100755
--- a/src/newt/classes/com/jogamp/newt/windows/WindowsDisplay.java
+++ b/src/newt/classes/com/jogamp/newt/impl/windows/WindowsDisplay.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.windows;
+package com.jogamp.newt.impl.windows;
import javax.media.nativewindow.*;
import javax.media.nativewindow.windows.*;
diff --git a/src/newt/classes/com/jogamp/newt/windows/WindowsScreen.java b/src/newt/classes/com/jogamp/newt/impl/windows/WindowsScreen.java
index aea3cd439..b0161cfc2 100755
--- a/src/newt/classes/com/jogamp/newt/windows/WindowsScreen.java
+++ b/src/newt/classes/com/jogamp/newt/impl/windows/WindowsScreen.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.windows;
+package com.jogamp.newt.impl.windows;
import com.jogamp.newt.*;
import javax.media.nativewindow.*;
diff --git a/src/newt/classes/com/jogamp/newt/windows/WindowsWindow.java b/src/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java
index db1ae4718..dc870f43d 100755
--- a/src/newt/classes/com/jogamp/newt/windows/WindowsWindow.java
+++ b/src/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.windows;
+package com.jogamp.newt.impl.windows;
import javax.media.nativewindow.*;
import com.jogamp.newt.*;
diff --git a/src/newt/classes/com/jogamp/newt/x11/X11Display.java b/src/newt/classes/com/jogamp/newt/impl/x11/X11Display.java
index 70e002e9e..94d568f55 100755
--- a/src/newt/classes/com/jogamp/newt/x11/X11Display.java
+++ b/src/newt/classes/com/jogamp/newt/impl/x11/X11Display.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.x11;
+package com.jogamp.newt.impl.x11;
import javax.media.nativewindow.*;
import javax.media.nativewindow.x11.*;
diff --git a/src/newt/classes/com/jogamp/newt/x11/X11Screen.java b/src/newt/classes/com/jogamp/newt/impl/x11/X11Screen.java
index e053d99c0..3561bec2a 100755
--- a/src/newt/classes/com/jogamp/newt/x11/X11Screen.java
+++ b/src/newt/classes/com/jogamp/newt/impl/x11/X11Screen.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.x11;
+package com.jogamp.newt.impl.x11;
import com.jogamp.newt.*;
import javax.media.nativewindow.x11.*;
diff --git a/src/newt/classes/com/jogamp/newt/x11/X11Window.java b/src/newt/classes/com/jogamp/newt/impl/x11/X11Window.java
index 59ecc3bab..c7401ef23 100755
--- a/src/newt/classes/com/jogamp/newt/x11/X11Window.java
+++ b/src/newt/classes/com/jogamp/newt/impl/x11/X11Window.java
@@ -31,7 +31,7 @@
*
*/
-package com.jogamp.newt.x11;
+package com.jogamp.newt.impl.x11;
import com.jogamp.newt.*;
import com.jogamp.newt.event.*;
diff --git a/src/newt/classes/com/jogamp/newt/util/MainThread.java b/src/newt/classes/com/jogamp/newt/util/MainThread.java
index daa09edce..cfe1876b5 100644
--- a/src/newt/classes/com/jogamp/newt/util/MainThread.java
+++ b/src/newt/classes/com/jogamp/newt/util/MainThread.java
@@ -46,7 +46,7 @@ import javax.media.nativewindow.*;
import com.jogamp.common.util.*;
import com.jogamp.newt.*;
import com.jogamp.newt.impl.*;
-import com.jogamp.newt.macosx.MacDisplay;
+import com.jogamp.newt.impl.macosx.MacDisplay;
/**
* NEWT Utility class MainThread<P>
diff --git a/src/newt/native/BroadcomEGL.c b/src/newt/native/BroadcomEGL.c
index 9aac90abb..7bb21cd3b 100755
--- a/src/newt/native/BroadcomEGL.c
+++ b/src/newt/native/BroadcomEGL.c
@@ -41,7 +41,7 @@
#include <stdio.h>
#include <string.h>
-#include "com_jogamp_newt_opengl_broadcom_egl_Window.h"
+#include "com_jogamp_newt_impl_opengl_broadcom_egl_Window.h"
#include "EventListener.h"
#include "MouseEvent.h"
@@ -72,7 +72,7 @@ static jmethodID windowCreatedID = NULL;
* Display
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Display_DispatchMessages
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_opengl_broadcom_egl_Display_DispatchMessages
(JNIEnv *env, jobject obj)
{
// FIXME: n/a
@@ -80,7 +80,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Display_Dispatch
(void) obj;
}
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Display_CreateDisplay
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_opengl_broadcom_egl_Display_CreateDisplay
(JNIEnv *env, jobject obj, jint width, jint height)
{
(void) env;
@@ -94,7 +94,7 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Display_CreateD
return (jlong) (intptr_t) dpy;
}
-JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Display_DestroyDisplay
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_opengl_broadcom_egl_Display_DestroyDisplay
(JNIEnv *env, jobject obj, jlong display)
{
EGLDisplay dpy = (EGLDisplay)(intptr_t)display;
@@ -111,7 +111,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Display_DestroyD
* Window
*/
-JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Window_initIDs
+JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_impl_opengl_broadcom_egl_Window_initIDs
(JNIEnv *env, jclass clazz)
{
windowCreatedID = (*env)->GetMethodID(env, clazz, "windowCreated", "(III)V");
@@ -123,7 +123,7 @@ JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Window_initI
return JNI_TRUE;
}
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Window_CreateWindow
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_opengl_broadcom_egl_Window_CreateWindow
(JNIEnv *env, jobject obj, jlong display, jboolean chromaKey, jint width, jint height)
{
EGLDisplay dpy = (EGLDisplay)(intptr_t)display;
@@ -167,7 +167,7 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Window_CreateWi
return (jlong) (intptr_t) window;
}
-JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Window_CloseWindow
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_opengl_broadcom_egl_Window_CloseWindow
(JNIEnv *env, jobject obj, jlong display, jlong window)
{
EGLDisplay dpy = (EGLDisplay) (intptr_t) display;
@@ -180,7 +180,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Window_CloseWind
DBG_PRINT( "[CloseWindow] X\n");
}
-JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_broadcom_egl_Window_SwapWindow
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_opengl_broadcom_egl_Window_SwapWindow
(JNIEnv *env, jobject obj, jlong display, jlong window)
{
EGLDisplay dpy = (EGLDisplay) (intptr_t) display;
diff --git a/src/newt/native/IntelGDL.c b/src/newt/native/IntelGDL.c
index 7857b594f..8a4d7172c 100644
--- a/src/newt/native/IntelGDL.c
+++ b/src/newt/native/IntelGDL.c
@@ -37,9 +37,9 @@
#include <stdio.h>
#include <string.h>
-#include "com_jogamp_newt_intel_gdl_Display.h"
-#include "com_jogamp_newt_intel_gdl_Screen.h"
-#include "com_jogamp_newt_intel_gdl_Window.h"
+#include "com_jogamp_newt_impl_intel_gdl_Display.h"
+#include "com_jogamp_newt_impl_intel_gdl_Screen.h"
+#include "com_jogamp_newt_impl_intel_gdl_Window.h"
#include "EventListener.h"
#include "MouseEvent.h"
@@ -123,7 +123,7 @@ static void JNI_ThrowNew(JNIEnv *env, const char *throwable, const char* message
* Display
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_intel_gdl_Display_DispatchMessages
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_intel_gdl_Display_DispatchMessages
(JNIEnv *env, jobject obj, jlong displayHandle, jobject focusedWindow)
{
// FIXME: n/a
@@ -138,7 +138,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_intel_gdl_Display_DispatchMessages
} */
}
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_intel_gdl_Display_CreateDisplay
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_intel_gdl_Display_CreateDisplay
(JNIEnv *env, jobject obj)
{
gdl_ret_t retval;
@@ -171,7 +171,7 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_intel_gdl_Display_CreateDisplay
return (jlong) (intptr_t) p_driver_info;
}
-JNIEXPORT void JNICALL Java_com_jogamp_newt_intel_gdl_Display_DestroyDisplay
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_intel_gdl_Display_DestroyDisplay
(JNIEnv *env, jobject obj, jlong displayHandle)
{
gdl_driver_info_t * p_driver_info = (gdl_driver_info_t *) (intptr_t) displayHandle;
@@ -190,7 +190,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_intel_gdl_Display_DestroyDisplay
* Screen
*/
-JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_intel_gdl_Screen_initIDs
+JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_impl_intel_gdl_Screen_initIDs
(JNIEnv *env, jclass clazz)
{
screenCreatedID = (*env)->GetMethodID(env, clazz, "screenCreated", "(II)V");
@@ -202,7 +202,7 @@ JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_intel_gdl_Screen_initIDs
return JNI_TRUE;
}
-JNIEXPORT void JNICALL Java_com_jogamp_newt_intel_gdl_Screen_GetScreenInfo
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_intel_gdl_Screen_GetScreenInfo
(JNIEnv *env, jobject obj, jlong displayHandle, jint idx)
{
gdl_driver_info_t * p_driver_info = (gdl_driver_info_t *) (intptr_t) displayHandle;
@@ -234,7 +234,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_intel_gdl_Screen_GetScreenInfo
* Window
*/
-JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_intel_gdl_Window_initIDs
+JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_impl_intel_gdl_Window_initIDs
(JNIEnv *env, jclass clazz)
{
updateBoundsID = (*env)->GetMethodID(env, clazz, "updateBounds", "(IIII)V");
@@ -246,7 +246,7 @@ JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_intel_gdl_Window_initIDs
return JNI_TRUE;
}
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_intel_gdl_Window_CreateSurface
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_intel_gdl_Window_CreateSurface
(JNIEnv *env, jobject obj, jlong displayHandle, jint scr_width, jint scr_height, jint x, jint y, jint width, jint height) {
gdl_driver_info_t * p_driver_info = (gdl_driver_info_t *) (intptr_t) displayHandle;
@@ -339,7 +339,7 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_intel_gdl_Window_CreateSurface
return (jlong) (intptr_t) plane;
}
-JNIEXPORT void JNICALL Java_com_jogamp_newt_intel_gdl_Window_CloseSurface
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_intel_gdl_Window_CloseSurface
(JNIEnv *env, jobject obj, jlong display, jlong surface)
{
gdl_plane_id_t plane = (gdl_plane_id_t) (intptr_t) surface ;
@@ -348,7 +348,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_intel_gdl_Window_CloseSurface
DBG_PRINT("[CloseSurface] plane %d\n", plane);
}
-JNIEXPORT void JNICALL Java_com_jogamp_newt_intel_gdl_Window_SetBounds0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_intel_gdl_Window_SetBounds0
(JNIEnv *env, jobject obj, jlong surface, jint scr_width, jint scr_height, jint x, jint y, jint width, jint height) {
gdl_plane_id_t plane = (gdl_plane_id_t) (intptr_t) surface ;
diff --git a/src/newt/native/KDWindow.c b/src/newt/native/KDWindow.c
index 15bef7582..648a5cf2f 100755
--- a/src/newt/native/KDWindow.c
+++ b/src/newt/native/KDWindow.c
@@ -64,7 +64,7 @@
#include <KD/kd.h>
#include <KD/NV_extwindowprops.h>
-#include "com_jogamp_newt_opengl_kd_KDWindow.h"
+#include "com_jogamp_newt_impl_opengl_kd_KDWindow.h"
#include "EventListener.h"
#include "MouseEvent.h"
@@ -103,7 +103,7 @@ static jmethodID sendKeyEventID = NULL;
* Display
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_kd_KDDisplay_DispatchMessages
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_opengl_kd_KDDisplay_DispatchMessages
(JNIEnv *env, jobject obj)
{
const KDEvent * evt;
@@ -200,7 +200,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_kd_KDDisplay_DispatchMessages
* Window
*/
-JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_initIDs
+JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_impl_opengl_kd_KDWindow_initIDs
(JNIEnv *env, jclass clazz)
{
#ifdef VERBOSE_ON
@@ -228,7 +228,7 @@ JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_initIDs
return JNI_TRUE;
}
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_CreateWindow
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_opengl_kd_KDWindow_CreateWindow
(JNIEnv *env, jobject obj, jlong display, jintArray jAttrs)
{
jint * attrs = NULL;
@@ -270,7 +270,7 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_CreateWindow
return (jlong) (intptr_t) window;
}
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_RealizeWindow
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_opengl_kd_KDWindow_RealizeWindow
(JNIEnv *env, jobject obj, jlong window)
{
KDWindow *w = (KDWindow*) (intptr_t) window;
@@ -285,7 +285,7 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_RealizeWindow
return (jlong) (intptr_t) nativeWindow;
}
-JNIEXPORT jint JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_CloseWindow
+JNIEXPORT jint JNICALL Java_com_jogamp_newt_impl_opengl_kd_KDWindow_CloseWindow
(JNIEnv *env, jobject obj, jlong window, jlong juserData)
{
KDWindow *w = (KDWindow*) (intptr_t) window;
@@ -299,11 +299,11 @@ JNIEXPORT jint JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_CloseWindow
}
/*
- * Class: com_jogamp_newt_opengl_kd_KDWindow
+ * Class: com_jogamp_newt_impl_opengl_kd_KDWindow
* Method: setVisible0
* Signature: (JJZ)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_setVisible0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_opengl_kd_KDWindow_setVisible0
(JNIEnv *env, jobject obj, jlong window, jboolean visible)
{
KDWindow *w = (KDWindow*) (intptr_t) window;
@@ -312,7 +312,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_setVisible0
DBG_PRINT( "[setVisible] v=%d\n", visible);
}
-JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_setFullScreen0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_opengl_kd_KDWindow_setFullScreen0
(JNIEnv *env, jobject obj, jlong window, jboolean fullscreen)
{
KDWindow *w = (KDWindow*) (intptr_t) window;
@@ -323,7 +323,7 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_setFullScreen0
(void)res;
}
-JNIEXPORT void JNICALL Java_com_jogamp_newt_opengl_kd_KDWindow_setSize0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_opengl_kd_KDWindow_setSize0
(JNIEnv *env, jobject obj, jlong window, jint width, jint height)
{
KDWindow *w = (KDWindow*) (intptr_t) window;
diff --git a/src/newt/native/MacWindow.m b/src/newt/native/MacWindow.m
index f0ebfc0a0..a4a5da7fc 100644
--- a/src/newt/native/MacWindow.m
+++ b/src/newt/native/MacWindow.m
@@ -33,7 +33,7 @@
#import <inttypes.h>
-#import "com_jogamp_newt_macosx_MacWindow.h"
+#import "com_jogamp_newt_impl_macosx_MacWindow.h"
#import "NewtMacWindow.h"
#import "EventListener.h"
@@ -121,11 +121,11 @@ NS_ENDHANDLER
}
/*
- * Class: com_jogamp_newt_macosx_MacDisplay
+ * Class: com_jogamp_newt_impl_macosx_MacDisplay
* Method: initIDs
* Signature: ()Z
*/
-JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_macosx_MacDisplay_initNSApplication
+JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_impl_macosx_MacDisplay_initNSApplication
(JNIEnv *env, jclass clazz)
{
static int initialized = 0;
@@ -155,11 +155,11 @@ JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_macosx_MacDisplay_initNSApplicat
}
/*
- * Class: com_jogamp_newt_macosx_MacDisplay
+ * Class: com_jogamp_newt_impl_macosx_MacDisplay
* Method: dispatchMessages0
* Signature: ()V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacDisplay_dispatchMessages0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_macosx_MacDisplay_dispatchMessages0
(JNIEnv *env, jobject unused, jlong window, jint eventMask)
{
NSEvent* event = NULL;
@@ -195,11 +195,11 @@ NS_ENDHANDLER
}
/*
- * Class: com_jogamp_newt_macosx_MacScreen
+ * Class: com_jogamp_newt_impl_macosx_MacScreen
* Method: getWidthImpl
* Signature: (I)I
*/
-JNIEXPORT jint JNICALL Java_com_jogamp_newt_macosx_MacScreen_getWidthImpl
+JNIEXPORT jint JNICALL Java_com_jogamp_newt_impl_macosx_MacScreen_getWidthImpl
(JNIEnv *env, jclass clazz, jint screen_idx)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -216,11 +216,11 @@ JNIEXPORT jint JNICALL Java_com_jogamp_newt_macosx_MacScreen_getWidthImpl
}
/*
- * Class: com_jogamp_newt_macosx_MacScreen
+ * Class: com_jogamp_newt_impl_macosx_MacScreen
* Method: getHeightImpl
* Signature: (I)I
*/
-JNIEXPORT jint JNICALL Java_com_jogamp_newt_macosx_MacScreen_getHeightImpl
+JNIEXPORT jint JNICALL Java_com_jogamp_newt_impl_macosx_MacScreen_getHeightImpl
(JNIEnv *env, jclass clazz, jint screen_idx)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -237,11 +237,11 @@ JNIEXPORT jint JNICALL Java_com_jogamp_newt_macosx_MacScreen_getHeightImpl
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: initIDs
* Signature: ()Z
*/
-JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_macosx_MacWindow_initIDs
+JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_initIDs
(JNIEnv *env, jclass clazz)
{
static int initialized = 0;
@@ -258,11 +258,11 @@ JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_macosx_MacWindow_initIDs
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: createWindow0
* Signature: (JIIIIZIIIJ)J
*/
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_macosx_MacWindow_createWindow0
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_createWindow0
(JNIEnv *env, jobject jthis, jlong parent, jint x, jint y, jint w, jint h, jboolean fullscreen, jint styleMask,
jint bufferingType, jint screen_idx, jlong jview)
{
@@ -334,11 +334,11 @@ NS_ENDHANDLER
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: makeKeyAndOrderFront
* Signature: (J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_makeKeyAndOrderFront
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_makeKeyAndOrderFront
(JNIEnv *env, jobject unused, jlong window)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -348,11 +348,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_makeKeyAndOrderFron
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: makeKey
* Signature: (J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_makeKey
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_makeKey
(JNIEnv *env, jobject unused, jlong window)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -362,11 +362,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_makeKey
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: orderOut
* Signature: (J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_orderOut
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_orderOut
(JNIEnv *env, jobject unused, jlong window)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -376,11 +376,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_orderOut
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: close0
* Signature: (J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_close0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_close0
(JNIEnv *env, jobject unused, jlong window)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -401,11 +401,11 @@ NS_ENDHANDLER
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: setTitle0
* Signature: (JLjava/lang/String;)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_setTitle0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_setTitle0
(JNIEnv *env, jobject unused, jlong window, jstring title)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -417,11 +417,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_setTitle0
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: contentView
* Signature: (J)J
*/
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_macosx_MacWindow_contentView
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_contentView
(JNIEnv *env, jobject unused, jlong window)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -432,11 +432,11 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_macosx_MacWindow_contentView
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: changeContentView
* Signature: (J)J
*/
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_macosx_MacWindow_changeContentView
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_changeContentView
(JNIEnv *env, jobject jthis, jlong parent, jlong window, jlong jview)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -452,11 +452,11 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_macosx_MacWindow_changeContentView
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: setContentSize
* Signature: (JII)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_setContentSize
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_setContentSize
(JNIEnv *env, jobject unused, jlong window, jint w, jint h)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
@@ -467,11 +467,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_setContentSize
}
/*
- * Class: com_jogamp_newt_macosx_MacWindow
+ * Class: com_jogamp_newt_impl_macosx_MacWindow
* Method: setFrameTopLeftPoint
* Signature: (JII)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_macosx_MacWindow_setFrameTopLeftPoint
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_macosx_MacWindow_setFrameTopLeftPoint
(JNIEnv *env, jobject unused, jlong parent, jlong window, jint x, jint y)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c
index 67da99b1f..82eb81d99 100755
--- a/src/newt/native/WindowsWindow.c
+++ b/src/newt/native/WindowsWindow.c
@@ -89,7 +89,7 @@
#define MONITOR_DEFAULTTONEAREST 2
#endif
-#include "com_jogamp_newt_windows_WindowsWindow.h"
+#include "com_jogamp_newt_impl_windows_WindowsWindow.h"
#include "EventListener.h"
#include "MouseEvent.h"
@@ -902,11 +902,11 @@ static LRESULT CALLBACK wndProc(HWND wnd, UINT message,
}
/*
- * Class: com_jogamp_newt_windows_WindowsDisplay
+ * Class: com_jogamp_newt_impl_windows_WindowsDisplay
* Method: DispatchMessages
* Signature: ()V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsDisplay_DispatchMessages
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsDisplay_DispatchMessages
(JNIEnv *env, jclass clazz)
{
int i = 0;
@@ -925,11 +925,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsDisplay_DispatchMessa
}
/*
- * Class: com_jogamp_newt_windows_WindowsDisplay
+ * Class: com_jogamp_newt_impl_windows_WindowsDisplay
* Method: LoadLibraryW
* Signature: (Ljava/lang/String;)J
*/
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_windows_WindowsDisplay_LoadLibraryW
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_windows_WindowsDisplay_LoadLibraryW
(JNIEnv *env, jclass clazz, jstring dllName)
{
jchar* _dllName = GetNullTerminatedStringChars(env, dllName);
@@ -939,11 +939,11 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_windows_WindowsDisplay_LoadLibraryW
}
/*
- * Class: com_jogamp_newt_windows_WindowsDisplay
+ * Class: com_jogamp_newt_impl_windows_WindowsDisplay
* Method: RegisterWindowClass
* Signature: (Ljava/lang/String;J)I
*/
-JNIEXPORT jint JNICALL Java_com_jogamp_newt_windows_WindowsDisplay_RegisterWindowClass
+JNIEXPORT jint JNICALL Java_com_jogamp_newt_impl_windows_WindowsDisplay_RegisterWindowClass
(JNIEnv *env, jclass clazz, jstring wndClassName, jlong hInstance)
{
ATOM res;
@@ -979,44 +979,44 @@ JNIEXPORT jint JNICALL Java_com_jogamp_newt_windows_WindowsDisplay_RegisterWindo
}
/*
- * Class: com_jogamp_newt_windows_WindowsDisplay
+ * Class: com_jogamp_newt_impl_windows_WindowsDisplay
* Method: CleanupWindowResources
* Signature: (java/lang/String;J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsDisplay_UnregisterWindowClass
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsDisplay_UnregisterWindowClass
(JNIEnv *env, jclass clazz, jint wndClassAtom, jlong hInstance)
{
UnregisterClass(MAKEINTATOM(wndClassAtom), (HINSTANCE) (intptr_t) hInstance);
}
/*
- * Class: com_jogamp_newt_windows_WindowsScreen
+ * Class: com_jogamp_newt_impl_windows_WindowsScreen
* Method: getWidthImpl
* Signature: (I)I
*/
-JNIEXPORT jint JNICALL Java_com_jogamp_newt_windows_WindowsScreen_getWidthImpl
+JNIEXPORT jint JNICALL Java_com_jogamp_newt_impl_windows_WindowsScreen_getWidthImpl
(JNIEnv *env, jobject obj, jint scrn_idx)
{
return (jint)GetSystemMetrics(SM_CXSCREEN);
}
/*
- * Class: com_jogamp_newt_windows_WindowsScreen
+ * Class: com_jogamp_newt_impl_windows_WindowsScreen
* Method: getWidthImpl
* Signature: (I)I
*/
-JNIEXPORT jint JNICALL Java_com_jogamp_newt_windows_WindowsScreen_getHeightImpl
+JNIEXPORT jint JNICALL Java_com_jogamp_newt_impl_windows_WindowsScreen_getHeightImpl
(JNIEnv *env, jobject obj, jint scrn_idx)
{
return (jint)GetSystemMetrics(SM_CYSCREEN);
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: initIDs
* Signature: ()Z
*/
-JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_windows_WindowsWindow_initIDs
+JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_initIDs
(JNIEnv *env, jclass clazz)
{
sizeChangedID = (*env)->GetMethodID(env, clazz, "sizeChanged", "(II)V");
@@ -1045,11 +1045,11 @@ JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_windows_WindowsWindow_initIDs
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: CreateWindow
* Signature: (JILjava/lang/String;JJZIIII)J
*/
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_windows_WindowsWindow_CreateWindow
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_CreateWindow
(JNIEnv *env, jobject obj, jlong parent, jint wndClassAtom, jstring jWndName, jlong hInstance, jlong visualID,
jboolean bIsUndecorated,
jint jx, jint jy, jint defaultWidth, jint defaultHeight)
@@ -1113,44 +1113,44 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_windows_WindowsWindow_CreateWindow
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: DestroyWindow
* Signature: (J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_DestroyWindow
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_DestroyWindow
(JNIEnv *env, jobject obj, jlong window)
{
DestroyWindow((HWND) (intptr_t) window);
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: GetDC
* Signature: (J)J
*/
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_windows_WindowsWindow_GetDC
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_GetDC
(JNIEnv *env, jobject obj, jlong window)
{
return (jlong) (intptr_t) GetDC((HWND) (intptr_t) window);
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: ReleaseDC
* Signature: (JJ)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_ReleaseDC
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_ReleaseDC
(JNIEnv *env, jobject obj, jlong window, jlong dc)
{
ReleaseDC((HWND) (intptr_t) window, (HDC) (intptr_t) dc);
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: MonitorFromWindow
* Signature: (J)J
*/
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_windows_WindowsWindow_MonitorFromWindow
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_MonitorFromWindow
(JNIEnv *env, jobject obj, jlong window)
{
#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410 || WINVER >= 0x0500) && !defined(_WIN32_WCE)
@@ -1161,11 +1161,11 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_windows_WindowsWindow_MonitorFromWi
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: setVisible0
* Signature: (JZ)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setVisible0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_setVisible0
(JNIEnv *_env, jclass clazz, jlong window, jboolean visible)
{
HWND hWnd = (HWND) (intptr_t) window;
@@ -1178,11 +1178,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setVisible0
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: setSize0
* Signature: (JII)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setSize0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_setSize0
(JNIEnv *env, jobject obj, jlong parent, jlong window, jint x, jint y, jint width, jint height)
{
HWND hwndP = (HWND) (intptr_t) parent;
@@ -1215,11 +1215,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setSize0
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: setPosition
* Signature: (JII)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setPosition
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_setPosition
(JNIEnv *env, jobject obj, jlong parent, jlong window, jint x, jint y)
{
UINT flags = SWP_NOACTIVATE | SWP_NOSIZE;
@@ -1236,11 +1236,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setPosition
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: setFullscreen
* Signature: (JIIIIZZ)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setFullscreen0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_setFullscreen0
(JNIEnv *env, jobject obj, jlong parent, jlong window, jint x, jint y, jint width, jint height, jboolean bIsUndecorated, jboolean on)
{
UINT flags;
@@ -1272,11 +1272,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setFullscreen0
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: setTitle
* Signature: (JLjava/lang/String;)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setTitle
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_setTitle
(JNIEnv *env, jclass clazz, jlong window, jstring title)
{
HWND hwnd = (HWND) (intptr_t) window;
@@ -1290,11 +1290,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_setTitle
}
/*
- * Class: com_jogamp_newt_windows_WindowsWindow
+ * Class: com_jogamp_newt_impl_windows_WindowsWindow
* Method: requestFocus
* Signature: (J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_windows_WindowsWindow_requestFocus
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_windows_WindowsWindow_requestFocus
(JNIEnv *env, jclass clazz, jlong window)
{
HWND hwnd = (HWND) (intptr_t) window;
diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c
index 27ca8e6a0..8d5920f65 100755
--- a/src/newt/native/X11Window.c
+++ b/src/newt/native/X11Window.c
@@ -46,7 +46,7 @@
#include <X11/Xutil.h>
#include <X11/keysym.h>
-#include "com_jogamp_newt_x11_X11Window.h"
+#include "com_jogamp_newt_impl_x11_X11Window.h"
#include "EventListener.h"
#include "MouseEvent.h"
@@ -233,11 +233,11 @@ static void displayDispatchErrorHandlerEnable(int onoff, JNIEnv * env) {
}
/*
- * Class: com_jogamp_newt_x11_X11Display
+ * Class: com_jogamp_newt_impl_x11_X11Display
* Method: initIDs
* Signature: ()Z
*/
-JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_x11_X11Display_initIDs
+JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_impl_x11_X11Display_initIDs
(JNIEnv *env, jclass clazz)
{
jclass c;
@@ -279,11 +279,11 @@ JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_x11_X11Display_initIDs
}
/*
- * Class: com_jogamp_newt_x11_X11Display
+ * Class: com_jogamp_newt_impl_x11_X11Display
* Method: LockDisplay
* Signature: (J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Display_LockDisplay
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_x11_X11Display_LockDisplay
(JNIEnv *env, jobject obj, jlong display)
{
Display * dpy = (Display *)(intptr_t)display;
@@ -296,11 +296,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Display_LockDisplay
/*
- * Class: com_jogamp_newt_x11_X11Display
+ * Class: com_jogamp_newt_impl_x11_X11Display
* Method: UnlockDisplay
* Signature: (J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Display_UnlockDisplay
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_x11_X11Display_UnlockDisplay
(JNIEnv *env, jobject obj, jlong display)
{
Display * dpy = (Display *)(intptr_t)display;
@@ -313,11 +313,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Display_UnlockDisplay
/*
- * Class: com_jogamp_newt_x11_X11Display
+ * Class: com_jogamp_newt_impl_x11_X11Display
* Method: CompleteDisplay
* Signature: (J)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Display_CompleteDisplay
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_x11_X11Display_CompleteDisplay
(JNIEnv *env, jobject obj, jlong display)
{
Display * dpy = (Display *)(intptr_t)display;
@@ -423,11 +423,11 @@ static jobject getJavaWindowProperty(JNIEnv *env, Display *dpy, Window window, j
}
/*
- * Class: com_jogamp_newt_x11_X11Display
+ * Class: com_jogamp_newt_impl_x11_X11Display
* Method: DispatchMessages
* Signature: (JIJJ)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Display_DispatchMessages
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_x11_X11Display_DispatchMessages
(JNIEnv *env, jobject obj, jlong display, jlong javaObjectAtom, jlong wmDeleteAtom)
{
Display * dpy = (Display *) (intptr_t) display;
@@ -584,11 +584,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Display_DispatchMessages
*/
/*
- * Class: com_jogamp_newt_x11_X11Screen
+ * Class: com_jogamp_newt_impl_x11_X11Screen
* Method: GetScreen
* Signature: (JI)J
*/
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_x11_X11Screen_GetScreen
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_x11_X11Screen_GetScreen
(JNIEnv *env, jobject obj, jlong display, jint screen_index)
{
Display * dpy = (Display *)(intptr_t)display;
@@ -610,14 +610,14 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_x11_X11Screen_GetScreen
return (jlong) (intptr_t) scrn;
}
-JNIEXPORT jint JNICALL Java_com_jogamp_newt_x11_X11Screen_getWidth0
+JNIEXPORT jint JNICALL Java_com_jogamp_newt_impl_x11_X11Screen_getWidth0
(JNIEnv *env, jobject obj, jlong display, jint scrn_idx)
{
Display * dpy = (Display *) (intptr_t) display;
return (jint) XDisplayWidth( dpy, scrn_idx);
}
-JNIEXPORT jint JNICALL Java_com_jogamp_newt_x11_X11Screen_getHeight0
+JNIEXPORT jint JNICALL Java_com_jogamp_newt_impl_x11_X11Screen_getHeight0
(JNIEnv *env, jobject obj, jlong display, jint scrn_idx)
{
Display * dpy = (Display *) (intptr_t) display;
@@ -630,11 +630,11 @@ JNIEXPORT jint JNICALL Java_com_jogamp_newt_x11_X11Screen_getHeight0
*/
/*
- * Class: com_jogamp_newt_x11_X11Window
+ * Class: com_jogamp_newt_impl_x11_X11Window
* Method: initIDs
* Signature: ()Z
*/
-JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_x11_X11Window_initIDs
+JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_impl_x11_X11Window_initIDs
(JNIEnv *env, jclass clazz)
{
windowChangedID = (*env)->GetMethodID(env, clazz, "windowChanged", "(IIII)V");
@@ -656,11 +656,11 @@ JNIEXPORT jboolean JNICALL Java_com_jogamp_newt_x11_X11Window_initIDs
}
/*
- * Class: com_jogamp_newt_x11_X11Window
+ * Class: com_jogamp_newt_impl_x11_X11Window
* Method: CreateWindow
* Signature: (JJIJIIII)J
*/
-JNIEXPORT jlong JNICALL Java_com_jogamp_newt_x11_X11Window_CreateWindow
+JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_x11_X11Window_CreateWindow
(JNIEnv *env, jobject obj, jlong parent, jlong display, jint screen_index,
jlong visualID,
jlong javaObjectAtom, jlong windowDeleteAtom,
@@ -784,11 +784,11 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_x11_X11Window_CreateWindow
}
/*
- * Class: com_jogamp_newt_x11_X11Window
+ * Class: com_jogamp_newt_impl_x11_X11Window
* Method: CloseWindow
* Signature: (JJ)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Window_CloseWindow
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_x11_X11Window_CloseWindow
(JNIEnv *env, jobject obj, jlong display, jlong window, jlong javaObjectAtom)
{
Display * dpy = (Display *) (intptr_t) display;
@@ -828,11 +828,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Window_CloseWindow
}
/*
- * Class: com_jogamp_newt_x11_X11Window
+ * Class: com_jogamp_newt_impl_x11_X11Window
* Method: setVisible0
* Signature: (JJZ)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Window_setVisible0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_x11_X11Window_setVisible0
(JNIEnv *env, jobject obj, jlong display, jlong window, jboolean visible)
{
Display * dpy = (Display *) (intptr_t) display;
@@ -871,11 +871,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Window_setVisible0
#endif
/*
- * Class: com_jogamp_newt_x11_X11Window
+ * Class: com_jogamp_newt_impl_x11_X11Window
* Method: setSize0
* Signature: (JIJIIIIIZ)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Window_setSize0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_x11_X11Window_setSize0
(JNIEnv *env, jobject obj, jlong jparent, jlong display, jint screen_index, jlong window, jint x, jint y, jint width, jint height, jint decorationToggle, jboolean setVisible)
{
Display * dpy = (Display *) (intptr_t) display;
@@ -934,11 +934,11 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Window_setSize0
}
/*
- * Class: com_jogamp_newt_x11_X11Window
+ * Class: com_jogamp_newt_impl_x11_X11Window
* Method: setPosition0
* Signature: (JJII)V
*/
-JNIEXPORT void JNICALL Java_com_jogamp_newt_x11_X11Window_setPosition0
+JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_x11_X11Window_setPosition0
(JNIEnv *env, jobject obj, jlong display, jlong window, jint x, jint y)
{
Display * dpy = (Display *) (intptr_t) display;