Vaca::KeyEvent Class Reference

#include <KeyEvent.h>

Inheritance diagram for Vaca::KeyEvent:

Vaca::Event

List of all members.


Detailed Description

Data for an event that comes from the keyboard.

Public Member Functions

 KeyEvent (Widget *source, Keys::Type keys, Character charCode)
virtual ~KeyEvent ()
void consume ()
bool isConsumed () const
Keys::Type getKeyCode () const
Keys::Type getModifiers () const
Character getCharCode () const
bool isShift () const
bool isControl () const
bool isAlt () const

Private Attributes

bool m_consumed
 It indicates if the event was consumed.
int m_keys
 Virtual-key code.
Character m_charCode
 Character-key code (ANSI, Unicode, etc.

Constructor & Destructor Documentation

KeyEvent::KeyEvent ( Widget source,
Keys::Type  keys,
Character  charCode 
)

KeyEvent::~KeyEvent (  )  [virtual]


Member Function Documentation

void KeyEvent::consume (  ) 

bool KeyEvent::isConsumed (  )  const

Keys::Type KeyEvent::getKeyCode (  )  const

Keys::Type KeyEvent::getModifiers (  )  const

Character KeyEvent::getCharCode (  )  const

bool KeyEvent::isShift (  )  const

bool KeyEvent::isControl (  )  const

bool KeyEvent::isAlt (  )  const


Member Data Documentation

It indicates if the event was consumed.

int Vaca::KeyEvent::m_keys [private]

Virtual-key code.

See also:
getKeyCode, Keys

Character-key code (ANSI, Unicode, etc.

)

See also:
getCharCode