- 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:
-
Constructor Summary
ConstructorDescriptionKeyboardModifiers
(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 TypeMethodDescriptionfinal Qt.KeyboardModifiers
clone()
Clones the flagsfinal Qt.KeyboardModifiers
Combines this flags with enum entry.final int
compareTo
(Qt.KeyboardModifiers other) final Qt.KeyboardModifier []
flags()
Returns an array of flag objects represented by this KeyboardModifiers.final Qt.KeyboardModifiers
Sets the flage
final 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>
-