pass-to-popup ( gesture owner -- ? )
Factor documentation > Factor handbook > UI framework > Building user interfaces > Gadget hierarchy and layouts > Glass layers
Prev:show-popup ( owner popup visible-rect -- )


Vocabulary
ui.gadgets.glass

Inputs and outputs
gesturea gesture
ownerthe popup's owner
?a boolean


Word description
Resends the gesture to the popup displayed by owner. The owner must have a popup slot. Outputs f if the gesture was handled, t otherwise.

Definition
USING: accessors ui.gadgets ui.gestures ;

IN: ui.gadgets.glass

: pass-to-popup ( gesture owner -- ? )
popup>> focusable-child resend-gesture ;