changeset 0 | 7e720dcafcaf |
child 1 | 506e0fc65ba3 |
-1:000000000000 | 0:7e720dcafcaf |
---|---|
1 #include <wx/scrolwin.h> |
|
2 #include <wx/dcclient.h> |
|
3 #include "CropArea.hpp" |
|
4 |
|
5 class wxPictureWindow : public wxScrolledWindow |
|
6 { |
|
7 public: |
|
8 wxPictureWindow(const wxImage &img, CropArea area, wxWindow *parent); |
|
9 ~wxPictureWindow(); |
|
10 protected: |
|
11 virtual void OnDraw(wxDC &dc); |
|
12 void OnMouse(wxMouseEvent &ev); |
|
13 |
|
14 private: |
|
15 wxString _filename; |
|
16 wxBitmap _bmp; |
|
17 CropArea _area; |
|
18 |
|
19 DECLARE_EVENT_TABLE() |
|
20 }; |