From ffcbff62dd569b880c39084889fe68be76f67f51 Mon Sep 17 00:00:00 2001 From: Ricki Myers Date: Tue, 4 Mar 2008 00:41:30 +0000 Subject: Added Copy and Paste functions to GHOST. - Moved WIN32 code to ghost and added code for other systems. - Added functions getClipboard(flag), and putClipboard(buffer, flag) -Flag is used on X11 to request selection buffer or clipboard. -If any other system uses flag = 1 the function returns doing nothing. - Changed ctrl +c/v and shift+ctrl + c/v to do the same thing (use the clipboard). - Changed the menu items (copy, paste) to use the clipboard. --- intern/ghost/GHOST_C-api.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'intern/ghost/GHOST_C-api.h') diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index 4c4094409dd..a819713df88 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -758,6 +758,18 @@ extern void GHOST_SetRectangleCenter(GHOST_RectangleHandle rectanglehandle, */ extern GHOST_TSuccess GHOST_ClipRectangle(GHOST_RectangleHandle rectanglehandle, GHOST_RectangleHandle anotherrectanglehandle); + +/** + * Return the data from the clipboad + * @return clipboard data + */ +extern GHOST_TUns8* getClipboard(int flag); + +/** + * Put data to the Clipboard + */ +extern void putClipboard(GHOST_TInt8 *buffer, int flag); + #ifdef __cplusplus } #endif -- cgit v1.2.3