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