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