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