Back to index

nux  3.0.0
Public Member Functions | Private Member Functions | Private Attributes
nux::KeyEvent Class Reference

#include <InputMethodIBus.h>

Collaboration diagram for nux::KeyEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 KeyEvent (NuxEventType type, unsigned int key_sym, unsigned int key_code, unsigned int event_flags, const char *character)
NuxEventType type () const
unsigned int key_sym () const
unsigned int key_code () const
unsigned int flags () const
std::string character () const
bool IsShiftDown () const
bool IsControlDown () const
bool IsCapsLockDown () const
bool IsAltDown () const

Private Member Functions

 KeyEvent (const KeyEvent &)
void operator= (const KeyEvent &)

Private Attributes

EventType type_
unsigned int key_sym_
unsigned int key_code_
unsigned int key_modifiers_
std::string character_

Detailed Description

Definition at line 38 of file InputMethodIBus.h.


Constructor & Destructor Documentation

nux::KeyEvent::KeyEvent ( NuxEventType  type,
unsigned int  key_sym,
unsigned int  key_code,
unsigned int  event_flags,
const char *  character 
) [inline]

Definition at line 42 of file InputMethodIBus.h.

nux::KeyEvent::KeyEvent ( const KeyEvent ) [private]

Member Function Documentation

std::string nux::KeyEvent::character ( ) const [inline]

Definition at line 57 of file InputMethodIBus.h.

{return character_;}
unsigned int nux::KeyEvent::flags ( ) const [inline]

Definition at line 56 of file InputMethodIBus.h.

{return key_modifiers_;}

Here is the caller graph for this function:

bool nux::KeyEvent::IsAltDown ( ) const [inline]

Definition at line 62 of file InputMethodIBus.h.

{ return (key_modifiers_ & KEY_MODIFIER_ALT) != 0; }

Here is the caller graph for this function:

bool nux::KeyEvent::IsCapsLockDown ( ) const [inline]

Definition at line 61 of file InputMethodIBus.h.

Here is the caller graph for this function:

bool nux::KeyEvent::IsControlDown ( ) const [inline]

Definition at line 60 of file InputMethodIBus.h.

{ return (key_modifiers_ & KEY_MODIFIER_CTRL) != 0; }

Here is the caller graph for this function:

bool nux::KeyEvent::IsShiftDown ( ) const [inline]

Definition at line 59 of file InputMethodIBus.h.

{ return (key_modifiers_ & KEY_MODIFIER_SHIFT) != 0; }

Here is the caller graph for this function:

unsigned int nux::KeyEvent::key_code ( ) const [inline]

Definition at line 55 of file InputMethodIBus.h.

{return key_code_;}

Here is the caller graph for this function:

unsigned int nux::KeyEvent::key_sym ( ) const [inline]

Definition at line 54 of file InputMethodIBus.h.

{return key_sym_;}
void nux::KeyEvent::operator= ( const KeyEvent ) [private]
NuxEventType nux::KeyEvent::type ( ) const [inline]

Definition at line 53 of file InputMethodIBus.h.

{return type_;}

Here is the caller graph for this function:


Member Data Documentation

std::string nux::KeyEvent::character_ [private]

Definition at line 69 of file InputMethodIBus.h.

unsigned int nux::KeyEvent::key_code_ [private]

Definition at line 67 of file InputMethodIBus.h.

unsigned int nux::KeyEvent::key_modifiers_ [private]

Definition at line 68 of file InputMethodIBus.h.

unsigned int nux::KeyEvent::key_sym_ [private]

Definition at line 66 of file InputMethodIBus.h.

Definition at line 65 of file InputMethodIBus.h.


The documentation for this class was generated from the following file: