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