]>
git.saurik.com Git - wxWidgets.git/blob - utils/screenshotgen/src/ctrlmaskout.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Defines the CtrlMaskOut class
4 // Author: Utensil Candel (UtensilCandel@@gmail.com)
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef WX_CTRL_MASK_OUT
10 #define WX_CTRL_MASK_OUT
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class CtrlMaskOut
: public wxEvtHandler
26 void OnLeftButtonDown(wxMouseEvent
& event
);
27 void OnLeftButtonUp(wxMouseEvent
& event
);
28 void OnMouseMoving(wxMouseEvent
& event
);
30 void Capture(wxRect rect
, wxString fileName
);
31 void Capture(int x
, int y
, int width
, int height
, wxString fileName
);
33 wxString
GetDefaultDirectory(){return m_defaultDir
;}
37 void CreateMask(wxWindow
* parent
);
39 void DetermineCtrlNameAndRect();
41 void OnTimingFinished(wxTimerEvent
& event
);
45 wxString m_defaultDir
;
47 wxString m_controlName
;
49 wxCoord m_inflateBorder
;
56 #endif // WX_CTRL_MASK_OUT