Added Copy and Paste functions to GHOST.
[blender-staging.git] / intern / ghost / intern / GHOST_SystemX11.h
old mode 100755 (executable)
new mode 100644 (file)
index 36d974f..0e947c1
@@ -196,7 +196,21 @@ public:
                return m_display;
        }       
 
+       /**
+        * Returns unsinged char from CUT_BUFFER0
+        * @param flag          Flag indicates which buffer to return 0 for clipboard 1 for selection
+        * @return              Returns the Clipboard indicated by Flag
+        */
+               GHOST_TUns8*
+       getClipboard(int flag) const;
        
+       /**
+        * Puts buffer to system clipboard
+        * @param buffer        The buffer to copy to the clipboard     
+        * @param flag          Flag indicates which buffer to set ownership of 0 for clipboard 1 for selection
+        */
+       virtual void putClipboard(GHOST_TInt8 *buffer, int flag) const;
+
 private :
 
        Display * m_display;
@@ -236,7 +250,7 @@ private :
  
                GHOST_TKey
        convertXKey(
-               unsigned int key
+               KeySym key
        );
 
 };