- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Qt.KeyboardModifiers>
- Enclosing class:
- Qt
public static final class Qt.KeyboardModifiers extends QFlags<Qt.KeyboardModifier> implements Comparable<Qt.KeyboardModifiers>
QFlags type for enum
Qt.KeyboardModifier
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description KeyboardModifiers(int value)
Creates a new KeyboardModifiers with givenvalue
.KeyboardModifiers(Qt.KeyboardModifier... args)
Creates a new KeyboardModifiers where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description Qt.KeyboardModifiers
clone()
Clones the flagsQt.KeyboardModifiers
combined(Qt.KeyboardModifier e)
Combines this flags with enum entry.int
compareTo(Qt.KeyboardModifiers other)
Qt.KeyboardModifier[]
flags()
Returns an array of flag objects represented by this KeyboardModifiers.Qt.KeyboardModifiers
setFlag(Qt.KeyboardModifier e)
Sets the flage
Qt.KeyboardModifiers
setFlag(Qt.KeyboardModifier e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
KeyboardModifiers
Creates a new KeyboardModifiers where the flags inargs
are set.- Parameters:
args
- enum entries
-
KeyboardModifiers
public KeyboardModifiers(int value)Creates a new KeyboardModifiers with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<Qt.KeyboardModifier>
- Parameters:
e
- enum entry- Returns:
- new KeyboardModifiers
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<Qt.KeyboardModifier>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<Qt.KeyboardModifier>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this KeyboardModifiers.- Overrides:
flags
in classQFlags<Qt.KeyboardModifier>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<Qt.KeyboardModifier>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Qt.KeyboardModifiers>
-