NLMISC::CEventKeyDown Class Reference

#include <events.h>

Inheritance diagram for NLMISC::CEventKeyDown:

NLMISC::CEventKey NLMISC::CEvent NLMISC::CClassId

Detailed Description

CEventKeyDown Send when a key is push down. The key type is Key and FirstTime is true if the previous key state wasn't pushed.

Definition at line 277 of file events.h.

Public Member Functions

 CEventKeyDown (TKey key, TKeyButton button, bool bFirstTime, IEventEmitter *emitter)
virtual CEventclone () const
 operator uint64 () const
bool operator!= (const CClassId &o) const
bool operator< (const CClassId &o) const
bool operator<= (const CClassId &o) const
bool operator== (const CClassId &o) const
bool operator> (const CClassId &o) const
bool operator>= (const CClassId &o) const

Static Public Member Functions

TKey getKeyFromString (const std::string &str)
const std::string & getStringFromKey (TKey k)

Data Fields

TKeyButton Button
IEventEmitterEmitter
 Emitter of the event. Can be NULL if the event is posted directly to the CEventServer.

bool FirstTime
TKey Key

Static Public Attributes

const CClassId Null


Constructor & Destructor Documentation

NLMISC::CEventKeyDown::CEventKeyDown TKey  key,
TKeyButton  button,
bool  bFirstTime,
IEventEmitter emitter
[inline]
 

Definition at line 280 of file events.h.

References NLMISC::EventKeyDownId, FirstTime, and Key.

Referenced by clone().

00280                                                                                              : CEventKey (button, emitter, EventKeyDownId)
00281         {
00282                 Key=key;
00283                 FirstTime=bFirstTime;
00284         }


Member Function Documentation

virtual CEvent* NLMISC::CEventKeyDown::clone void   )  const [inline, virtual]
 

Implements NLMISC::CEvent.

Definition at line 288 of file events.h.

References CEventKeyDown().

00288 {return new CEventKeyDown(*this);}

TKey NLMISC::CEventKey::getKeyFromString const std::string &  str  )  [static, inherited]
 

Definition at line 196 of file events.cpp.

References NLMISC::KeyConversion(), and NLMISC::TKey.

00197 {
00198         return KeyConversion.fromString(str);
00199 }

const std::string & NLMISC::CEventKey::getStringFromKey TKey  k  )  [static, inherited]
 

Definition at line 202 of file events.cpp.

References NLMISC::KeyConversion().

00203 {
00204         return KeyConversion.toString(k);
00205 }

NLMISC::CClassId::operator uint64  )  const [inline, inherited]
 

Definition at line 62 of file class_id.h.

References NLMISC::CClassId::Uid.

00062 {return Uid;}

bool NLMISC::CClassId::operator!= const CClassId o  )  const [inline, inherited]
 

Definition at line 56 of file class_id.h.

References NLMISC::CClassId::Uid.

00056 {return Uid!=o.Uid;}

bool NLMISC::CClassId::operator< const CClassId o  )  const [inline, inherited]
 

Definition at line 59 of file class_id.h.

References NLMISC::CClassId::Uid.

00059 {return Uid<o.Uid;}

bool NLMISC::CClassId::operator<= const CClassId o  )  const [inline, inherited]
 

Definition at line 57 of file class_id.h.

References NLMISC::CClassId::Uid.

00057 {return Uid<=o.Uid;}

bool NLMISC::CClassId::operator== const CClassId o  )  const [inline, inherited]
 

Definition at line 55 of file class_id.h.

References NLMISC::CClassId::Uid.

00055 {return Uid==o.Uid;}

bool NLMISC::CClassId::operator> const CClassId o  )  const [inline, inherited]
 

Definition at line 60 of file class_id.h.

References NLMISC::CClassId::Uid.

00060 {return Uid>o.Uid;}

bool NLMISC::CClassId::operator>= const CClassId o  )  const [inline, inherited]
 

Definition at line 58 of file class_id.h.

References NLMISC::CClassId::Uid.

00058 {return Uid>=o.Uid;}


Field Documentation

TKeyButton NLMISC::CEventKey::Button [inherited]
 

Definition at line 264 of file events.h.

Referenced by NLMISC::CEventKey::CEventKey().

IEventEmitter* NLMISC::CEvent::Emitter [inherited]
 

Emitter of the event. Can be NULL if the event is posted directly to the CEventServer.

Definition at line 48 of file events.h.

Referenced by NLMISC::CEvent::CEvent().

bool NLMISC::CEventKeyDown::FirstTime
 

Definition at line 286 of file events.h.

Referenced by CEventKeyDown().

TKey NLMISC::CEventKeyDown::Key
 

Definition at line 285 of file events.h.

Referenced by CEventKeyDown(), and NLMISC::CEventListenerAsync::operator()().

const CClassId NLMISC::CClassId::Null [static, inherited]
 


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 13:10:40 2004 for NeL by doxygen 1.3.6