- All Implemented Interfaces:
QtAbstractEnumerator
,QtAbstractFlagEnumerator
,QtEnumerator
,QtFlagEnumerator
,Serializable
,Comparable<Qt.MouseButton>
,Constable
- Enclosing class:
Qt
Java wrapper for Qt enum Qt::MouseButton
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresenting Qt::AllButtonsRepresenting Qt::BackButtonRepresenting Qt::ExtraButton1Representing Qt::ExtraButton10Representing Qt::ExtraButton11Representing Qt::ExtraButton12Representing Qt::ExtraButton13Representing Qt::ExtraButton14Representing Qt::ExtraButton15Representing Qt::ExtraButton16Representing Qt::ExtraButton17Representing Qt::ExtraButton18Representing Qt::ExtraButton19Representing Qt::ExtraButton2Representing Qt::ExtraButton20Representing Qt::ExtraButton21Representing Qt::ExtraButton22Representing Qt::ExtraButton23Representing Qt::ExtraButton24Representing Qt::ExtraButton3Representing Qt::ExtraButton4Representing Qt::ExtraButton5Representing Qt::ExtraButton6Representing Qt::ExtraButton7Representing Qt::ExtraButton8Representing Qt::ExtraButton9Representing Qt::ForwardButtonRepresenting Qt::LeftButtonRepresenting Qt::MaxMouseButtonRepresenting Qt::MiddleButtonRepresenting Qt::MouseButtonMaskRepresenting Qt::NoButtonRepresenting Qt::RightButtonRepresenting Qt::TaskButtonRepresenting Qt::XButton1Representing Qt::XButton2 -
Method Summary
Modifier and TypeMethodDescriptionasFlags()
Create a QFlags of the enum entry.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
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.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface io.qt.QtEnumerator
getDeclaringClass, name, ordinal
-
Enum Constant Details
-
NoButton
Representing Qt::NoButton
-
LeftButton
Representing Qt::LeftButton
-
RightButton
Representing Qt::RightButton
-
MiddleButton
Representing Qt::MiddleButton
-
BackButton
Representing Qt::BackButton
-
XButton1
Representing Qt::XButton1
-
ExtraButton1
Representing Qt::ExtraButton1
-
ForwardButton
Representing Qt::ForwardButton
-
XButton2
Representing Qt::XButton2
-
ExtraButton2
Representing Qt::ExtraButton2
-
TaskButton
Representing Qt::TaskButton
-
ExtraButton3
Representing Qt::ExtraButton3
-
ExtraButton4
Representing Qt::ExtraButton4
-
ExtraButton5
Representing Qt::ExtraButton5
-
ExtraButton6
Representing Qt::ExtraButton6
-
ExtraButton7
Representing Qt::ExtraButton7
-
ExtraButton8
Representing Qt::ExtraButton8
-
ExtraButton9
Representing Qt::ExtraButton9
-
ExtraButton10
Representing Qt::ExtraButton10
-
ExtraButton11
Representing Qt::ExtraButton11
-
ExtraButton12
Representing Qt::ExtraButton12
-
ExtraButton13
Representing Qt::ExtraButton13
-
ExtraButton14
Representing Qt::ExtraButton14
-
ExtraButton15
Representing Qt::ExtraButton15
-
ExtraButton16
Representing Qt::ExtraButton16
-
ExtraButton17
Representing Qt::ExtraButton17
-
ExtraButton18
Representing Qt::ExtraButton18
-
ExtraButton19
Representing Qt::ExtraButton19
-
ExtraButton20
Representing Qt::ExtraButton20
-
ExtraButton21
Representing Qt::ExtraButton21
-
ExtraButton22
Representing Qt::ExtraButton22
-
ExtraButton23
Representing Qt::ExtraButton23
-
ExtraButton24
Representing Qt::ExtraButton24
-
AllButtons
Representing Qt::AllButtons
-
MaxMouseButton
Representing Qt::MaxMouseButton
-
MouseButtonMask
Representing Qt::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
-