]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/dcscreen.h
create greyed image for wxBitmapButton in MSW automatically, as in wxGTK (replaces...
[wxWidgets.git] / include / wx / gtk1 / dcscreen.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk1/dcscreen.h
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef __GTKDCSCREENH__
11#define __GTKDCSCREENH__
12
13#include "wx/dcclient.h"
14
15//-----------------------------------------------------------------------------
16// classes
17//-----------------------------------------------------------------------------
18
19class WXDLLIMPEXP_FWD_CORE wxScreenDC;
20
21//-----------------------------------------------------------------------------
22// wxScreenDC
23//-----------------------------------------------------------------------------
24
25class WXDLLIMPEXP_CORE wxScreenDC : public wxPaintDC
26{
27public:
28 wxScreenDC();
29 virtual ~wxScreenDC();
30
31 static bool StartDrawingOnTop( wxWindow *window );
32 static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL );
33 static bool EndDrawingOnTop();
34
35 // implementation
36
37 static GdkWindow *sm_overlayWindow;
38 static int sm_overlayWindowX;
39 static int sm_overlayWindowY;
40
41protected:
42 virtual void DoGetSize(int *width, int *height) const;
43
44private:
45 DECLARE_DYNAMIC_CLASS(wxScreenDC)
46};
47
48#endif
49
50 // __GTKDCSCREENH__
51