Handbook
Glossary
hide-glass-hook ( gadget -- )
Factor handbook
»
UI framework
»
Building user interfaces
»
Gadget hierarchy and layouts
»
Glass layers
Prev:
hide-glass ( child -- )
Next:
show-popup ( owner popup visible-rect -- )
Vocabulary
ui
.
gadgets
.
glass
Inputs
gadget
a
gadget
Outputs
None
Word description
Called when a gadget displayed in a glass layer is hidden. The gadget can perform cleanup tasks here.
Definition
IN:
ui.gadgets.glass
GENERIC:
hide-glass-hook
( gadget -- )
Methods
USING:
kernel
ui.gadgets
ui.gadgets.glass
;
M:
gadget
hide-glass-hook
drop
;
USING:
accessors
kernel
ui.gadgets
ui.gadgets.glass
ui.gadgets.glass.private
;
M:
popup
hide-glass-hook
dup
owner>>
2dup
popup>>
eq?
[
f
>>popup
request-focus
drop
]
[
2drop
]
if
;
USING:
accessors
kernel
ui.gadgets.buttons.private
ui.gadgets.glass
ui.gadgets.presentations
;
M:
presentation-menu
hide-glass-hook
presentation>>
button-pen-boundary
>>boundary
drop
;