struct Sym

# struct Sym | Represents a key symbol. More...
Full name | `KKeyServer::Sym`
Definition | `#include <kkeyserver_x11.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- Sym ()
- Sym ( uint sym )
- Sym ( const QString& s )
- bool initQt ( int keyQt )
- bool init ( const QString &s )
- int qt () const
- QString toStringInternal () const
- QString toString () const
- uint getModsRequired () const
- uint getSymVariation () const
- operator uint () const
- Sym& operator = ( uint sym )

#### Public Members

- uint m_sym

## Detailed Description

Represents a key symbol.

See also: KKey, KKeyServer

uint m_sym | ### m_sym

Sym () | ### Sym

Sym ( uint sym ) | ### Sym

Creates asymbol with the given value.

Parameters:

sym | the value

Sym ( const QString& s ) | ### Sym

Creates a symbol from the given string description.

Parameters:

s | the description of the symbol

See also: toString()

bool initQt ( int keyQt ) | ### initQt

Initializes the symbol with the given Qt key code.

Parameters:

keyQt | the qt key code

Returns: true if succesful, false otherwise

See also: Qt::Key

bool init ( const QString &s ) | ### init

Initializes the key with the given string description.

Parameters:

s | the string description

Returns: true if succesful, false otherwise

See also: toString()

int qt () | ### qt

[const]

Returns the qt key code of the symbol.

Returns: the qt key code

QString toStringInternal () | ### toStringInternal

[const]

QString toString () | ### toString

[const]

Returns the string representation of the symbol.

Returns: the string representation of the symbol

uint getModsRequired () | ### getModsRequired

[const]

Returns the mods that are required for this symbol as ORed KKey::ModFlag's. For example, Break requires a Ctrl to be valid.

Returns: the required KKey::ModFlag's

See also: ModFlag

uint getSymVariation () | ### getSymVariation

[const]

TODO: please find out what this method does and document it

operator uint () | ### uint

[const]

Casts the symbol to its integer representation.

Sym& operator = ( uint sym ) | ### operator =

Overloaded operator to convert ints to Sym.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.