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