java.lang.Object
io.qt.QFlags<QWindowsApplication.DarkModeHandlingFlag>
io.qt.gui.nativeinterface.QWindowsApplication.DarkModeHandling
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QWindowsApplication.DarkModeHandling>
- Enclosing interface:
QWindowsApplication
public static final class QWindowsApplication.DarkModeHandling
extends QFlags<QWindowsApplication.DarkModeHandlingFlag>
implements Comparable<QWindowsApplication.DarkModeHandling>
QFlags
type for enum QWindowsApplication.DarkModeHandlingFlag
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DarkModeHandling.DarkModeHandling
(int value) Creates a new DarkModeHandling with givenvalue
.Creates a new DarkModeHandling where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
flags()
Returns an array of flag objects represented by this DarkModeHandling.Sets the flage
setFlag
(QWindowsApplication.DarkModeHandlingFlag 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
-
DarkModeHandling
public DarkModeHandling()Creates a new DarkModeHandling. -
DarkModeHandling
Creates a new DarkModeHandling where the flags inargs
are set.- Parameters:
args
- enum entries
-
DarkModeHandling
public DarkModeHandling(int value) Creates a new DarkModeHandling with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
public final QWindowsApplication.DarkModeHandling combined(QWindowsApplication.DarkModeHandlingFlag e) Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QWindowsApplication.DarkModeHandlingFlag>
- Parameters:
e
- enum entry- Returns:
- new DarkModeHandling
-
setFlag
public final QWindowsApplication.DarkModeHandling setFlag(QWindowsApplication.DarkModeHandlingFlag e) Sets the flage
- Overrides:
setFlag
in classQFlags<QWindowsApplication.DarkModeHandlingFlag>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
public final QWindowsApplication.DarkModeHandling setFlag(QWindowsApplication.DarkModeHandlingFlag e, boolean on) Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QWindowsApplication.DarkModeHandlingFlag>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this DarkModeHandling.- Overrides:
flags
in classQFlags<QWindowsApplication.DarkModeHandlingFlag>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QWindowsApplication.DarkModeHandlingFlag>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QWindowsApplication.DarkModeHandling>
-
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
-