diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-01-08 20:06:00 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-01-08 20:06:00 +0100 |
commit | 636f509299122d02087c6fd62e1e4a46dbd22026 (patch) | |
tree | 70e43efceeb5b00e7f19cdac8da44928bd2fb459 /tdejava/koala/org/trinitydesktop/koala/KKeyNative.java | |
parent | 719b61750c08343f530068ed4127623aeac71cf0 (diff) | |
download | tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.tar.gz tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.zip |
Rename many classes to avoid conflicts with KDE
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KKeyNative.java')
-rw-r--r-- | tdejava/koala/org/trinitydesktop/koala/KKeyNative.java | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KKeyNative.java b/tdejava/koala/org/trinitydesktop/koala/KKeyNative.java new file mode 100644 index 00000000..f9c65f18 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KKeyNative.java @@ -0,0 +1,128 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + Representation of a key in the format native of the windowing system (eg. X11). + @short Representation of a key in the format native of the windowing system (eg. + @see KKey + +*/ +public class KKeyNative implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected KKeyNative(Class dummy){} + + /** + Creates a new null KKey. + @short Creates a new null KKey. + @see #clear + @see #isNull + @see #null + */ + public KKeyNative() { + newKKeyNative(); + } + private native void newKKeyNative(); + /** + Creates a new native key for the given KKey code. + @param key the KKey that contains the generic key + @short Creates a new native key for the given KKey code. + */ + public KKeyNative(KKey key) { + newKKeyNative(key); + } + private native void newKKeyNative(KKey key); + /** + @short + */ + public KKeyNative(int code, int mod, int sym) { + newKKeyNative(code,mod,sym); + } + private native void newKKeyNative(int code, int mod, int sym); + /** + Clears the key. The key is null after calling this function. + @short Clears the key. + @see #isNull + */ + public native void clear(); + /** + Creates a new native key for the given KKey code. + @param key the KKey that contains the generic key + @return true if successful, false otherwise + + @short Creates a new native key for the given KKey code. + */ + public native boolean init(KKey key); + /** + Returns the qt key code. + @return the qt key code or 0 if there is no key set. + + @short Returns the qt key code. + @see org.trinitydesktop.qt.Qt#Key + */ + public native int keyCodeQt(); + /** + Returns the KKey representation of this key. + @return the KKey representation + + @short Returns the KKey representation of this key. + */ + public native KKey key(); + /** + The native keycode of the key. + @return the native keycode + + @short The native keycode of the key. + */ + public native int code(); + /** + The native modifier flags of the key. + @return the native modifier flags + + @short The native modifier flags of the key. + */ + public native int mod(); + /** + The native symbol (KeySym) of the key. + @return the native symbol (KeySym) + + @short The native symbol (KeySym) of the key. + */ + public native int sym(); + /** + Returns true if the key is null (after clear() or empty + constructor). + @return true if the key is null + + @short Returns true if the key is null (after clear() or empty constructor). + @see #clear + @see #null + */ + public native boolean isNull(); + /** + Returns a null key. + @return the null key + + @short Returns a null key. + @see #isNull + @see #clear + */ + public static native KKeyNative nil(); + /** + Checks whether the keyboard has a Win key. + @return true if the keyboard has a Win key + + @short Checks whether the keyboard has a Win key. + */ + public static native boolean keyboardHasWinKey(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} |