crystalspace.jbind.impl.csutil.event
Class csEvent

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.csutil.event.csEvent
All Implemented Interfaces:
iBase, iEvent, iPointer

public class csEvent
extends csBase
implements iEvent

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csEvent(iPointer nPointer)
           
 
Method Summary
 byte Category()
          Event category (unused by CSWS).
 void Category(byte category)
          Event category (unused by CSWS).
 csEventCommandData Command()
          Command data of event.
 void Command(csEventCommandData command)
          Command data of event.
 byte Flags()
          Miscelaneous event flags.
 void Flags(byte flags)
          Miscelaneous event flags.
static java.lang.Class getInterfaceClass()
           
static java.lang.String getInterfaceName()
           
static int getInterfaceVersion()
           
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
static void initSCF()
           
protected  boolean isNativePointerValidSafe(long pointer)
           
 csEventJoystickData Joystick()
          Joystick data of event.
 void Joystick(csEventJoystickData joystick)
          Joystick data of event.
 csEventMouseData Mouse()
          Mouse data of event.
 void Mouse(csEventMouseData mouse)
          Mouse data of event.
 csEventNetworkData Network()
          Network data of event.
 void Network(csEventNetworkData network)
          Network data of event.
 byte SubCategory()
          Even finer granularity.
 void SubCategory(byte subCategory)
          Even finer granularity.
 int Time()
          Time when the event occured.
 void Time(int time)
          Time when the event occured.
 byte Type()
          Event type (one of csevKeyDown etc.).
 void Type(byte type)
          Event type (one of csevKeyDown etc.).
 
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Constructor Detail

csEvent

public csEvent(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase

initSCF

public static void initSCF()

Type

public byte Type()
Description copied from interface: iEvent
Event type (one of csevKeyDown etc.).

Specified by:
Type in interface iEvent
Returns:

Category

public byte Category()
Description copied from interface: iEvent
Event category (unused by CSWS).

Specified by:
Category in interface iEvent
Returns:

SubCategory

public byte SubCategory()
Description copied from interface: iEvent
Even finer granularity.

Specified by:
SubCategory in interface iEvent
Returns:

Flags

public byte Flags()
Description copied from interface: iEvent
Miscelaneous event flags.

Specified by:
Flags in interface iEvent
Returns:

Time

public int Time()
Description copied from interface: iEvent
Time when the event occured.

Specified by:
Time in interface iEvent
Returns:

getInterfaceVersion

public static int getInterfaceVersion()

getInterfaceName

public static java.lang.String getInterfaceName()

getInterfaceClass

public static java.lang.Class getInterfaceClass()

Command

public csEventCommandData Command()
Description copied from interface: iEvent
Command data of event.

Specified by:
Command in interface iEvent
Returns:

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject

Category

public void Category(byte category)
Description copied from interface: iEvent
Event category (unused by CSWS).

Specified by:
Category in interface iEvent
Parameters:
category -
See Also:
iEvent.Category(byte)

Command

public void Command(csEventCommandData command)
Description copied from interface: iEvent
Command data of event.

Specified by:
Command in interface iEvent
Parameters:
command -
See Also:
iEvent.Command(crystalspace.jbind.impl.csutil.event.csEventCommandData)

Flags

public void Flags(byte flags)
Description copied from interface: iEvent
Miscelaneous event flags.

Specified by:
Flags in interface iEvent
Parameters:
flags -
See Also:
iEvent.Flags(byte)

Joystick

public csEventJoystickData Joystick()
Description copied from interface: iEvent
Joystick data of event.

Specified by:
Joystick in interface iEvent
Returns:
See Also:
iEvent.Joystick()

Joystick

public void Joystick(csEventJoystickData joystick)
Description copied from interface: iEvent
Joystick data of event.

Specified by:
Joystick in interface iEvent
Parameters:
joystick -
See Also:
iEvent.Joystick(crystalspace.jbind.impl.csutil.event.csEventJoystickData)

Mouse

public csEventMouseData Mouse()
Description copied from interface: iEvent
Mouse data of event.

Specified by:
Mouse in interface iEvent
Returns:
See Also:
iEvent.Mouse()

Mouse

public void Mouse(csEventMouseData mouse)
Description copied from interface: iEvent
Mouse data of event.

Specified by:
Mouse in interface iEvent
Parameters:
mouse -
See Also:
iEvent.Mouse(crystalspace.jbind.impl.csutil.event.csEventMouseData)

Network

public csEventNetworkData Network()
Description copied from interface: iEvent
Network data of event.

Specified by:
Network in interface iEvent
Returns:
See Also:
iEvent.Network()

Network

public void Network(csEventNetworkData network)
Description copied from interface: iEvent
Network data of event.

Specified by:
Network in interface iEvent
Parameters:
network -
See Also:
iEvent.Network(crystalspace.jbind.impl.csutil.event.csEventNetworkData)

SubCategory

public void SubCategory(byte subCategory)
Description copied from interface: iEvent
Even finer granularity.

Specified by:
SubCategory in interface iEvent
Parameters:
subCategory -
See Also:
iEvent.SubCategory(byte)

Time

public void Time(int time)
Description copied from interface: iEvent
Time when the event occured.

Specified by:
Time in interface iEvent
Parameters:
time -
See Also:
iEvent.Time(int)

Type

public void Type(byte type)
Description copied from interface: iEvent
Event type (one of csevKeyDown etc.).

Specified by:
Type in interface iEvent
Parameters:
type -
See Also:
iEvent.Type(byte)