Class ScrollPaneSnapAction.SnapEvent

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Event
net.dermetfan.gdx.scenes.scene2d.ui.ScrollPaneSnapAction.SnapEvent
All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable
Enclosing class:
ScrollPaneSnapAction

public static class ScrollPaneSnapAction.SnapEvent extends com.badlogic.gdx.scenes.scene2d.Event
Fired when the ScrollPane snaps into or out of a slot. Cancelling this event will cause the ScrollPane to not snap into/out of the slot.
Since:
0.10.0
  • Constructor Details

    • SnapEvent

      public SnapEvent()
  • Method Details

    • reset

      public void reset()
      Specified by:
      reset in interface com.badlogic.gdx.utils.Pool.Poolable
      Overrides:
      reset in class com.badlogic.gdx.scenes.scene2d.Event
    • getScrollPane

      public com.badlogic.gdx.scenes.scene2d.ui.ScrollPane getScrollPane()
      Returns:
      the ScrollPane that snapped
    • getAction

      public ScrollPaneSnapAction getAction()
      Returns:
      the action
    • getType

      Returns:
      the type
    • getSlotX

      public float getSlotX()
      Returns:
      the slotX
    • getSlotY

      public float getSlotY()
      Returns:
      the slotY