]> git.saurik.com Git - wxWidgets.git/blame - include/wx/private/overlay.h
Merge of SOC2010_RTC_IMAGES branch.
[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
69a5bc23 17#ifdef wxHAS_NATIVE_OVERLAY
30c841c8
VS
18
19#if defined(__WXMAC__)
ef0e9220 20 #include "wx/osx/carbon/private/overlay.h"
30c841c8
VS
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 29#include "wx/bitmap.h"
132025f3 30
b5dbe15d 31class WXDLLIMPEXP_FWD_CORE wxWindow;
f5766910 32
30c841c8
VS
33// generic implementation of wxOverlay
34class wxOverlayImpl
35{
36public:
37 wxOverlayImpl();
38 ~wxOverlayImpl();
f5766910
WS
39
40
30c841c8
VS
41 // clears the overlay without restoring the former state
42 // to be done eg when the window content has been changed and repainted
43 void Reset();
f5766910 44
30c841c8
VS
45 // returns true if it has been setup
46 bool IsOk();
f5766910 47
07c0e08a 48 void Init(wxDC* dc, int x , int y , int width , int height);
f5766910 49
07c0e08a 50 void BeginDrawing(wxDC* dc);
f5766910 51
07c0e08a 52 void EndDrawing(wxDC* dc);
f5766910 53
07c0e08a 54 void Clear(wxDC* dc);
30c841c8
VS
55
56private:
57 wxBitmap m_bmpSaved ;
58 int m_x ;
59 int m_y ;
60 int m_width ;
61 int m_height ;
30c841c8 62 wxWindow* m_window ;
05dff6b0 63};
30c841c8
VS
64
65#endif // wxHAS_NATIVE_OVERLAY/!wxHAS_NATIVE_OVERLAY
66
67#endif // _WX_PRIVATE_OVERLAY_H_