Class Popup.PositionBehavior.PointerPosition
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.Popup.PositionBehavior.PointerPosition
- All Implemented Interfaces:
Popup.PositionBehavior.Position
- Enclosing class:
- Popup.PositionBehavior
public static class Popup.PositionBehavior.PointerPosition extends java.lang.Object implements Popup.PositionBehavior.Position
the position of a pointer
-
Constructor Summary
Constructors Constructor Description PointerPosition()resolves pointer 0PointerPosition(int pointer) -
Method Summary
Modifier and Type Method Description voidapply(com.badlogic.gdx.scenes.scene2d.Event event, com.badlogic.gdx.scenes.scene2d.Actor popup)intgetPointer()voidsetPointer(int pointer)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PointerPosition
public PointerPosition()resolves pointer 0 -
PointerPosition
public PointerPosition(int pointer)- Parameters:
pointer- thepointer
-
-
Method Details
-
apply
public void apply(com.badlogic.gdx.scenes.scene2d.Event event, com.badlogic.gdx.scenes.scene2d.Actor popup)- Specified by:
applyin interfacePopup.PositionBehavior.Position- Parameters:
event- the eventpopup- the popup which position to set
-
getPointer
public int getPointer()- Returns:
- the
pointer
-
setPointer
public void setPointer(int pointer)- Parameters:
pointer- thepointerto set
-