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