Gadget geometry
Factor handbook » UI framework » Building user interfaces

Next:Gadget hierarchy and layouts

The gadget class inherits from the rect class, and thus all gadgets have a bounding box:

Word for converting from a child gadget's coordinate system to a parent's:
relative-loc ( fromgadget togadget -- loc )

screen-loc ( gadget -- loc )

Hit testing:
pick-up ( point gadget -- child/f )

children-on ( rect gadget -- seq )