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