]>
Commit | Line | Data |
---|---|---|
83df96d6 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 | |
65571936 | 9 | // Licence: wxWindows licence |
83df96d6 JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_DCSCREEN_H_ | |
13 | #define _WX_DCSCREEN_H_ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
83df96d6 JS |
16 | #pragma interface "dcscreen.h" |
17 | #endif | |
18 | ||
19 | #include "wx/dcclient.h" | |
20 | ||
3cd0b8c5 RR |
21 | //----------------------------------------------------------------------------- |
22 | // wxScreenDC | |
23 | //----------------------------------------------------------------------------- | |
24 | ||
968eb2ef | 25 | class WXDLLIMPEXP_CORE wxScreenDC : public wxPaintDC |
83df96d6 | 26 | { |
83df96d6 | 27 | public: |
83df96d6 | 28 | wxScreenDC(); |
3cd0b8c5 RR |
29 | virtual ~wxScreenDC(); |
30 | ||
31 | static bool StartDrawingOnTop( wxWindow *window ); | |
32 | static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL ); | |
83df96d6 | 33 | static bool EndDrawingOnTop(); |
3cd0b8c5 RR |
34 | |
35 | // implementation | |
36 | ||
37 | static WXWindow *sm_overlayWindow; | |
38 | static int sm_overlayWindowX; | |
39 | static int sm_overlayWindowY; | |
40 | ||
41 | protected: | |
42 | virtual void DoGetSize(int *width, int *height) const; | |
43 | ||
83df96d6 | 44 | private: |
3cd0b8c5 | 45 | DECLARE_DYNAMIC_CLASS(wxScreenDC) |
83df96d6 JS |
46 | }; |
47 | ||
3cd0b8c5 | 48 | |
83df96d6 JS |
49 | #endif |
50 | // _WX_DCSCREEN_H_ | |
51 |