Handbook
Glossary
paste-clipboard ( gadget clipboard -- )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
Clipboard protocol
Next:
copy-clipboard ( string gadget clipboard -- )
Vocabulary
ui
.
clipboards
Inputs
gadget
a
gadget
clipboard
an
object
Outputs
None
Generic word contract
Arranges for the contents of the clipboard to be inserted into the gadget at some point in the near future via a call to
user-input
. The gadget must be grafted.
Definition
IN:
ui.clipboards
GENERIC:
paste-clipboard
( gadget clipboard -- )
Methods
USING:
kernel
ui.clipboards
ui.gestures
;
M:
object
paste-clipboard
clipboard-contents
[
swap
user-input
]
[
drop
]
if*
;