\section{KKey\-Server::Key Struct Reference}
\label{structKKeyServer_1_1Key}\index{KKeyServer::Key@{KKeyServer::Key}}
Represents a key press.  


{\tt \#include $<$kkeyserver\_\-x11.h$>$}

\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum \{ {\bf CODE\_\-FOR\_\-QT} =  256
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
bool {\bf init} (const {\bf KKey} \&key, bool b\-Qt)
\item 
bool {\bf is\-Native} () const 
\item 
uint {\bf code} () const 
\item 
uint {\bf mod} () const 
\item 
uint {\bf sym} () const 
\item 
int {\bf key\-Code\-Qt} () const 
\item 
void {\bf set\-Keycode\-Qt} (int key\-Qt)
\item 
{\bf Key} \& {\bf operator=} (const {\bf KKey\-Native} \&key)
\item 
int {\bf compare} (const {\bf Key} \&key) const 
\item 
bool {\bf operator==} (const {\bf Key} \&b) const 
\item 
bool {\bf operator$<$} (const {\bf Key} \&b) const 
\item 
{\bf KKey} {\bf key} () const 
\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
uint {\bf m\_\-code}
\item 
uint {\bf m\_\-mod}
\item 
uint {\bf m\_\-sym}
\end{CompactItemize}


\subsection{Detailed Description}
Represents a key press. 

\begin{Desc}
\item[See also:]{\bf KKey}{\rm (p.\,\pageref{classKKey})}\end{Desc}




Definition at line 137 of file kkeyserver\_\-x11.h.

\subsection{Member Enumeration Documentation}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{structKKeyServer_1_1Key_w1}


Code for native Keys in {\bf Qt}. 



Definition at line 140 of file kkeyserver\_\-x11.h.

\subsection{Member Function Documentation}
\index{KKeyServer::Key@{KKey\-Server::Key}!init@{init}}
\index{init@{init}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KKey\-Server::Key::init (const {\bf KKey} \& {\em key}, bool {\em b\-Qt})}\label{structKKeyServer_1_1Key_a0}


Initializes the key with a {\bf KKey}{\rm (p.\,\pageref{classKKey})}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em key}]the key to get the data from \item[{\em b\-Qt}]true to take the {\bf Qt} keycode, false for the native key code \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]Qt::Key 

{\bf KKey\-Native}{\rm (p.\,\pageref{classKKeyNative})}\end{Desc}


Definition at line 912 of file kkeyserver\_\-x11.cpp.

References key(), KKey::key\-Code\-Qt(), m\_\-code, and m\_\-sym.\index{KKeyServer::Key@{KKey\-Server::Key}!isNative@{isNative}}
\index{isNative@{isNative}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KKey\-Server::Key::is\-Native () const\hspace{0.3cm}{\tt  [inline]}}\label{structKKeyServer_1_1Key_a1}


Checks whether the key code is a native code. 

\begin{Desc}
\item[Returns:]true if native code of the window system, false if it is a {\bf Qt} keycode \end{Desc}
\begin{Desc}
\item[See also:]Qt::Key 

{\bf KKey\-Native}{\rm (p.\,\pageref{classKKeyNative})}\end{Desc}


Definition at line 168 of file kkeyserver\_\-x11.h.\index{KKeyServer::Key@{KKey\-Server::Key}!code@{code}}
\index{code@{code}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint KKey\-Server::Key::code () const\hspace{0.3cm}{\tt  [inline]}}\label{structKKeyServer_1_1Key_a2}


Returns the code of the key. 

\begin{Desc}
\item[Returns:]the code of the key\end{Desc}


Definition at line 174 of file kkeyserver\_\-x11.h.\index{KKeyServer::Key@{KKey\-Server::Key}!mod@{mod}}
\index{mod@{mod}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint KKey\-Server::Key::mod () const\hspace{0.3cm}{\tt  [inline]}}\label{structKKeyServer_1_1Key_a3}


Returns the modifiers of the key. 

\begin{Desc}
\item[Returns:]the modifiers of the key\end{Desc}


Definition at line 180 of file kkeyserver\_\-x11.h.

Referenced by key().\index{KKeyServer::Key@{KKey\-Server::Key}!sym@{sym}}
\index{sym@{sym}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint KKey\-Server::Key::sym () const\hspace{0.3cm}{\tt  [inline]}}\label{structKKeyServer_1_1Key_a4}


Returns the symbol of the key. 

\begin{Desc}
\item[Returns:]the symbol of the key\end{Desc}


Definition at line 186 of file kkeyserver\_\-x11.h.\index{KKeyServer::Key@{KKey\-Server::Key}!keyCodeQt@{keyCodeQt}}
\index{keyCodeQt@{keyCodeQt}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KKey\-Server::Key::key\-Code\-Qt () const\hspace{0.3cm}{\tt  [inline]}}\label{structKKeyServer_1_1Key_a5}


Returns the qt key code. 

\begin{Desc}
\item[Returns:]the qt key code\end{Desc}


Definition at line 192 of file kkeyserver\_\-x11.h.

Referenced by key().\index{KKeyServer::Key@{KKey\-Server::Key}!setKeycodeQt@{setKeycodeQt}}
\index{setKeycodeQt@{setKeycodeQt}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KKey\-Server::Key::set\-Keycode\-Qt (int {\em key\-Qt})\hspace{0.3cm}{\tt  [inline]}}\label{structKKeyServer_1_1Key_a6}


Sets the qt key code. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em key\-Qt}]the qt key code\end{description}
\end{Desc}


Definition at line 198 of file kkeyserver\_\-x11.h.\index{KKeyServer::Key@{KKey\-Server::Key}!operator=@{operator=}}
\index{operator=@{operator=}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Key} \& KKey\-Server::Key::operator= (const {\bf KKey\-Native} \& {\em key})}\label{structKKeyServer_1_1Key_a7}


Initializes this key with a {\bf KKey\-Native}{\rm (p.\,\pageref{classKKeyNative})}. 

\begin{Desc}
\item[Returns:]this key\end{Desc}


Definition at line 939 of file kkeyserver\_\-x11.cpp.

References key(), m\_\-code, m\_\-mod, m\_\-sym, and KKey::sym().\index{KKeyServer::Key@{KKey\-Server::Key}!compare@{compare}}
\index{compare@{compare}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KKey\-Server::Key::compare (const {\bf Key} \& {\em key}) const}\label{structKKeyServer_1_1Key_a8}


Compares this key with the given {\bf Key}{\rm (p.\,\pageref{structKKeyServer_1_1Key})} object. 

Returns a negative number if the given {\bf Key}{\rm (p.\,\pageref{structKKeyServer_1_1Key})} is larger, 0 if they are equal and a positive number this {\bf Key}{\rm (p.\,\pageref{structKKeyServer_1_1Key})} is larger. The returned value is the difference between the symbol, modifier or code, whatever is non-zero first.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em key}]the key to compare with this key \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]a negative number if the given {\bf Key}{\rm (p.\,\pageref{structKKeyServer_1_1Key})} is larger, 0 if they are equal and a positive number this {\bf Key}{\rm (p.\,\pageref{structKKeyServer_1_1Key})} is larger\end{Desc}


Definition at line 945 of file kkeyserver\_\-x11.cpp.

References m\_\-code, KKey::m\_\-mod, m\_\-mod, KKey::m\_\-sym, and m\_\-sym.\index{KKeyServer::Key@{KKey\-Server::Key}!operator==@{operator==}}
\index{operator==@{operator==}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KKey\-Server::Key::operator== (const {\bf Key} \& {\em b}) const\hspace{0.3cm}{\tt  [inline]}}\label{structKKeyServer_1_1Key_a9}


Compares the symbol, modifiers and code of both keys. 

\begin{Desc}
\item[See also:]{\bf compare()}{\rm (p.\,\pageref{structKKeyServer_1_1Key_a8})}\end{Desc}


Definition at line 224 of file kkeyserver\_\-x11.h.\index{KKeyServer::Key@{KKey\-Server::Key}!operator<@{operator$<$}}
\index{operator<@{operator$<$}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KKey\-Server::Key::operator$<$ (const {\bf Key} \& {\em b}) const\hspace{0.3cm}{\tt  [inline]}}\label{structKKeyServer_1_1Key_a10}


Compares the symbol, modifiers and code of both keys. 

\begin{Desc}
\item[See also:]{\bf compare()}{\rm (p.\,\pageref{structKKeyServer_1_1Key_a8})}\end{Desc}


Definition at line 231 of file kkeyserver\_\-x11.h.\index{KKeyServer::Key@{KKey\-Server::Key}!key@{key}}
\index{key@{key}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KKey} KKey\-Server::Key::key () const}\label{structKKeyServer_1_1Key_a11}


Converts this {\bf Key}{\rm (p.\,\pageref{structKKeyServer_1_1Key})} to a {\bf KKey}{\rm (p.\,\pageref{classKKey})}. 

\begin{Desc}
\item[Returns:]the {\bf KKey}{\rm (p.\,\pageref{classKKey})}\end{Desc}


Definition at line 924 of file kkeyserver\_\-x11.cpp.

References key\-Code\-Qt(), m\_\-code, m\_\-mod, m\_\-sym, mod(), and KKey\-Server::mod\-XTo\-Mod().

Referenced by init(), and operator=().

\subsection{Member Data Documentation}
\index{KKeyServer::Key@{KKey\-Server::Key}!m_code@{m\_\-code}}
\index{m_code@{m\_\-code}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint {\bf KKey\-Server::Key::m\_\-code}}\label{structKKeyServer_1_1Key_o0}


The code of the key. 



Definition at line 143 of file kkeyserver\_\-x11.h.

Referenced by compare(), init(), key(), and operator=().\index{KKeyServer::Key@{KKey\-Server::Key}!m_mod@{m\_\-mod}}
\index{m_mod@{m\_\-mod}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint {\bf KKey\-Server::Key::m\_\-mod}}\label{structKKeyServer_1_1Key_o1}


The modifiers of the key. 



Definition at line 146 of file kkeyserver\_\-x11.h.

Referenced by compare(), key(), and operator=().\index{KKeyServer::Key@{KKey\-Server::Key}!m_sym@{m\_\-sym}}
\index{m_sym@{m\_\-sym}!KKeyServer::Key@{KKey\-Server::Key}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint {\bf KKey\-Server::Key::m\_\-sym}}\label{structKKeyServer_1_1Key_o2}


The symbol of the key. 



Definition at line 149 of file kkeyserver\_\-x11.h.

Referenced by compare(), init(), key(), and operator=().

The documentation for this struct was generated from the following files:\begin{CompactItemize}
\item 
kkeyserver\_\-x11.h\item 
kkeyserver\_\-x11.cpp\end{CompactItemize}
