- 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
ConstructorsConstructorDescriptionCreates a new Alignment.Alignment(int value) Creates a new Alignment with givenvalue.Alignment(Qt.AlignmentFlag ... args) Creates a new Alignment where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal Qt.Alignmentclone()Clones the flagsfinal Qt.AlignmentCombines this flags with enum entry.final intcompareTo(Qt.Alignment other) final Qt.AlignmentFlag []flags()Returns an array of flag objects represented by this Alignment.final Qt.AlignmentSets the flagefinal Qt.AlignmentsetFlag(Qt.AlignmentFlag e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
Alignment
public Alignment()Creates a new Alignment. -
Alignment
Creates a new Alignment where the flags inargsare 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:
combinedin classQFlags<Qt.AlignmentFlag>- Parameters:
e- enum entry- Returns:
- new Alignment
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<Qt.AlignmentFlag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<Qt.AlignmentFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<Qt.AlignmentFlag>
-
compareTo
- Specified by:
compareToin interfaceComparable<Qt.Alignment>
-
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
-