sdl.event
Class SDLUserEvent

java.lang.Object
  |
  +--sdl.event.SDLCustomEvent
        |
        +--sdl.event.SDLUserEvent

public class SDLUserEvent
extends SDLCustomEvent

Implementation of generic SDL event based on SDL_UserEvent. Extend this class to create your own events. Fire events with

  dispatch.SDLPushEvent(myEvent);
 

Developers: watch this carfully for memory leaks. Java GC *should* free the native struct's during the SDLCustomEvent.finalize() method, but you never know.


Field Summary
 
Fields inherited from class sdl.event.SDLCustomEvent
m_HandleSDLEvent, m_Type
 
Constructor Summary
SDLUserEvent()
           
SDLUserEvent(int handle)
           
 
Method Summary
protected  void finalize()
           
 int getNativeHandleSDLEvent()
           
 void init()
           
 java.lang.String toString()
           
 
Methods inherited from class sdl.event.SDLCustomEvent
freeEvent, getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SDLUserEvent

public SDLUserEvent()

SDLUserEvent

public SDLUserEvent(int handle)
Method Detail

init

public void init()

toString

public java.lang.String toString()
Overrides:
toString in class SDLCustomEvent

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
java.lang.Throwable

getNativeHandleSDLEvent

public int getNativeHandleSDLEvent()