- 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:
-
Constructor Summary
ConstructorDescriptionCreates a new GraphicsItemFlags.GraphicsItemFlags
(int value) Creates a new GraphicsItemFlags with givenvalue
.Creates a new GraphicsItemFlags where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
final QGraphicsItem.GraphicsItemFlag []
flags()
Returns an array of flag objects represented by this GraphicsItemFlags.Sets the flage
setFlag
(QGraphicsItem.GraphicsItemFlag 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
-
GraphicsItemFlags
public GraphicsItemFlags()Creates a new GraphicsItemFlags. -
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>
-
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
-