public class SWTPlatform extends JavaPlatform
JavaPlatform.Config, JavaPlatform.HeadlessPlatform.Error, Platform.Lifecycle, Platform.Type| Constructor and Description |
|---|
SWTPlatform(JavaPlatform.Config config)
Creates a new SWT platform and prepares it for operation.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.widgets.Composite |
composite()
Returns the SWT composite that hosts the game view.
|
SWTGraphics |
graphics() |
void |
setTitle(String title) |
org.eclipse.swt.widgets.Shell |
shell()
Returns the SWT shell in which the game is running.
|
void |
start() |
assets, audio, exec, input, json, log, net, openURL, storage, tick, time, typeinvokeAsync, invokeLater, isAsyncSupported, reportErrorpublic SWTPlatform(JavaPlatform.Config config)
public org.eclipse.swt.widgets.Shell shell()
public org.eclipse.swt.widgets.Composite composite()
public void setTitle(String title)
setTitle in class JavaPlatformpublic SWTGraphics graphics()
graphics in class JavaPlatformpublic void start()
start in class JavaPlatformCopyright © 2015. All Rights Reserved.