Maven module :un.engine : engine-ui :
Class : un.engine.ui.widget.Widgets
Extends/Implements : -
Subclasses : -

Convinient methods on widgets.
author  Johann Sorel


Variables : -
Functions : convertEvent, forwardEvent, getChildAt, pickAt, pruneStackAt




Forward mouse event to widget.
The given mouse event is expected to be in the root coordinate system.
param  child
param  mevent
public Vector convertEvent (Widget child, MouseEvent mevent)


Forward mouse event to widget if it intersects it's extent.
param  parent
param  child
param  wasInWidget indicate if previous mouse event was in widget,
this might create additional mouse enter or mouse exit events.
param  mevent
return  true if mousevent position is in widget.
public boolean forwardEvent (Widget parent, Widget child, MouseEvent mevent, boolean wasInWidget)


Find the children at given position in the parent.
param  parent
param  x
param  y
return
public Widget getChildAt (WContainer parent, double x, double y)

public Widget pickAt (WContainer parent, double x, double y)


Get the stack of widgets at given position.
The first widget in the sequence is the given container.
param  parent
param  x
param  y
return
public Sequence pruneStackAt (WContainer parent, double x, double y)