- All Implemented Interfaces:
Serializable,Cloneable,Comparable<QCamera.Features>
- Enclosing class:
- QCamera
public static final class QCamera.Features
extends QFlags<QCamera.Feature>
implements Comparable<QCamera.Features>
QFlags type for enum
QCamera.Feature- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFeatures(int value) Creates a new Features with givenvalue.Features(QCamera.Feature... args) Creates a new Features where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QCamera.Featuresclone()Clones the flagsfinal QCamera.FeaturesCombines this flags with enum entry.final intcompareTo(QCamera.Features other) final QCamera.Feature[]flags()Returns an array of flag objects represented by this Features.final QCamera.FeaturesSets the flagefinal QCamera.FeaturessetFlag(QCamera.Feature e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
Features
Creates a new Features where the flags inargsare set.- Parameters:
args- enum entries
-
Features
public Features(int value) Creates a new Features with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<QCamera.Feature>- Parameters:
e- enum entry- Returns:
- new Features
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QCamera.Feature>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classQFlags<QCamera.Feature>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this Features.- Overrides:
flagsin classQFlags<QCamera.Feature>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QCamera.Feature>
-
compareTo
- Specified by:
compareToin interfaceComparable<QCamera.Features>
-