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