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