- 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:
-
Constructor Summary
ConstructorDescriptionState()
Creates a new State.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 TypeMethodDescriptionfinal QStyle.State
clone()
Clones the flagsfinal QStyle.State
Combines this flags with enum entry.final int
compareTo
(QStyle.State other) final QStyle.StateFlag []
flags()
Returns an array of flag objects represented by this State.final QStyle.State
Sets the flage
final QStyle.State
setFlag
(QStyle.StateFlag e, boolean on) Sets or clears the flagflag
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
State
public State()Creates a new State. -
State
Creates a new State where the flags inargs
are set.- Parameters:
args
- enum entries
-
State
public State(int value) Creates a new State with givenvalue
.- Parameters:
value
-
-
-
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>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-