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 voidgetSlot(com.badlogic.gdx.scenes.scene2d.Actor actor, com.badlogic.gdx.math.Vector2 slot)booleanhandle(com.badlogic.gdx.scenes.scene2d.Event e)callsreportSlotif the event is aScrollPaneSnapAction.SlotSearchEventMethods 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)callsreportSlotif the event is aScrollPaneSnapAction.SlotSearchEvent- Specified by:
handlein interfacecom.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 getslot- the Vector2 to store the slot position in
-