- 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:
-
Constructor Summary
ConstructorDescriptionMouseEventFlags
(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 TypeMethodDescriptionfinal Qt.MouseEventFlags
clone()
Clones the flagsfinal Qt.MouseEventFlags
Combines this flags with enum entry.final int
compareTo
(Qt.MouseEventFlags other) final Qt.MouseEventFlag[]
flags()
Returns an array of flag objects represented by this MouseEventFlags.final Qt.MouseEventFlags
Sets the flage
final 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>
-