- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QPainter.PixmapFragmentHints>
- Enclosing class:
QPainter
public static final class QPainter.PixmapFragmentHints
extends QFlags<QPainter.PixmapFragmentHint>
implements Comparable<QPainter.PixmapFragmentHints>
QFlags
type for enum QPainter.PixmapFragmentHint
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new PixmapFragmentHints.PixmapFragmentHints
(int value) Creates a new PixmapFragmentHints with givenvalue
.Creates a new PixmapFragmentHints where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
final QPainter.PixmapFragmentHint []
flags()
Returns an array of flag objects represented by this PixmapFragmentHints.Sets the flage
setFlag
(QPainter.PixmapFragmentHint 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
-
PixmapFragmentHints
public PixmapFragmentHints()Creates a new PixmapFragmentHints. -
PixmapFragmentHints
Creates a new PixmapFragmentHints where the flags inargs
are set.- Parameters:
args
- enum entries
-
PixmapFragmentHints
public PixmapFragmentHints(int value) Creates a new PixmapFragmentHints with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QPainter.PixmapFragmentHint>
- Parameters:
e
- enum entry- Returns:
- new PixmapFragmentHints
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QPainter.PixmapFragmentHint>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QPainter.PixmapFragmentHint>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this PixmapFragmentHints.- Overrides:
flags
in classQFlags<QPainter.PixmapFragmentHint>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QPainter.PixmapFragmentHint>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QPainter.PixmapFragmentHints>
-
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
-