- All Implemented Interfaces:
QtAbstractEnumerator
,QtAbstractFlagEnumerator
,QtEnumerator
,QtFlagEnumerator
,Serializable
,Comparable<QStyle.StateFlag>
,Constable
- Enclosing class:
QStyle
Java wrapper for Qt enum QStyle::StateFlag
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresentingQStyle::
State_Active RepresentingQStyle::
State_AutoRaise RepresentingQStyle::
State_Bottom RepresentingQStyle::
State_Children RepresentingQStyle::
State_DownArrow RepresentingQStyle::
State_Editing RepresentingQStyle::
State_Enabled RepresentingQStyle::
State_FocusAtBorder RepresentingQStyle::
State_HasEditFocus RepresentingQStyle::
State_HasFocus RepresentingQStyle::
State_Horizontal RepresentingQStyle::
State_Item RepresentingQStyle::
State_KeyboardFocusChange RepresentingQStyle::
State_Mini RepresentingQStyle::
State_MouseOver RepresentingQStyle::
State_NoChange RepresentingQStyle::
State_None RepresentingQStyle::
State_Off RepresentingQStyle::
State_On RepresentingQStyle::
State_Open RepresentingQStyle::
State_Raised RepresentingQStyle::
State_ReadOnly RepresentingQStyle::
State_Selected RepresentingQStyle::
State_Sibling RepresentingQStyle::
State_Small RepresentingQStyle::
State_Sunken RepresentingQStyle::
State_Top RepresentingQStyle::
State_UpArrow RepresentingQStyle::
State_Window -
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 QStyle.State
flags
(QStyle.StateFlag ... values) Creates a newQStyle.State
from the entries.static QStyle.StateFlag
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 QStyle.StateFlag
Returns the enum constant of this type with the specified name.static QStyle.StateFlag[]
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
-
State_None
Representing
QStyle::
State_None -
State_Enabled
Representing
QStyle::
State_Enabled -
State_Raised
Representing
QStyle::
State_Raised -
State_Sunken
Representing
QStyle::
State_Sunken -
State_Off
Representing
QStyle::
State_Off -
State_NoChange
Representing
QStyle::
State_NoChange -
State_On
Representing
QStyle::
State_On -
State_DownArrow
Representing
QStyle::
State_DownArrow -
State_Horizontal
Representing
QStyle::
State_Horizontal -
State_HasFocus
Representing
QStyle::
State_HasFocus -
State_Top
Representing
QStyle::
State_Top -
State_Bottom
Representing
QStyle::
State_Bottom -
State_FocusAtBorder
Representing
QStyle::
State_FocusAtBorder -
State_AutoRaise
Representing
QStyle::
State_AutoRaise -
State_MouseOver
Representing
QStyle::
State_MouseOver -
State_UpArrow
Representing
QStyle::
State_UpArrow -
State_Selected
Representing
QStyle::
State_Selected -
State_Active
Representing
QStyle::
State_Active -
State_Window
Representing
QStyle::
State_Window -
State_Open
Representing
QStyle::
State_Open -
State_Children
Representing
QStyle::
State_Children -
State_Item
Representing
QStyle::
State_Item -
State_Sibling
Representing
QStyle::
State_Sibling -
State_Editing
Representing
QStyle::
State_Editing -
State_KeyboardFocusChange
Representing
QStyle::
State_KeyboardFocusChange -
State_HasEditFocus
Representing
QStyle::
State_HasEditFocus -
State_ReadOnly
Representing
QStyle::
State_ReadOnly -
State_Small
Representing
QStyle::
State_Small -
State_Mini
Representing
QStyle::
State_Mini
-
-
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 newQStyle.State
from the entries.- Parameters:
values
- entries- Returns:
- new flag
-
resolve
Returns the corresponding enum entry for the given value.- Parameters:
value
-- Returns:
- enum entry
-