Handbook
Glossary
copy-clipboard ( string gadget clipboard -- )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
Clipboard protocol
Prev:
paste-clipboard ( gadget clipboard -- )
Next:
clipboard-contents ( clipboard -- string )
Vocabulary
ui
.
clipboards
Inputs
string
a
string
gadget
a
gadget
clipboard
an
object
Outputs
None
Generic word contract
Arranges for the string to be copied to the clipboard on behalf of the gadget. The gadget must be grafted.
Definition
IN:
ui.clipboards
GENERIC:
copy-clipboard
( string gadget clipboard -- )
Methods
USING:
kernel
ui.clipboards
;
M:
object
copy-clipboard
nip
set-clipboard-contents
;