- 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
ConstructorsConstructorDescriptionState()Creates a new State.State(int value) Creates a new State with givenvalue.State(QStyle.StateFlag ... args) Creates a new State where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QStyle.Stateclone()Clones the flagsfinal QStyle.StateCombines this flags with enum entry.final intcompareTo(QStyle.State other) final QStyle.StateFlag []flags()Returns an array of flag objects represented by this State.final QStyle.StateSets the flagefinal QStyle.StatesetFlag(QStyle.StateFlag e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
State
public State()Creates a new State. -
State
Creates a new State where the flags inargsare 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:
combinedin classQFlags<QStyle.StateFlag>- Parameters:
e- enum entry- Returns:
- new State
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QStyle.StateFlag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QStyle.StateFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QStyle.StateFlag>
-
compareTo
- Specified by:
compareToin 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
-