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