Blender  V2.93
Public Member Functions | List of all members
GHOST_SystemPathsCocoa Class Reference

#include <GHOST_SystemPathsCocoa.h>

Inherits GHOST_SystemPaths.

Public Member Functions

 GHOST_SystemPathsCocoa ()
 
 ~GHOST_SystemPathsCocoa ()
 
const GHOST_TUns8getSystemDir (int version, const char *versionstr) const
 
const GHOST_TUns8getUserDir (int version, const char *versionstr) const
 
const GHOST_TUns8getUserSpecialDir (GHOST_TUserSpecialDirTypes type) const
 
const GHOST_TUns8getBinaryDir () const
 
void addToSystemRecentFiles (const char *filename) const
 

Additional Inherited Members

- Static Public Member Functions inherited from GHOST_ISystemPaths
static GHOST_TSuccess create ()
 
static GHOST_TSuccess dispose ()
 
static GHOST_ISystemPathsget ()
 
- Protected Member Functions inherited from GHOST_SystemPaths
 GHOST_SystemPaths ()
 
virtual ~GHOST_SystemPaths ()
 
- Protected Member Functions inherited from GHOST_ISystemPaths
 GHOST_ISystemPaths ()
 
virtual ~GHOST_ISystemPaths ()
 

Detailed Description

Definition at line 32 of file GHOST_SystemPathsCocoa.h.

Constructor & Destructor Documentation

◆ GHOST_SystemPathsCocoa()

GHOST_SystemPathsCocoa::GHOST_SystemPathsCocoa ( )

Constructor.

Definition at line 29 of file GHOST_SystemPathsCocoa.mm.

◆ ~GHOST_SystemPathsCocoa()

GHOST_SystemPathsCocoa::~GHOST_SystemPathsCocoa ( )

Destructor.

Definition at line 33 of file GHOST_SystemPathsCocoa.mm.

Member Function Documentation

◆ addToSystemRecentFiles()

void GHOST_SystemPathsCocoa::addToSystemRecentFiles ( const char *  filename) const
virtual

Add the file to the operating system most recently used files

Implements GHOST_SystemPaths.

Definition at line 163 of file GHOST_SystemPathsCocoa.mm.

◆ getBinaryDir()

const GHOST_TUns8 * GHOST_SystemPathsCocoa::getBinaryDir ( ) const
virtual

Determine the directory of the current binary

Returns
Unsigned char string pointing to the binary dir

Implements GHOST_SystemPaths.

Definition at line 144 of file GHOST_SystemPathsCocoa.mm.

References init, NULL, and blender::compositor::pool.

◆ getSystemDir()

const GHOST_TUns8 * GHOST_SystemPathsCocoa::getSystemDir ( int  version,
const char *  versionstr 
) const
virtual

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, including versioning.

Returns
Unsigned char string pointing to system dir (eg /usr/share/blender/).

Implements GHOST_SystemPaths.

Definition at line 39 of file GHOST_SystemPathsCocoa.mm.

References count, init, NULL, blender::compositor::pool, and snprintf.

◆ getUserDir()

const GHOST_TUns8 * GHOST_SystemPathsCocoa::getUserDir ( int  version,
const char *  versionstr 
) const
virtual

Determine the base dir in which user configuration is stored, including versioning. If needed, it will create the base directory.

Returns
Unsigned char string pointing to user dir (eg ~/.blender/).

Implements GHOST_SystemPaths.

Definition at line 66 of file GHOST_SystemPathsCocoa.mm.

References count, init, NULL, blender::compositor::pool, and snprintf.

◆ getUserSpecialDir()

const GHOST_TUns8 * GHOST_SystemPathsCocoa::getUserSpecialDir ( GHOST_TUserSpecialDirTypes  type) const
virtual

Determine a special ("well known") and easy to reach user directory.

Returns
Unsigned char string pointing to user dir (eg ~/Documents/).

Implements GHOST_ISystemPaths.

Definition at line 93 of file GHOST_SystemPathsCocoa.mm.

References count, GHOST_ASSERT, GHOST_kUserSpecialDirDesktop, GHOST_kUserSpecialDirDocuments, GHOST_kUserSpecialDirDownloads, GHOST_kUserSpecialDirMusic, GHOST_kUserSpecialDirPictures, GHOST_kUserSpecialDirVideos, init, NULL, blender::compositor::pool, and type.


The documentation for this class was generated from the following files: