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