public class GUI extends Object
Constructor and Description |
---|
GUI(String title,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the window (same as clicking on the 'X', only with code)
|
DialogManager |
getDialogManager()
Get the dialog manager
|
DrawSurface |
getDrawSurface()
Get a drawing surface to draw on.
|
KeyboardSensor |
getKeyboardSensor()
Get the keyboard sensor.
|
void |
show(DrawSurface surface)
Show the draw surface on the window.
|
public GUI(String title, int width, int height)
title
- the window title.width
- the window width in pixels.height
- the window height in pixels.public DialogManager getDialogManager()
public DrawSurface getDrawSurface()
public void show(DrawSurface surface)
surface
- the drawing surface.public KeyboardSensor getKeyboardSensor()
public void close()
Copyright © 2015. All rights reserved.