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