Class Popup.PositionBehavior.OffsetPosition

java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.Popup.PositionBehavior.OffsetPosition
All Implemented Interfaces:
Popup.PositionBehavior.Position
Enclosing class:
Popup.PositionBehavior

public static class Popup.PositionBehavior.OffsetPosition extends Object implements Popup.PositionBehavior.Position
offsets the popup by a certain amount
  • Constructor Details

    • OffsetPosition

      public OffsetPosition(float x, float y)
      Parameters:
      x - the x
      y - the y
  • 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
    • getX

      public float getX()
      Returns:
      the x
    • setX

      public void setX(float x)
      Parameters:
      x - the x to set
    • getY

      public float getY()
      Returns:
      the y
    • setY

      public void setY(float y)
      Parameters:
      y - the y to set