- 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
ConstructorsConstructorDescriptionCreates a new DeviceTypes.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 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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
DeviceTypes
public DeviceTypes()Creates a new DeviceTypes. -
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>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-