]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
13 #include "wx/dcscreen.h"
14 #include "wx/window.h"
20 //-----------------------------------------------------------------------------
21 // global data initialization
22 //-----------------------------------------------------------------------------
24 GdkWindow
*wxScreenDC::sm_overlayWindow
= (GdkWindow
*) NULL
;
25 int wxScreenDC::sm_overlayWindowX
= 0;
26 int wxScreenDC::sm_overlayWindowY
= 0;
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC
,wxPaintDC
)
34 wxScreenDC::wxScreenDC()
37 m_cmap
= gdk_colormap_get_system();
38 m_window
= GDK_ROOT_PARENT();
44 gdk_gc_set_subwindow( m_penGC
, GDK_INCLUDE_INFERIORS
);
45 gdk_gc_set_subwindow( m_brushGC
, GDK_INCLUDE_INFERIORS
);
46 gdk_gc_set_subwindow( m_textGC
, GDK_INCLUDE_INFERIORS
);
47 gdk_gc_set_subwindow( m_bgGC
, GDK_INCLUDE_INFERIORS
);
50 wxScreenDC::~wxScreenDC()
52 gdk_gc_set_subwindow( m_penGC
, GDK_CLIP_BY_CHILDREN
);
53 gdk_gc_set_subwindow( m_brushGC
, GDK_CLIP_BY_CHILDREN
);
54 gdk_gc_set_subwindow( m_textGC
, GDK_CLIP_BY_CHILDREN
);
55 gdk_gc_set_subwindow( m_bgGC
, GDK_CLIP_BY_CHILDREN
);
60 bool wxScreenDC::StartDrawingOnTop( wxWindow
* )
65 bool wxScreenDC::StartDrawingOnTop( wxRect
* )
70 bool wxScreenDC::EndDrawingOnTop()
75 void wxScreenDC::DoGetSize(int *width
, int *height
) const
77 wxDisplaySize(width
, height
);