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