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 classScrollPaneSnapAction.SnapEvent.Typewhether the slot was snapped into or out of -
Constructor Summary
Constructors Constructor Description SnapEvent() -
Method Summary
Modifier and Type Method Description ScrollPaneSnapActiongetAction()com.badlogic.gdx.scenes.scene2d.ui.ScrollPanegetScrollPane()floatgetSlotX()floatgetSlotY()ScrollPaneSnapAction.SnapEvent.TypegetType()voidreset()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, stopMethods 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:
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
-