Package limn.scene.event
Class DropEvent
java.lang.Object
limn.scene.event.DropEvent
-
Constructor Summary
ConstructorsConstructorDescriptionDropEvent(float x, float y, int modifiers, boolean keyboard, Offer offer, DropAction action, @Nullable Object source) -
Method Summary
-
Constructor Details
-
DropEvent
public DropEvent(float x, float y, int modifiers, boolean keyboard, Offer offer, DropAction action, @Nullable Object source) - Parameters:
x- the pointer, in scene coordinatesy- the pointer, in scene coordinatesmodifiers- the modifier keys heldkeyboard- whether the keyboard drove the dragoffer- what was draggedaction- the action the widget acceptedsource- the widget the drag began on, or null when it began in another program
-
-
Method Details
-
x
public float x()- Returns:
- the pointer, in scene coordinates
-
y
public float y()- Returns:
- the pointer, in scene coordinates
-
modifiers
public int modifiers()- Returns:
- the modifier keys held, as
Keys.MOD_*bits
-
isKeyboard
public boolean isKeyboard()- Returns:
- whether the keyboard drove the drag: the place is the one the widget kept
-
offer
- Returns:
- what was dragged; a read may complete after this event returns
-
action
- Returns:
- the action this widget accepted while the drag was over it
-
source
- Returns:
- the widget the drag began on, or null when it began in another program
-
reject
public void reject()Refuses the drop after all: the source is told that nothing took it. -
isRejected
public boolean isRejected()- Returns:
- whether the drop was refused
-