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 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 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 interface Popup.PositionBehavior.Position
      Parameters:
      event - the event
      popup - the popup which position to set