]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/dcscreen.cpp
1cff4e457fa0d457b40bd8e113a1bf14da7e7408
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/gtk1/dcscreen.cpp
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"
14 #include "wx/window.h"
21 #include "wx/dcscreen.h"
22 #include "wx/gtk1/dcscreen.h"
24 //-----------------------------------------------------------------------------
25 // global data initialization
26 //-----------------------------------------------------------------------------
28 GdkWindow
*wxScreenDCImpl::sm_overlayWindow
= NULL
;
29 int wxScreenDCImpl::sm_overlayWindowX
= 0;
30 int wxScreenDCImpl::sm_overlayWindowY
= 0;
32 //-----------------------------------------------------------------------------
34 //-----------------------------------------------------------------------------
36 IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl
, wxPaintDCImpl
)
38 wxScreenDCImpl::wxScreenDCImpl(wxScreenDC
*owner
)
39 : wxPaintDCImpl(owner
)
42 m_cmap
= gdk_colormap_get_system();
43 m_window
= GDK_ROOT_PARENT();
49 gdk_gc_set_subwindow( m_penGC
, GDK_INCLUDE_INFERIORS
);
50 gdk_gc_set_subwindow( m_brushGC
, GDK_INCLUDE_INFERIORS
);
51 gdk_gc_set_subwindow( m_textGC
, GDK_INCLUDE_INFERIORS
);
52 gdk_gc_set_subwindow( m_bgGC
, GDK_INCLUDE_INFERIORS
);
55 wxScreenDCImpl::~wxScreenDCImpl()
57 gdk_gc_set_subwindow( m_penGC
, GDK_CLIP_BY_CHILDREN
);
58 gdk_gc_set_subwindow( m_brushGC
, GDK_CLIP_BY_CHILDREN
);
59 gdk_gc_set_subwindow( m_textGC
, GDK_CLIP_BY_CHILDREN
);
60 gdk_gc_set_subwindow( m_bgGC
, GDK_CLIP_BY_CHILDREN
);
63 void wxScreenDCImpl::DoGetSize(int *width
, int *height
) const
65 wxDisplaySize(width
, height
);