]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/dcscreen.h
Change GetC to return an int so that it can return wxEOF on error.
[wxWidgets.git] / include / wx / x11 / dcscreen.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/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
15 #include "wx/dcclient.h"
16
17 //-----------------------------------------------------------------------------
18 // wxScreenDC
19 //-----------------------------------------------------------------------------
20
21 class WXDLLIMPEXP_CORE wxScreenDC : public wxPaintDC
22 {
23 public:
24 wxScreenDC();
25 virtual ~wxScreenDC();
26
27 static bool StartDrawingOnTop( wxWindow *window );
28 static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL );
29 static bool EndDrawingOnTop();
30
31 // implementation
32
33 static WXWindow *sm_overlayWindow;
34 static int sm_overlayWindowX;
35 static int sm_overlayWindowY;
36
37 protected:
38 virtual void DoGetSize(int *width, int *height) const;
39
40 private:
41 DECLARE_DYNAMIC_CLASS(wxScreenDC)
42 };
43
44
45 #endif
46 // _WX_DCSCREEN_H_