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 0
    PointerPosition​(int pointer)  
  • Method Summary

    Modifier and Type Method Description
    void apply​(com.badlogic.gdx.scenes.scene2d.Event event, com.badlogic.gdx.scenes.scene2d.Actor popup)  
    int getPointer()  
    void setPointer​(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 - 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