X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4bae10bdff8683fea70daf9f9b6c3fa559fe64cb..cfcc02a8a4f019e3846b73660209080602e44967:/utils/screenshotgen/src/ctrlmaskout.h diff --git a/utils/screenshotgen/src/ctrlmaskout.h b/utils/screenshotgen/src/ctrlmaskout.h index 124788c911..1e0ec6832e 100644 --- a/utils/screenshotgen/src/ctrlmaskout.h +++ b/utils/screenshotgen/src/ctrlmaskout.h @@ -6,10 +6,10 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifndef WX_CTRL_MASK_OUT -#define WX_CTRL_MASK_OUT +#ifndef _CTRLMASKOUT_H_ +#define _CTRLMASKOUT_H_ -#include +#include "wx/filename.h" // ---------------------------------------------------------------------------- @@ -30,7 +30,14 @@ public: void Capture(wxRect rect, wxString fileName); void Capture(int x, int y, int width, int height, wxString fileName); - wxString GetDefaultDirectory(){return m_defaultDir;} + wxString GetDefaultDirectory() const + { return m_defaultDir; } + wxString GetDefaultDirectoryAbsPath() const + { + wxFileName output = wxFileName::DirName(GetDefaultDirectory()); + output.MakeAbsolute(); + return output.GetFullPath(); + } private: // Helper functions @@ -53,6 +60,6 @@ private: bool m_isTiming; }; -#endif // WX_CTRL_MASK_OUT +#endif // _CTRLMASKOUT_H_