]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/motif/dcscreen.h
support retina display
[wxWidgets.git] / include / wx / motif / dcscreen.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/motif/dcscreen.h
3// Purpose: wxScreenDCImpl 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/motif/dcclient.h"
16
17class WXDLLIMPEXP_CORE wxScreenDCImpl : public wxWindowDCImpl
18{
19public:
20 // Create a DC representing the whole screen
21 wxScreenDCImpl(wxScreenDC *owner);
22 virtual ~wxScreenDCImpl();
23
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();
29
30private:
31 static WXWindow sm_overlayWindow;
32
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;
38
39 DECLARE_DYNAMIC_CLASS(wxScreenDCImpl)
40};
41
42#endif // _WX_DCSCREEN_H_