find-world ( gadget -- world/f )


Vocabulary
ui.gadgets.worlds

Inputs and outputs
gadgeta gadget
world/fa world or f


Word description
Finds the world containing the gadget, or outputs f if the gadget is not grafted.

Definition
USING: ui.gadgets ;

IN: ui.gadgets.worlds

: find-world ( gadget -- world/f ) [ world? ] find-parent ;