]> git.saurik.com Git - wxWidgets.git/blob - include/wx/private/overlay.h
Compile fixes
[wxWidgets.git] / include / wx / private / overlay.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/overlay.h
3 // Purpose: wxOverlayImpl declaration
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 2006-10-20
7 // RCS-ID: $Id$
8 // Copyright: (c) wxWidgets team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_PRIVATE_OVERLAY_H_
13 #define _WX_PRIVATE_OVERLAY_H_
14
15 #include "wx/overlay.h"
16
17 #if wxHAS_NATIVE_OVERLAY
18
19 #if defined(__WXMAC__)
20 #include "wx/mac/carbon/private/overlay.h"
21 #elif defined(__WXDFB__)
22 #include "wx/dfb/private/overlay.h"
23 #else
24 #error "unknown native wxOverlay implementation"
25 #endif
26
27 #else // !wxHAS_NATIVE_OVERLAY
28
29 #include "wx/bitmap.h"
30 #include "wx/window.h"
31
32 // generic implementation of wxOverlay
33 class wxOverlayImpl
34 {
35 public:
36 wxOverlayImpl();
37 ~wxOverlayImpl();
38
39
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();
43
44 // returns true if it has been setup
45 bool IsOk();
46
47 void Init(wxWindowDC* dc, int x , int y , int width , int height);
48
49 void BeginDrawing(wxWindowDC* dc);
50
51 void EndDrawing(wxWindowDC* dc);
52
53 void Clear(wxWindowDC* dc);
54
55 private:
56 wxBitmap m_bmpSaved ;
57 int m_x ;
58 int m_y ;
59 int m_width ;
60 int m_height ;
61 // this is to enable wxMOTIF and UNIV to compile....
62 // currently (10 oct 06) we don't use m_window
63 // ce - how do we fix this
64 #if defined(__WXGTK__) || defined(__WXMSW__)
65 wxWindow* m_window ;
66 #endif
67 } ;
68
69 #endif // wxHAS_NATIVE_OVERLAY/!wxHAS_NATIVE_OVERLAY
70
71 #endif // _WX_PRIVATE_OVERLAY_H_