- 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 ConstantDescriptionRepresentingQt::
AllButtons RepresentingQt::
BackButton RepresentingQt::
ExtraButton1 RepresentingQt::
ExtraButton10 RepresentingQt::
ExtraButton11 RepresentingQt::
ExtraButton12 RepresentingQt::
ExtraButton13 RepresentingQt::
ExtraButton14 RepresentingQt::
ExtraButton15 RepresentingQt::
ExtraButton16 RepresentingQt::
ExtraButton17 RepresentingQt::
ExtraButton18 RepresentingQt::
ExtraButton19 RepresentingQt::
ExtraButton2 RepresentingQt::
ExtraButton20 RepresentingQt::
ExtraButton21 RepresentingQt::
ExtraButton22 RepresentingQt::
ExtraButton23 RepresentingQt::
ExtraButton24 RepresentingQt::
ExtraButton3 RepresentingQt::
ExtraButton4 RepresentingQt::
ExtraButton5 RepresentingQt::
ExtraButton6 RepresentingQt::
ExtraButton7 RepresentingQt::
ExtraButton8 RepresentingQt::
ExtraButton9 RepresentingQt::
ForwardButton RepresentingQt::
LeftButton RepresentingQt::
MaxMouseButton RepresentingQt::
MiddleButton RepresentingQt::
MouseButtonMask RepresentingQt::
NoButton RepresentingQt::
RightButton RepresentingQt::
TaskButton RepresentingQt::
XButton1 RepresentingQt::
XButton2 -
Method Summary
Modifier and TypeMethodDescriptionasFlags()
Create a QFlags of the enum entry.Excludes other enum entry from a flag of this 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
-
cleared
Excludes other enum entry from a flag of this 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
-