clipboard: api to list supported types, reading and writing markup

This commit is contained in:
deepak1556 2015-05-22 14:59:11 +05:30
parent 4a376694b4
commit 5584e3fd49
4 changed files with 56 additions and 12 deletions

View file

@ -1,9 +1,11 @@
binding = process.atomBinding 'clipboard'
module.exports =
has: (format, type='standard') -> binding._has format, type
availableFormats: (type='standard') -> binding._availableFormats type
read: (format, type='standard') -> binding._read format, type
readText: (type='standard') -> binding._readText type
writeText: (text, type='standard') -> binding._writeText text, type
readHtml: (type='standard') -> binding._readHtml type
writeHtml: (markup, type='standard') -> binding._writeHtml markup, type
readImage: (type='standard') -> binding._readImage type
writeImage: (image, type='standard') -> binding._writeImage image, type
clear: (type='standard') -> binding._clear type