- 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 inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QGamepadManager.GamepadAxis []flags()Returns an array of flag objects represented by this GamepadAxes.Sets the flagesetFlag(QGamepadManager.GamepadAxis e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
GamepadAxes
public GamepadAxes()Creates a new GamepadAxes. -
GamepadAxes
Creates a new GamepadAxes where the flags inargsare 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:
combinedin classQFlags<QGamepadManager.GamepadAxis>- Parameters:
e- enum entry- Returns:
- new GamepadAxes
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QGamepadManager.GamepadAxis>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QGamepadManager.GamepadAxis>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QGamepadManager.GamepadAxis>
-
compareTo
- Specified by:
compareToin 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
-