- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FocusModes(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 Type Method Description QCameraFocus.FocusModes
clone()
Clones the flagsQCameraFocus.FocusModes
combined(QCameraFocus.FocusMode e)
Combines this flags with enum entry.int
compareTo(QCameraFocus.FocusModes other)
QCameraFocus.FocusMode[]
flags()
Returns an array of flag objects represented by this FocusModes.QCameraFocus.FocusModes
setFlag(QCameraFocus.FocusMode e)
Sets the flage
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>
-