- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QStyle.State>
- Enclosing class:
- QStyle
public static final class QStyle.State extends QFlags<QStyle.StateFlag> implements Comparable<QStyle.State>
QFlags type for enum
QStyle.StateFlag
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description State(int value)
Creates a new State with givenvalue
.State(QStyle.StateFlag... args)
Creates a new State where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QStyle.State
clone()
Clones the flagsQStyle.State
combined(QStyle.StateFlag e)
Combines this flags with enum entry.int
compareTo(QStyle.State other)
QStyle.StateFlag[]
flags()
Returns an array of flag objects represented by this State.QStyle.State
setFlag(QStyle.StateFlag e)
Sets the flage
QStyle.State
setFlag(QStyle.StateFlag e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QStyle.StateFlag>
- Parameters:
e
- enum entry- Returns:
- new State
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QStyle.StateFlag>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QStyle.StateFlag>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this State.- Overrides:
flags
in classQFlags<QStyle.StateFlag>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QStyle.StateFlag>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QStyle.State>
-