Package playn.java
Class SWTPlatform
java.lang.Object
playn.core.Platform
playn.java.JavaPlatform
playn.java.SWTPlatform
Implements the PlayN platform for Java, based on LWJGL and SWT.
-
Nested Class Summary
Nested classes/interfaces inherited from class playn.java.JavaPlatform
JavaPlatform.Config, JavaPlatform.HeadlessNested classes/interfaces inherited from class playn.core.Platform
playn.core.Platform.Error, playn.core.Platform.Lifecycle, playn.core.Platform.Type -
Field Summary
Fields inherited from class playn.core.Platform
errors, frame, lifecycle -
Constructor Summary
ConstructorsConstructorDescriptionSWTPlatform(JavaPlatform.Config config) Creates a new SWT platform and prepares it for operation. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.CompositeReturns the SWT composite that hosts the game view.org.eclipse.swt.widgets.Displaydisplay()Returns the SWT display on which the game is running.graphics()input()org.eclipse.swt.widgets.Shellshell()Returns the SWT shell in which the game is running.Methods inherited from class playn.java.JavaPlatform
assets, audio, exec, json, log, net, openURL, setTitle, start, storage, tick, time, typeMethods inherited from class playn.core.Platform
dispatchEvent, invokeAsync, invokeLater, isAsyncSupported, reportError
-
Constructor Details
-
SWTPlatform
Creates a new SWT platform and prepares it for operation.
-
-
Method Details
-
display
public org.eclipse.swt.widgets.Display display()Returns the SWT display on which the game is running. -
shell
public org.eclipse.swt.widgets.Shell shell()Returns the SWT shell in which the game is running. -
composite
public org.eclipse.swt.widgets.Composite composite()Returns the SWT composite that hosts the game view. -
graphics
- Specified by:
graphicsin classJavaPlatform
-
input
- Specified by:
inputin classJavaPlatform
-