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