org.kde.koala

Class KKeyNative

public class KKeyNative extends Object implements QtSupport

Representation of a key in the format native of the windowing system (eg. X11).

See Also: KKey

UNKNOWN: Representation of a key in the format native of the windowing system (eg.

Constructor Summary
protected KKeyNative(Class dummy)
KKeyNative()
Creates a new null KKey.
KKeyNative(KKey key)
Creates a new native key for the given KKey code.
KKeyNative(int code, int mod, int sym)
Method Summary
voidclear()
Clears the key.
intcode()
The native keycode of the key.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleaninit(KKey key)
Creates a new native key for the given KKey code.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisNull()
Returns true if the key is null (after clear() or empty constructor).
KKeykey()
Returns the KKey representation of this key.
static booleankeyboardHasWinKey()
Checks whether the keyboard has a Win key.
intkeyCodeQt()
Returns the qt key code.
intmod()
The native modifier flags of the key.
static KKeyNativenil()
Returns a null key.
intsym()
The native symbol (KeySym) of the key.

Constructor Detail

KKeyNative

protected KKeyNative(Class dummy)

KKeyNative

public KKeyNative()
Creates a new null KKey.

See Also: KKeyNative KKeyNative KKeyNative

UNKNOWN: Creates a new null KKey.

KKeyNative

public KKeyNative(KKey key)
Creates a new native key for the given KKey code.

Parameters: key the KKey that contains the generic key

UNKNOWN: Creates a new native key for the given KKey code.

KKeyNative

public KKeyNative(int code, int mod, int sym)

UNKNOWN:

Method Detail

clear

public void clear()
Clears the key. The key is null after calling this function.

See Also: KKeyNative

UNKNOWN: Clears the key.

code

public int code()
The native keycode of the key.

Returns: the native keycode

UNKNOWN: The native keycode of the key.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

init

public boolean init(KKey key)
Creates a new native key for the given KKey code.

Parameters: key the KKey that contains the generic key

Returns: true if successful, false otherwise

UNKNOWN: Creates a new native key for the given KKey code.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isNull

public boolean isNull()
Returns true if the key is null (after clear() or empty constructor).

Returns: true if the key is null

See Also: KKeyNative KKeyNative

UNKNOWN: Returns true if the key is null (after clear() or empty constructor).

key

public KKey key()
Returns the KKey representation of this key.

Returns: the KKey representation

UNKNOWN: Returns the KKey representation of this key.

keyboardHasWinKey

public static boolean keyboardHasWinKey()
Checks whether the keyboard has a Win key.

Returns: true if the keyboard has a Win key

UNKNOWN: Checks whether the keyboard has a Win key.

keyCodeQt

public int keyCodeQt()
Returns the qt key code.

Returns: the qt key code or 0 if there is no key set.

See Also: org.kde.qt.Qt#Key

UNKNOWN: Returns the qt key code.

mod

public int mod()
The native modifier flags of the key.

Returns: the native modifier flags

UNKNOWN: The native modifier flags of the key.

nil

public static KKeyNative nil()
Returns a null key.

Returns: the null key

See Also: KKeyNative KKeyNative

UNKNOWN: Returns a null key.

sym

public int sym()
The native symbol (KeySym) of the key.

Returns: the native symbol (KeySym)

UNKNOWN: The native symbol (KeySym) of the key.