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