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