]> git.saurik.com Git - wxWidgets.git/blame - include/wx/private/overlay.h
non-PCH build fix (according to Tinderbox).
[wxWidgets.git] / include / wx / private / overlay.h
CommitLineData
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
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
f5766910
WS
29#include "wx/bitmap.h"
30
30c841c8
VS
31// generic implementation of wxOverlay
32class wxOverlayImpl
33{
34public:
35 wxOverlayImpl();
36 ~wxOverlayImpl();
f5766910
WS
37
38
30c841c8
VS
39 // clears the overlay without restoring the former state
40 // to be done eg when the window content has been changed and repainted
41 void Reset();
f5766910 42
30c841c8
VS
43 // returns true if it has been setup
44 bool IsOk();
f5766910 45
30c841c8 46 void Init(wxWindowDC* dc, int x , int y , int width , int height);
f5766910 47
30c841c8 48 void BeginDrawing(wxWindowDC* dc);
f5766910 49
30c841c8 50 void EndDrawing(wxWindowDC* dc);
f5766910 51
30c841c8
VS
52 void Clear(wxWindowDC* dc);
53
54private:
55 wxBitmap m_bmpSaved ;
56 int m_x ;
57 int m_y ;
58 int m_width ;
59 int m_height ;
60// this is to enable wxMOTIF and UNIV to compile....
61// currently (10 oct 06) we don't use m_window
62// ce - how do we fix this
63#if defined(__WXGTK__) || defined(__WXMSW__)
64 wxWindow* m_window ;
f5766910 65#endif
30c841c8
VS
66} ;
67
68#endif // wxHAS_NATIVE_OVERLAY/!wxHAS_NATIVE_OVERLAY
69
70#endif // _WX_PRIVATE_OVERLAY_H_