Class Popup.PositionBehavior.EventPosition
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.Popup.PositionBehavior.EventPosition
- All Implemented Interfaces:
Popup.PositionBehavior.Position
- Enclosing class:
- Popup.PositionBehavior
public static class Popup.PositionBehavior.EventPosition extends java.lang.Object implements Popup.PositionBehavior.Position
The position of the event if it is an
InputEvent
. The position is composed of InputEvent.getStageX()
and InputEvent.getStageY()
.-
Constructor Summary
Constructors Constructor Description EventPosition()
-
Method Summary
Modifier and Type Method Description void
apply(com.badlogic.gdx.scenes.scene2d.Event event, com.badlogic.gdx.scenes.scene2d.Actor popup)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EventPosition
public EventPosition()
-
-
Method Details
-
apply
public void apply(com.badlogic.gdx.scenes.scene2d.Event event, com.badlogic.gdx.scenes.scene2d.Actor popup)- Specified by:
apply
in interfacePopup.PositionBehavior.Position
- Parameters:
event
- the eventpopup
- the popup which position to set
-