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 Object implements Popup.PositionBehavior.Position
the position of a pointer
  • Constructor Details

    • PointerPosition

      public PointerPosition()
      resolves pointer 0
    • PointerPosition

      public PointerPosition(int pointer)
      Parameters:
      pointer - the pointer
  • 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
    • getPointer

      public int getPointer()
      Returns:
      the pointer
    • setPointer

      public void setPointer(int pointer)
      Parameters:
      pointer - the pointer to set