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