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