]>
Commit | Line | Data |
---|---|---|
30c841c8 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/private/overlay.h | |
3 | // Purpose: wxOverlayImpl declaration | |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 2006-10-20 | |
30c841c8 VS |
7 | // Copyright: (c) wxWidgets team |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_PRIVATE_OVERLAY_H_ | |
12 | #define _WX_PRIVATE_OVERLAY_H_ | |
13 | ||
14 | #include "wx/overlay.h" | |
15 | ||
69a5bc23 | 16 | #ifdef wxHAS_NATIVE_OVERLAY |
30c841c8 VS |
17 | |
18 | #if defined(__WXMAC__) | |
ef0e9220 | 19 | #include "wx/osx/carbon/private/overlay.h" |
30c841c8 VS |
20 | #elif defined(__WXDFB__) |
21 | #include "wx/dfb/private/overlay.h" | |
22 | #else | |
23 | #error "unknown native wxOverlay implementation" | |
24 | #endif | |
25 | ||
26 | #else // !wxHAS_NATIVE_OVERLAY | |
27 | ||
f5766910 | 28 | #include "wx/bitmap.h" |
132025f3 | 29 | |
b5dbe15d | 30 | class WXDLLIMPEXP_FWD_CORE wxWindow; |
f5766910 | 31 | |
30c841c8 VS |
32 | // generic implementation of wxOverlay |
33 | class wxOverlayImpl | |
34 | { | |
35 | public: | |
36 | wxOverlayImpl(); | |
37 | ~wxOverlayImpl(); | |
f5766910 WS |
38 | |
39 | ||
30c841c8 VS |
40 | // clears the overlay without restoring the former state |
41 | // to be done eg when the window content has been changed and repainted | |
42 | void Reset(); | |
f5766910 | 43 | |
30c841c8 VS |
44 | // returns true if it has been setup |
45 | bool IsOk(); | |
f5766910 | 46 | |
07c0e08a | 47 | void Init(wxDC* dc, int x , int y , int width , int height); |
f5766910 | 48 | |
07c0e08a | 49 | void BeginDrawing(wxDC* dc); |
f5766910 | 50 | |
07c0e08a | 51 | void EndDrawing(wxDC* dc); |
f5766910 | 52 | |
07c0e08a | 53 | void Clear(wxDC* dc); |
30c841c8 VS |
54 | |
55 | private: | |
56 | wxBitmap m_bmpSaved ; | |
57 | int m_x ; | |
58 | int m_y ; | |
59 | int m_width ; | |
60 | int m_height ; | |
30c841c8 | 61 | wxWindow* m_window ; |
05dff6b0 | 62 | }; |
30c841c8 VS |
63 | |
64 | #endif // wxHAS_NATIVE_OVERLAY/!wxHAS_NATIVE_OVERLAY | |
65 | ||
66 | #endif // _WX_PRIVATE_OVERLAY_H_ |