Class ScrollPaneSnapAction.Slot

java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.ScrollPaneSnapAction.Slot
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.EventListener
Direct Known Subclasses:
ScrollPaneSnapAction.AlignSlot, ScrollPaneSnapAction.ValueSlot
Enclosing class:
ScrollPaneSnapAction

public abstract static class ScrollPaneSnapAction.Slot
extends java.lang.Object
implements com.badlogic.gdx.scenes.scene2d.EventListener
An actor with a slot added to its listeners can be snapped to. Calls reportSlot on SlotSearchEvents.
Since:
0.10.0
  • Constructor Summary

    Constructors
    Constructor Description
    Slot()  
  • Method Summary

    Modifier and Type Method Description
    abstract void getSlot​(com.badlogic.gdx.scenes.scene2d.Actor actor, com.badlogic.gdx.math.Vector2 slot)  
    boolean handle​(com.badlogic.gdx.scenes.scene2d.Event e)
    calls reportSlot if the event is a ScrollPaneSnapAction.SlotSearchEvent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Slot

      public Slot()
  • Method Details

    • handle

      public boolean handle​(com.badlogic.gdx.scenes.scene2d.Event e)
      calls reportSlot if the event is a ScrollPaneSnapAction.SlotSearchEvent
      Specified by:
      handle in interface com.badlogic.gdx.scenes.scene2d.EventListener
    • getSlot

      public abstract void getSlot​(com.badlogic.gdx.scenes.scene2d.Actor actor, com.badlogic.gdx.math.Vector2 slot)
      Parameters:
      actor - the Actor which slot to get
      slot - the Vector2 to store the slot position in