// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#ifndef AUTOCAP_H
-#define AUTOCAP_H
+#ifndef _AUTOCAPTURE_H_
+#define _AUTOCAPTURE_H_
-#include <wx/notebook.h>
-#include <wx/settings.h>
#include <vector>
#include <ctime>
+#include <wx/notebook.h>
+
// TODO: document what these flags mean
enum AdjustFlags
void CaptureAll();
// take a screenshot only of the given rect
- static wxBitmap Capture(wxRect rect);
- static wxBitmap Capture(int x, int y, int width, int height);
+ // delay is only useful for Mac, for fixing a delay bug
+ static wxBitmap Capture(wxRect rect, int delay = 0);
+ static wxBitmap Capture(int x, int y, int width, int height, int delay = 0);
+
+ static void Delay(int seconds);
-protected: // internal utils
+private: // internal utils
struct Control
{
Control() {}
void Save(wxBitmap screenshot, wxString fileName);
-private:
typedef std::vector<Control> ControlList;
ControlList m_controlList;
int m_border;
};
-#endif // AUTOCAP_H
+#endif // _AUTOCAPTURE_H_