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