• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • KKeyServer
  • Key
Public Types | Public Member Functions | Public Attributes | List of all members
KKeyServer::Key Struct Reference

#include <kkeyserver_x11.h>

Public Types

enum  { CODE_FOR_QT = 256 }
 

Public Member Functions

bool init (const KKey &key, bool bQt)
 
bool isNative () const
 
uint code () const
 
uint mod () const
 
uint sym () const
 
int keyCodeQt () const
 
void setKeycodeQt (int keyQt)
 
Key & operator= (const KKeyNative &key)
 
int compare (const Key &key) const
 
bool operator== (const Key &b) const
 
bool operator< (const Key &b) const
 
KKey key () const
 

Public Attributes

uint m_code
 
uint m_mod
 
uint m_sym
 

Detailed Description

Represents a key press.

See also
KKey

Definition at line 137 of file kkeyserver_x11.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Code for native Keys in Qt.

Definition at line 140 of file kkeyserver_x11.h.

Member Function Documentation

◆ code()

uint KKeyServer::Key::code ( ) const
inline

Returns the code of the key.

Returns
the code of the key

Definition at line 174 of file kkeyserver_x11.h.

◆ compare()

int KKeyServer::Key::compare ( const Key &  key) const

Compares this key with the given Key object.

Returns a negative number if the given Key is larger, 0 if they are equal and a positive number this Key is larger. The returned value is the difference between the symbol, modifier or code, whatever is non-zero first.

Parameters
keythe key to compare with this key
Returns
a negative number if the given Key is larger, 0 if they are equal and a positive number this Key is larger

◆ init()

bool KKeyServer::Key::init ( const KKey &  key,
bool  bQt 
)

Initializes the key with a KKey.

Parameters
keythe key to get the data from
bQttrue to take the Qt keycode, false for the native key code
See also
TQt::Key
KKeyNative

◆ isNative()

bool KKeyServer::Key::isNative ( ) const
inline

Checks whether the key code is a native code.

Returns
true if native code of the window system, false if it is a Qt keycode
See also
TQt::Key
KKeyNative

Definition at line 168 of file kkeyserver_x11.h.

◆ key()

KKey KKeyServer::Key::key ( ) const

Converts this Key to a KKey.

Returns
the KKey

◆ keyCodeQt()

int KKeyServer::Key::keyCodeQt ( ) const
inline

Returns the qt key code.

Returns
the qt key code

Definition at line 192 of file kkeyserver_x11.h.

◆ mod()

uint KKeyServer::Key::mod ( ) const
inline

Returns the modifiers of the key.

Returns
the modifiers of the key

Definition at line 180 of file kkeyserver_x11.h.

◆ operator<()

bool KKeyServer::Key::operator< ( const Key &  b) const
inline

Compares the symbol, modifiers and code of both keys.

See also
compare()

Definition at line 231 of file kkeyserver_x11.h.

◆ operator=()

Key & KKeyServer::Key::operator= ( const KKeyNative &  key)

Initializes this key with a KKeyNative.

Returns
this key

◆ operator==()

bool KKeyServer::Key::operator== ( const Key &  b) const
inline

Compares the symbol, modifiers and code of both keys.

See also
compare()

Definition at line 224 of file kkeyserver_x11.h.

◆ setKeycodeQt()

void KKeyServer::Key::setKeycodeQt ( int  keyQt)
inline

Sets the qt key code.

Parameters
keyQtthe qt key code

Definition at line 198 of file kkeyserver_x11.h.

◆ sym()

uint KKeyServer::Key::sym ( ) const
inline

Returns the symbol of the key.

Returns
the symbol of the key

Definition at line 186 of file kkeyserver_x11.h.

Member Data Documentation

◆ m_code

uint KKeyServer::Key::m_code

The code of the key.

Definition at line 143 of file kkeyserver_x11.h.

◆ m_mod

uint KKeyServer::Key::m_mod

The modifiers of the key.

Definition at line 146 of file kkeyserver_x11.h.

◆ m_sym

uint KKeyServer::Key::m_sym

The symbol of the key.

Definition at line 149 of file kkeyserver_x11.h.


The documentation for this struct was generated from the following file:
  • kkeyserver_x11.h

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.