Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
copy-clipboard ( string gadget clipboard -- )
Factor documentation
>
Factor handbook
>
UI framework
>
Implementing new gadgets
>
Clipboard protocol
Prev:
paste-clipboard ( gadget clipboard -- )
Next:
clipboard-contents ( clipboard -- string )
Vocabulary
ui.clipboards
Inputs and outputs
string
a
string
gadget
a
gadget
clipboard
an object
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
;