relative-loc ( fromgadget togadget -- loc )
Factor handbook » UI framework » Building user interfaces » Gadget geometry

Prev:Rectangles
Next:screen-loc ( gadget -- loc )


Vocabulary
ui.gadgets

Inputs
fromgadgeta gadget
togadgeta gadget


Outputs
loca pair of integers


Word description
Outputs the location of the top-left corner of togadget relative to the coordinate system of fromgadget.

Errors
Throws an error if togadget is not contained in a child of fromgadget.

Definition