- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DeviceTypes(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 Type Method Description QInputDevice.DeviceTypes
clone()
Clones the flagsQInputDevice.DeviceTypes
combined(QInputDevice.DeviceType e)
Combines this flags with enum entry.int
compareTo(QInputDevice.DeviceTypes other)
QInputDevice.DeviceType[]
flags()
Returns an array of flag objects represented by this DeviceTypes.QInputDevice.DeviceTypes
setFlag(QInputDevice.DeviceType e)
Sets the flage
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>
-