gzz.client
Interface GraphicsAPI.Window

All Superinterfaces:
GraphicsAPI.RenderingSurface
All Known Implementing Classes:
GLScreen, GraphicsAPI.AbstractWindow
Enclosing interface:
GraphicsAPI

public static interface GraphicsAPI.Window
extends GraphicsAPI.RenderingSurface

An interface for windows visible on the screen.


Method Summary
 void addTimeout(int ms, java.lang.Object o)
          Add a timeout: Binder.timeout() is called after given number of milliseconds.
 GraphicsAPI getGraphicsAPI()
          Get the GraphicsAPI this window is associated with.
 void registerBinder(Binder s)
          Set the event handler for the window.
 void setLocation(int x, int y, int w, int h)
          Try to set the location and size of the window.
 
Methods inherited from interface gzz.client.GraphicsAPI.RenderingSurface
createVobScene, createVobScene, getSize, readPixels, renderAnim, renderStill
 

Method Detail

setLocation

public void setLocation(int x,
                        int y,
                        int w,
                        int h)
Try to set the location and size of the window. Not guaranteed to succeed.


registerBinder

public void registerBinder(Binder s)
Set the event handler for the window.


addTimeout

public void addTimeout(int ms,
                       java.lang.Object o)
Add a timeout: Binder.timeout() is called after given number of milliseconds.


getGraphicsAPI

public GraphicsAPI getGraphicsAPI()
Get the GraphicsAPI this window is associated with.