com.badlogic.gdx.scenes.scene2d.utils
Class DragScrollListener
java.lang.Object
com.badlogic.gdx.scenes.scene2d.InputListener
com.badlogic.gdx.scenes.scene2d.utils.DragListener
com.badlogic.gdx.scenes.scene2d.utils.DragScrollListener
- All Implemented Interfaces:
- EventListener
public class DragScrollListener
- extends DragListener
Causes a scroll pane to scroll when a drag goes outside the bounds of the scroll pane.
- Author:
- Nathan Sweet
Method Summary |
void |
drag(InputEvent event,
float x,
float y,
int pointer)
|
void |
dragStop(InputEvent event,
float x,
float y,
int pointer)
|
void |
setup(float minSpeedPixels,
float maxSpeedPixels,
float tickSecs,
float rampSecs)
|
Methods inherited from class com.badlogic.gdx.scenes.scene2d.utils.DragListener |
cancel, dragStart, getButton, getDeltaX, getDeltaY, getTapSquareSize, getTouchDownX, getTouchDownY, isDragging, setButton, setTapSquareSize, touchDown, touchDragged, touchUp |
DragScrollListener
public DragScrollListener(ScrollPane scroll)
setup
public void setup(float minSpeedPixels,
float maxSpeedPixels,
float tickSecs,
float rampSecs)
drag
public void drag(InputEvent event,
float x,
float y,
int pointer)
- Overrides:
drag
in class DragListener
dragStop
public void dragStop(InputEvent event,
float x,
float y,
int pointer)
- Overrides:
dragStop
in class DragListener
Copyright © 2013. All Rights Reserved.