1 #############################################################################
2 ## Name: XS/StandardPaths.xsp
3 ## Purpose: XS++ for Wx::StandardPaths
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: StandardPaths.xsp 2315 2008-01-18 21:47:17Z mbarbon $
8 ## Copyright: (c) 2007-2008 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
15 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
17 #include <wx/stdpaths.h>
19 %typemap{wxStandardPaths*}{simple};
20 %typemap{ResourceCat}{simple};
22 #define ResourceCat wxStandardPathsBase::ResourceCat
24 %name{Wx::StandardPaths} class wxStandardPaths
26 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
27 wxString GetExecutablePath() const;
29 wxString GetConfigDir() const;
30 wxString GetUserConfigDir() const;
31 wxString GetDataDir() const;
32 wxString GetLocalDataDir() const;
33 wxString GetUserDataDir() const;
34 wxString GetUserLocalDataDir() const;
35 wxString GetPluginsDir() const;
36 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
37 wxString GetResourcesDir() const;
38 wxString GetLocalizedResourcesDir( const wxString& lang,
39 ResourceCat category = wxStandardPathsBase::ResourceCat_None );
40 wxString GetDocumentsDir() const;
41 wxString GetTempDir() const;
43 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
44 void UseAppInfo( int info );
52 RETVAL = (wxStandardPaths*)&wxStandardPaths::Get();