de.matthiasmann.twl
Interface Widget.OffscreenMouseAdjustments

All Superinterfaces:
Widget.RenderOffscreen
Enclosing class:
Widget

public static interface Widget.OffscreenMouseAdjustments
extends Widget.RenderOffscreen


Method Summary
 int[] adjustMouseCoordinates(Widget widget, Event evt)
          Called when mouse events are routed for the widget.
 
Methods inherited from interface de.matthiasmann.twl.Widget.RenderOffscreen
getEffectExtraArea, needPainting, offscreenRenderingFailed, paintOffscreenSurface
 

Method Detail

adjustMouseCoordinates

int[] adjustMouseCoordinates(Widget widget,
                             Event evt)
Called when mouse events are routed for the widget.

All mouse coordinates in TWL are absolute.

The returned object can be reused on the next call and should not be stored by the caller.

Parameters:
widget - the widget
evt - the mouse event
Returns:
the new mouse coordinates in x, y order