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