/[pcsx2_0.9.7]/trunk/3rdparty/wxWidgets/include/wx/private/overlay.h
ViewVC logotype

Contents of /trunk/3rdparty/wxWidgets/include/wx/private/overlay.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 9 months ago) by william
File MIME type: text/plain
File size: 1834 byte(s)
exported r3113 from ./upstream/trunk
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: overlay.h 53135 2008-04-12 02:31:04Z VZ $
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 #ifdef 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
31 class WXDLLIMPEXP_FWD_CORE wxWindow;
32
33 // generic implementation of wxOverlay
34 class wxOverlayImpl
35 {
36 public:
37 wxOverlayImpl();
38 ~wxOverlayImpl();
39
40
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();
44
45 // returns true if it has been setup
46 bool IsOk();
47
48 void Init(wxWindowDC* dc, int x , int y , int width , int height);
49
50 void BeginDrawing(wxWindowDC* dc);
51
52 void EndDrawing(wxWindowDC* dc);
53
54 void Clear(wxWindowDC* dc);
55
56 private:
57 wxBitmap m_bmpSaved ;
58 int m_x ;
59 int m_y ;
60 int m_width ;
61 int m_height ;
62 // this is to enable wxMOTIF and UNIV to compile....
63 // currently (10 oct 06) we don't use m_window
64 // ce - how do we fix this
65 #if defined(__WXGTK__) || defined(__WXMSW__)
66 wxWindow* m_window ;
67 #endif
68 } ;
69
70 #endif // wxHAS_NATIVE_OVERLAY/!wxHAS_NATIVE_OVERLAY
71
72 #endif // _WX_PRIVATE_OVERLAY_H_

  ViewVC Help
Powered by ViewVC 1.1.22