- 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:
-
Constructor Summary
ConstructorDescriptionCaptureModes
(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 TypeMethodDescriptionfinal QCamera.CaptureModes
clone()
Clones the flagsfinal QCamera.CaptureModes
Combines this flags with enum entry.final int
compareTo
(QCamera.CaptureModes other) final QCamera.CaptureMode[]
flags()
Returns an array of flag objects represented by this CaptureModes.final QCamera.CaptureModes
Sets the flage
final 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>
-