]>
Commit | Line | Data |
---|---|---|
13f0c85a SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/osx/cocoa/private/overlay.h | |
3 | // Purpose: wxOverlayImpl declaration | |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 2006-10-20 | |
13f0c85a SC |
7 | // Copyright: (c) wxWidgets team |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_OSX_COCOA_PRIVATE_OVERLAY_H_ | |
12 | #define _WX_OSX_COCOA_PRIVATE_OVERLAY_H_ | |
13 | ||
14 | #include "wx/osx/private.h" | |
15 | #include "wx/toplevel.h" | |
16 | #include "wx/graphics.h" | |
17 | ||
18 | class wxOverlayImpl | |
19 | { | |
20 | public: | |
21 | wxOverlayImpl() ; | |
22 | ~wxOverlayImpl() ; | |
23 | ||
24 | ||
25 | // clears the overlay without restoring the former state | |
26 | // to be done eg when the window content has been changed and repainted | |
27 | void Reset(); | |
28 | ||
29 | // returns true if it has been setup | |
30 | bool IsOk(); | |
31 | ||
32 | void Init( wxDC* dc, int x , int y , int width , int height ); | |
33 | ||
34 | void BeginDrawing( wxDC* dc); | |
35 | ||
36 | void EndDrawing( wxDC* dc); | |
37 | ||
38 | void Clear( wxDC* dc); | |
39 | ||
40 | private: | |
41 | void CreateOverlayWindow(); | |
42 | ||
43 | WXWindow m_overlayWindow; | |
44 | WXWindow m_overlayParentWindow; | |
45 | CGContextRef m_overlayContext ; | |
46 | // we store the window in case we would have to issue a Refresh() | |
47 | wxWindow* m_window ; | |
48 | ||
49 | int m_x ; | |
50 | int m_y ; | |
51 | int m_width ; | |
52 | int m_height ; | |
53 | } ; | |
54 | ||
55 | #endif // _WX_MAC_CARBON_PRIVATE_OVERLAY_H_ |