Package ch.bailu.gtk.gtk
Interface DropTarget.OnEnter
- Enclosing class:
- DropTarget
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionint
onEnter
(double x, double y) Emitted on the drop site when the pointer enters the widget.
-
Method Details
-
onEnter
int onEnter(double x, double y) Emitted on the drop site when the pointer enters the widget.
It can be used to set up custom highlighting.- Parameters:
x
- the x coordinate of the current pointer positiony
- the y coordinate of the current pointer position- Returns:
- Preferred action for this drag operation or 0 if dropping is not supported at the current @x,@y location.
-