NLMISC::CEventKey Class Reference

#include <events.h>

Inheritance diagram for NLMISC::CEventKey:

NLMISC::CEvent NLMISC::CClassId NLMISC::CEventChar NLMISC::CEventKeyDown NLMISC::CEventKeyUp

Detailed Description

CEventKey

Definition at line 257 of file events.h.

Public Member Functions

 CEventKey (TKeyButton button, IEventEmitter *emitter, const CClassId &classId)
virtual CEventclone () const=0
 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.


Static Public Attributes

const CClassId Null


Constructor & Destructor Documentation

NLMISC::CEventKey::CEventKey TKeyButton  button,
IEventEmitter emitter,
const CClassId classId
[inline]
 

Definition at line 260 of file events.h.

References Button.

00260                                                                                        : CEvent (emitter, classId)
00261         {
00262                 Button=button;
00263         }


Member Function Documentation

virtual CEvent* NLMISC::CEvent::clone  )  const [pure virtual, inherited]
 

Implemented in NLMISC::CEventKeyDown, NLMISC::CEventKeyUp, NLMISC::CEventChar, NLMISC::CEventMouseDown, NLMISC::CEventMouseUp, NLMISC::CEventMouseMove, NLMISC::CEventMouseDblClk, NLMISC::CEventMouseWheel, NLMISC::CEventActivate, NLMISC::CEventSetFocus, NLMISC::CEventDestroyWindow, NLMISC::CGDMouseMove, NLMISC::CGDButtonDown, NLMISC::CGDButtonUp, NLMISC::CGDAxisMoved, NLMISC::CGDSliderMoved, and NLMISC::CGDPOVChanged.

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

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]
 

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
 

Definition at line 264 of file events.h.

Referenced by 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().

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


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