Package playn.java

Class SWTPlatform

java.lang.Object
playn.core.Platform
playn.java.JavaPlatform
playn.java.SWTPlatform

public class SWTPlatform
extends JavaPlatform
Implements the PlayN platform for Java, based on LWJGL and SWT.
  • Constructor Details

    • SWTPlatform

      public SWTPlatform​(JavaPlatform.Config config)
      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

      public SWTGraphics graphics()
      Specified by:
      graphics in class JavaPlatform
    • input

      public SWTInput input()
      Specified by:
      input in class JavaPlatform