mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
29 lines
661 B
C
29 lines
661 B
C
#pragma once
|
|
#ifndef PASTEBOARD_H
|
|
#define PASTEBOARD_H
|
|
|
|
#include "MMBitmap.h"
|
|
#include "file_io.h"
|
|
|
|
enum _MMBitmapPasteError {
|
|
kMMPasteNoError = 0,
|
|
kMMPasteGenericError,
|
|
kMMPasteOpenError,
|
|
kMMPasteClearError,
|
|
kMMPasteDataError,
|
|
kMMPastePasteError,
|
|
kMMPasteUnsupportedError
|
|
};
|
|
|
|
typedef MMIOError MMPasteError;
|
|
|
|
/* Copies |bitmap| to the pasteboard as a PNG.
|
|
* Returns 0 on success, non-zero on error. */
|
|
MMPasteError copyMMBitmapToPasteboard(MMBitmapRef bitmap);
|
|
|
|
/* Returns description of given MMPasteError.
|
|
* Returned string is constant and hence should not be freed. */
|
|
const char *MMPasteErrorString(MMPasteError error);
|
|
|
|
#endif /* PASTEBOARD_H */
|