]>
Commit | Line | Data |
---|---|---|
9b6dbb09 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dcscreen.h | |
3 | // Purpose: wxScreenDC class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_DCSCREEN_H_ | |
13 | #define _WX_DCSCREEN_H_ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
9b6dbb09 JS |
16 | #pragma interface "dcscreen.h" |
17 | #endif | |
18 | ||
19 | #include "wx/dcclient.h" | |
20 | ||
dfc54541 | 21 | class WXDLLEXPORT wxScreenDC: public wxWindowDC |
9b6dbb09 | 22 | { |
83df96d6 JS |
23 | DECLARE_DYNAMIC_CLASS(wxScreenDC) |
24 | ||
25 | public: | |
26 | // Create a DC representing the whole screen | |
27 | wxScreenDC(); | |
28 | ~wxScreenDC(); | |
29 | ||
30 | // Compatibility with X's requirements for | |
31 | // drawing on top of all windows | |
32 | static bool StartDrawingOnTop(wxWindow* window); | |
33 | static bool StartDrawingOnTop(wxRect* rect = NULL); | |
34 | static bool EndDrawingOnTop(); | |
35 | ||
89c7e962 | 36 | private: |
83df96d6 JS |
37 | static WXWindow sm_overlayWindow; |
38 | ||
39 | // If we have started transparent drawing at a non-(0,0) point | |
40 | // then we will have to adjust the device origin in the | |
41 | // constructor. | |
42 | static int sm_overlayWindowX; | |
43 | static int sm_overlayWindowY; | |
9b6dbb09 JS |
44 | }; |
45 | ||
46 | #endif | |
83df96d6 | 47 | // _WX_DCSCREEN_H_ |
9b6dbb09 | 48 |