- 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
ConstructorsConstructorDescriptionCreates a new WindowStates.WindowStates(int value) Creates a new WindowStates with givenvalue.WindowStates(Qt.WindowState ... args) Creates a new WindowStates where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal Qt.WindowStatesclone()Clones the flagsfinal Qt.WindowStatesCombines this flags with enum entry.final intcompareTo(Qt.WindowStates other) final Qt.WindowState []flags()Returns an array of flag objects represented by this WindowStates.final Qt.WindowStatesSets the flagefinal Qt.WindowStatessetFlag(Qt.WindowState 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
-
WindowStates
public WindowStates()Creates a new WindowStates. -
WindowStates
Creates a new WindowStates where the flags inargsare 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:
combinedin classQFlags<Qt.WindowState>- Parameters:
e- enum entry- Returns:
- new WindowStates
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<Qt.WindowState>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<Qt.WindowState>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<Qt.WindowState>
-
compareTo
- Specified by:
compareToin 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
-