- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QCamera.CaptureModes>
- Enclosing class:
- QCamera
public static final class QCamera.CaptureModes extends QFlags<QCamera.CaptureMode> implements Comparable<QCamera.CaptureModes>
QFlags type for enum
QCamera.CaptureMode
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description CaptureModes(int value)
Creates a new CaptureModes with givenvalue
.CaptureModes(QCamera.CaptureMode... args)
Creates a new CaptureModes where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QCamera.CaptureModes
clone()
Clones the flagsQCamera.CaptureModes
combined(QCamera.CaptureMode e)
Combines this flags with enum entry.int
compareTo(QCamera.CaptureModes other)
QCamera.CaptureMode[]
flags()
Returns an array of flag objects represented by this CaptureModes.QCamera.CaptureModes
setFlag(QCamera.CaptureMode e)
Sets the flage
QCamera.CaptureModes
setFlag(QCamera.CaptureMode e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
CaptureModes
Creates a new CaptureModes where the flags inargs
are set.- Parameters:
args
- enum entries
-
CaptureModes
public CaptureModes(int value)Creates a new CaptureModes with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QCamera.CaptureMode>
- Parameters:
e
- enum entry- Returns:
- new CaptureModes
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QCamera.CaptureMode>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QCamera.CaptureMode>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this CaptureModes.- Overrides:
flags
in classQFlags<QCamera.CaptureMode>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QCamera.CaptureMode>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QCamera.CaptureModes>
-