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