com.badlogic.gdx.scenes.scene2d.utils
Class DragAndDrop.Source

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Source
Enclosing class:
DragAndDrop

public abstract static class DragAndDrop.Source
extends Object

A target where a payload can be dragged from.

Author:
Nathan Sweet

Constructor Summary
DragAndDrop.Source(Actor actor)
           
 
Method Summary
abstract  DragAndDrop.Payload dragStart(InputEvent event, float x, float y, int pointer)
           
 void dragStop(InputEvent event, float x, float y, int pointer, DragAndDrop.Target target)
           
 Actor getActor()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragAndDrop.Source

public DragAndDrop.Source(Actor actor)
Method Detail

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 © 2013. All Rights Reserved.