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
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  ScrollPaneSnapAction.SnapEvent.Type
    whether the slot was snapped into or out of
  • Constructor Summary

    Constructors
    Constructor Description
    SnapEvent()  
  • Method Summary

    Modifier and Type Method Description
    ScrollPaneSnapAction getAction()  
    com.badlogic.gdx.scenes.scene2d.ui.ScrollPane getScrollPane()  
    float getSlotX()  
    float getSlotY()  
    ScrollPaneSnapAction.SnapEvent.Type getType()  
    void reset()  

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Event

    cancel, getBubbles, getListenerActor, getStage, getTarget, handle, isCancelled, isCapture, isHandled, isStopped, setBubbles, setCapture, setListenerActor, setStage, setTarget, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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