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