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