sdl.test.gui
Class GUIRuntime
java.lang.Object
|
+--sdl.test.gui.GUIRuntime
- All Implemented Interfaces:
- sdl.event.EventListener
- public class GUIRuntime
- extends java.lang.Object
- implements sdl.event.EventListener
for demo gui - unfinished,
Rudimentary prototype for SDL implementation of a java.awt.Toolkit object.
Handles the necessry SDL runtime stuff for us.
The immediate goal is SDLComponent, SDLContainer, SDLFont, etc.
Scott Straw
08/02/02
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GUIRuntime
public GUIRuntime()
doPixelColorHack
public static long doPixelColorHack(long oldColor,
sdl.video.SDLSurface surface)
- SDL Pixel Access methods
initSDL
public void initSDL()
- Begin SDL Runtime methods
quitSDL
public void quitSDL()
initEventService
public void initEventService()
quitEventService
public void quitEventService()
updateSurface
public void updateSurface()
finalize
public void finalize()
- Overrides:
finalize
in class java.lang.Object
getGraphics
public GUIGraphics getGraphics()
dispatchEvent
public static void dispatchEvent(sdl.event.SDLCustomEvent e)
incomingEvents
public boolean incomingEvents(sdl.event.SDLCustomEvent e)
throws sdl.event.SDLEventException
- Specified by:
incomingEvents
in interface sdl.event.EventListener
sdl.event.SDLEventException
setAsStaticInstance
public void setAsStaticInstance()
getStaticInstance
public static GUIRuntime getStaticInstance()