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 ClassesModifier and TypeClassDescriptionstatic enumwhether the slot was snapped into or out of -
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
SnapEvent
public SnapEvent()
-
-
Method Details
-
reset
public void reset()- Specified by:
resetin interfacecom.badlogic.gdx.utils.Pool.Poolable- Overrides:
resetin classcom.badlogic.gdx.scenes.scene2d.Event
-
getScrollPane
public com.badlogic.gdx.scenes.scene2d.ui.ScrollPane getScrollPane()- Returns:
- the ScrollPane that snapped
-
getAction
- Returns:
- the
action
-
getType
- Returns:
- the
type
-
getSlotX
public float getSlotX()- Returns:
- the
slotX
-
getSlotY
public float getSlotY()- Returns:
- the
slotY
-