Package ch.bailu.gtk.gdk
Class KeymapKey
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gdk.KeymapKey
- All Implemented Interfaces:
PointerInterface
A `GdkKeymapKey` is a hardware key that can be mapped to a keyval.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
int
indicates movement in a horizontal direction.int
the hardware keycode.int
indicates which symbol on the key will be used, in a vertical direction.void
setFieldGroup
(int group) indicates movement in a horizontal direction.void
setFieldKeycode
(int keycode) the hardware keycode.void
setFieldLevel
(int level) indicates which symbol on the key will be used, in a vertical direction.Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
KEYCODE
the hardware keycode. This is an identifying number for a
physical key.- See Also:
-
GROUP
indicates movement in a horizontal direction. Usually groups are used
for two different languages. In group 0, a key might have two English
characters, and in group 1 it might have two Hebrew characters. The Hebrew
characters will be printed on the key next to the English characters.- See Also:
-
LEVEL
indicates which symbol on the key will be used, in a vertical direction.
So on a standard US keyboard, the key with the number “1” on it also has the
exclamation point ("!") character on it. The level indicates whether to use
the “1” or the “!” symbol. The letter keys are considered to have a lowercase
letter at level 0, and an uppercase letter at level 1, though only the
uppercase letter is printed.- See Also:
-
-
Constructor Details
-
KeymapKey
-
KeymapKey
public KeymapKey()
-
-
Method Details
-
getClassHandler
-
setFieldKeycode
public void setFieldKeycode(int keycode) the hardware keycode. This is an identifying number for a
physical key. -
getFieldKeycode
public int getFieldKeycode()the hardware keycode. This is an identifying number for a
physical key. -
setFieldGroup
public void setFieldGroup(int group) indicates movement in a horizontal direction. Usually groups are used
for two different languages. In group 0, a key might have two English
characters, and in group 1 it might have two Hebrew characters. The Hebrew
characters will be printed on the key next to the English characters. -
getFieldGroup
public int getFieldGroup()indicates movement in a horizontal direction. Usually groups are used
for two different languages. In group 0, a key might have two English
characters, and in group 1 it might have two Hebrew characters. The Hebrew
characters will be printed on the key next to the English characters. -
setFieldLevel
public void setFieldLevel(int level) indicates which symbol on the key will be used, in a vertical direction.
So on a standard US keyboard, the key with the number “1” on it also has the
exclamation point ("!") character on it. The level indicates whether to use
the “1” or the “!” symbol. The letter keys are considered to have a lowercase
letter at level 0, and an uppercase letter at level 1, though only the
uppercase letter is printed. -
getFieldLevel
public int getFieldLevel()indicates which symbol on the key will be used, in a vertical direction.
So on a standard US keyboard, the key with the number “1” on it also has the
exclamation point ("!") character on it. The level indicates whether to use
the “1” or the “!” symbol. The letter keys are considered to have a lowercase
letter at level 0, and an uppercase letter at level 1, though only the
uppercase letter is printed.
-