]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/dcscreen.h
fix warnings in EventsSuppressor ctor from gcc with -O option
[wxWidgets.git] / include / wx / gtk / dcscreen.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: 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// wxScreenDC
17//-----------------------------------------------------------------------------
18
19#if wxUSE_NEW_DC
20class WXDLLIMPEXP_CORE wxGTKScreenImplDC : public wxGTKWindowImplDC
21#else
22#define wxGTKScreenImplDC wxScreenDC
23class WXDLLIMPEXP_CORE wxScreenDC : public wxWindowDC
24#endif
25{
26public:
27
28#if wxUSE_NEW_DC
29 wxGTKScreenImplDC( wxScreenDC *owner );
30#else
31 wxScreenDC();
32#endif
33
34 ~wxGTKScreenImplDC();
35
36 static bool StartDrawingOnTop(wxWindow * WXUNUSED(window))
37 { return true; }
38 static bool StartDrawingOnTop(wxRect * WXUNUSED(rect) = NULL)
39 { return true; }
40 static bool EndDrawingOnTop() { return true; }
41
42
43protected:
44 virtual void DoGetSize(int *width, int *height) const;
45
46 void Init();
47
48private:
49 DECLARE_ABSTRACT_CLASS(wxGTKScreenImplDC)
50};
51
52#endif // __GTKDCSCREENH__
53