Added Copy and Paste functions to GHOST.
[blender-staging.git] / intern / ghost / intern / GHOST_System.h
index 85e7b2d6b44224ea9ffd404d5ad77aec0a0a8e76..1ded6e77a36dc667b1c73d0ac4592ff622d6eb21 100644 (file)
@@ -257,6 +257,21 @@ public:
         */
        virtual GHOST_TSuccess getButtons(GHOST_Buttons& buttons) const = 0;
 
         */
        virtual GHOST_TSuccess getButtons(GHOST_Buttons& buttons) const = 0;
 
+       /**
+        * Returns the selection buffer
+        * @param flag          Only used on X11
+        * @return              Returns the clipboard data
+        *
+        */
+        virtual GHOST_TUns8* getClipboard(int flag) const = 0;
+         
+         /**
+          * Put data to the Clipboard
+          * @param buffer      The buffer to copy to the clipboard
+          * @param flag        The clipboard to copy too only used on X11
+          */
+         virtual void putClipboard(GHOST_TInt8 *buffer, int flag) const = 0;
+
 protected:
        /**
         * Initialize the system.
 protected:
        /**
         * Initialize the system.