System dependent standard directory retrieval functions update : return const strings...
[blender.git] / intern / ghost / intern / GHOST_SystemCarbon.h
index 2afc8e0..7f08706 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
  * All rights reserved.
@@ -103,6 +103,7 @@ public:
         * @param       height  The height the window.
         * @param       state   The state of the window when opened.
         * @param       type    The type of drawing context installed in this window.
+        * @param       parentWindow    Parent (embedder) window
         * @return      The new window (or 0 if creation failed).
         */
        virtual GHOST_IWindow* createWindow(
@@ -113,9 +114,19 @@ public:
                GHOST_TUns32 height,
                GHOST_TWindowState state,
                GHOST_TDrawingContextType type,
+               const bool stereoVisual,
+               const GHOST_TUns16 numOfAASamples = 0,
+               const GHOST_TEmbedderWindowID parentWindow = 0 
+       );
+       
+       virtual GHOST_TSuccess beginFullScreen(
+               const GHOST_DisplaySetting& setting, 
+               GHOST_IWindow** window,
                const bool stereoVisual
        );
        
+       virtual GHOST_TSuccess endFullScreen( void );
+       
        /***************************************************************************************
         ** Event management functionality
         ***************************************************************************************/
@@ -167,17 +178,31 @@ public:
 
        /**
         * Returns Clipboard data
-        * @param flag          Indicate which buffer to return
-        * @return              Returns the selected buffer
+        * @param selection             Indicate which buffer to return
+        * @return                              Returns the selected buffer
         */
-       virtual GHOST_TUns8* getClipboard(int flag) const;
+       virtual GHOST_TUns8* getClipboard(bool selection) const;
        
        /**
         * Puts buffer to system clipboard
         * @param buffer        The buffer to be copied
-        * @param flag          Indicates which buffer to copy too Only used on X11
+        * @param selection     Indicates which buffer to copy too, only used on X11
+        */
+       virtual void putClipboard(GHOST_TInt8 *buffer, bool selection) const;
+
+       /**
+        * Determine the base dir in which shared resources are located. It will first try to use
+        * "unpack and run" path, then look for properly installed path, not including versioning.
+        * @return Unsigned char string pointing to system dir (eg /usr/share/blender/).
+        */
+       virtual const GHOST_TUns8* getSystemDir() const;
+
+       /**
+        * Determine the base dir in which user configuration is stored, not including versioning.
+        * If needed, it will create the base directory.
+        * @return Unsigned char string pointing to user dir (eg ~/.blender/).
         */
-       virtual void putClipboard(GHOST_TInt8 *buffer, int flag) const;
+       virtual const GHOST_TUns8* getUserDir() const;
 
 protected:
        /**