- All Implemented Interfaces:
QtAbstractEnumerator
,QtAbstractFlagEnumerator
,QtEnumerator
,QtFlagEnumerator
,Serializable
,Comparable<Qt.MouseButton>
,Constable
- Enclosing class:
- Qt
public static enum Qt.MouseButton extends Enum<Qt.MouseButton> implements QtFlagEnumerator
Java wrapper for Qt enum Qt::MouseButton
- See Also:
Qt.MouseButtons
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description AllButtons
BackButton
ExtraButton1
ExtraButton10
ExtraButton11
ExtraButton12
ExtraButton13
ExtraButton14
ExtraButton15
ExtraButton16
ExtraButton17
ExtraButton18
ExtraButton19
ExtraButton2
ExtraButton20
ExtraButton21
ExtraButton22
ExtraButton23
ExtraButton24
ExtraButton3
ExtraButton4
ExtraButton5
ExtraButton6
ExtraButton7
ExtraButton8
ExtraButton9
ForwardButton
LeftButton
MaxMouseButton
MidButton
Deprecated.MidButton is deprecated.MiddleButton
MouseButtonMask
NoButton
RightButton
TaskButton
XButton1
XButton2
-
Method Summary
Modifier and Type Method Description Qt.MouseButtons
asFlags()
Create a QFlags of the enum entry.Qt.MouseButtons
combined(Qt.MouseButton e)
Combines this entry with other enum entry.static Qt.MouseButtons
flags(Qt.MouseButton... values)
Creates a newQt.MouseButtons
from the entries.static Qt.MouseButton
resolve(int value)
Returns the corresponding enum entry for the given value.int
value()
This function should return an integer value for the enum values of the enumeration that implements this interface.static Qt.MouseButton
valueOf(String name)
Returns the enum constant of this type with the specified name.static Qt.MouseButton[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NoButton
-
LeftButton
-
RightButton
-
MiddleButton
-
MidButton
Deprecated.MidButton is deprecated. Use MiddleButton instead -
BackButton
-
XButton1
-
ExtraButton1
-
ForwardButton
-
XButton2
-
ExtraButton2
-
TaskButton
-
ExtraButton3
-
ExtraButton4
-
ExtraButton5
-
ExtraButton6
-
ExtraButton7
-
ExtraButton8
-
ExtraButton9
-
ExtraButton10
-
ExtraButton11
-
ExtraButton12
-
ExtraButton13
-
ExtraButton14
-
ExtraButton15
-
ExtraButton16
-
ExtraButton17
-
ExtraButton18
-
ExtraButton19
-
ExtraButton20
-
ExtraButton21
-
ExtraButton22
-
ExtraButton23
-
ExtraButton24
-
AllButtons
-
MaxMouseButton
-
MouseButtonMask
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()This function should return an integer value for the enum values of the enumeration that implements this interface.- Specified by:
value
in interfaceQtEnumerator
- Specified by:
value
in interfaceQtFlagEnumerator
-
asFlags
Create a QFlags of the enum entry.- Specified by:
asFlags
in interfaceQtAbstractFlagEnumerator
- Specified by:
asFlags
in interfaceQtFlagEnumerator
- Returns:
- QFlags
-
combined
Combines this entry with other enum entry.- Parameters:
e
- enum entry- Returns:
- new flag
-
flags
Creates a newQt.MouseButtons
from the entries.- Parameters:
values
- entries- Returns:
- new flag
-
resolve
Returns the corresponding enum entry for the given value.- Parameters:
value
-- Returns:
- enum entry
-