java.lang.Object
io.qt.QFlags<QStyleOptionToolButton.ToolButtonFeature>
io.qt.widgets.QStyleOptionToolButton.ToolButtonFeatures
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QStyleOptionToolButton.ToolButtonFeatures>
- Enclosing class:
QStyleOptionToolButton
public static final class QStyleOptionToolButton.ToolButtonFeatures
extends QFlags<QStyleOptionToolButton.ToolButtonFeature>
implements Comparable<QStyleOptionToolButton.ToolButtonFeatures>
QFlags type for enum
QStyleOptionToolButton.ToolButtonFeature
- See Also:
-
Constructor Summary
ConstructorDescriptionToolButtonFeatures
(int value) Creates a new ToolButtonFeatures with givenvalue
.Creates a new ToolButtonFeatures where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
flags()
Returns an array of flag objects represented by this ToolButtonFeatures.Sets the flage
setFlag
(QStyleOptionToolButton.ToolButtonFeature e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
ToolButtonFeatures
Creates a new ToolButtonFeatures where the flags inargs
are set.- Parameters:
args
- enum entries
-
ToolButtonFeatures
public ToolButtonFeatures(int value) Creates a new ToolButtonFeatures with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
public final QStyleOptionToolButton.ToolButtonFeatures combined(QStyleOptionToolButton.ToolButtonFeature e) Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QStyleOptionToolButton.ToolButtonFeature>
- Parameters:
e
- enum entry- Returns:
- new ToolButtonFeatures
-
setFlag
public final QStyleOptionToolButton.ToolButtonFeatures setFlag(QStyleOptionToolButton.ToolButtonFeature e) Sets the flage
- Overrides:
setFlag
in classQFlags<QStyleOptionToolButton.ToolButtonFeature>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
public final QStyleOptionToolButton.ToolButtonFeatures setFlag(QStyleOptionToolButton.ToolButtonFeature e, boolean on) Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QStyleOptionToolButton.ToolButtonFeature>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this ToolButtonFeatures.- Overrides:
flags
in classQFlags<QStyleOptionToolButton.ToolButtonFeature>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QStyleOptionToolButton.ToolButtonFeature>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QStyleOptionToolButton.ToolButtonFeatures>
-