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