children-on ( rect gadget -- seq )
Factor handbook > UI framework > Building user interfaces > Gadget geometry

Prev:pick-up ( point gadget -- child/f )


Inputs and outputs
recta rect
gadgeta gadget
seqa sequence of gadgets

Generic word contract
Outputs a sequence of gadgets which potentially intersect a rectangle in the co-ordinate system of the gadget.

This does not have to be an accurate intersection test, and simply returning children>> is a valid implementation. However, an accurate intersection test reduces the amount of work done when drawing this gadget if it is partially clipped and not all children are visible.


GENERIC: children-on ( rect gadget -- seq )