- 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
ConstructorDescriptionGamepadButtons
(int value) Creates a new GamepadButtons with givenvalue
.GamepadButtons
(QGamepadManager.GamepadButton ... args) Creates a new GamepadButtons where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
final QGamepadManager.GamepadButton []
flags()
Returns an array of flag objects represented by this GamepadButtons.Sets the flage
setFlag
(QGamepadManager.GamepadButton e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
GamepadButtons
Creates a new GamepadButtons where the flags inargs
are 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:
combined
in classQFlags<QGamepadManager.GamepadButton>
- Parameters:
e
- enum entry- Returns:
- new GamepadButtons
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QGamepadManager.GamepadButton>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in 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:
flags
in classQFlags<QGamepadManager.GamepadButton>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QGamepadManager.GamepadButton>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QGamepadManager.GamepadButtons>
-