com.badlogic.gdx.scenes.scene2d.utils
Class DragAndDrop.Source
java.lang.Object
com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Source
- Enclosing class:
- DragAndDrop
public abstract static class DragAndDrop.Source
- extends java.lang.Object
A target where a payload can be dragged from.
- Author:
- Nathan Sweet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DragAndDrop.Source
public DragAndDrop.Source(Actor actor)
dragStart
public abstract DragAndDrop.Payload dragStart(InputEvent event,
float x,
float y,
int pointer)
- Returns:
- May be null.
dragStop
public void dragStop(InputEvent event,
float x,
float y,
int pointer,
DragAndDrop.Target target)
- Parameters:
target
- null if not dropped on a valid target.
getActor
public Actor getActor()
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)