|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Qt.KeyboardModifier>
com.trolltech.qt.core.Qt.KeyboardModifier
public static enum Qt.KeyboardModifier
This enum describes the modifier keys.
Note: On Mac OS X, the ControlModifier value corresponds to the Command keys on the Macintosh keyboard, and the MetaModifier value corresponds to the Control keys. The KeypadModifier value will also be set when an arrow key is pressed as the arrow keys are considered part of the keypad.
Enum Constant Summary | |
---|---|
AltModifier
An Alt key on the keyboard is pressed. |
|
ControlModifier
A Ctrl key on the keyboard is pressed. |
|
GroupSwitchModifier
X11 only. |
|
KeyboardModifierMask
Internal. |
|
KeypadModifier
A keypad button is pressed. |
|
MetaModifier
A Meta key on the keyboard is pressed. |
|
NoModifier
No modifier key is pressed. |
|
ShiftModifier
A Shift key on the keyboard is pressed. |
Method Summary | |
---|---|
static Qt.KeyboardModifiers |
createQFlags(Qt.KeyboardModifier... values)
|
static Qt.KeyboardModifier |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static Qt.KeyboardModifier |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Qt.KeyboardModifier[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Qt.KeyboardModifier NoModifier
No modifier key is pressed.
public static final Qt.KeyboardModifier ShiftModifier
A Shift key on the keyboard is pressed.
public static final Qt.KeyboardModifier ControlModifier
A Ctrl key on the keyboard is pressed.
public static final Qt.KeyboardModifier AltModifier
An Alt key on the keyboard is pressed.
public static final Qt.KeyboardModifier MetaModifier
A Meta key on the keyboard is pressed.
public static final Qt.KeyboardModifier KeypadModifier
A keypad button is pressed.
public static final Qt.KeyboardModifier GroupSwitchModifier
X11 only. A Mode_switch key on the keyboard is pressed.
public static final Qt.KeyboardModifier KeyboardModifierMask
Method Detail |
---|
public static Qt.KeyboardModifier[] values()
for (Qt.KeyboardModifier c : Qt.KeyboardModifier.values()) System.out.println(c);
public static Qt.KeyboardModifier valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int value()
QtEnumerator
value
in interface QtEnumerator
public static Qt.KeyboardModifiers createQFlags(Qt.KeyboardModifier... values)
public static Qt.KeyboardModifier resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |