-//-----------------------------------------------------------------------------
-// global data initialization
-//-----------------------------------------------------------------------------
-
-WXWindow *wxScreenDC::sm_overlayWindow = (WXWindow*) NULL;
-int wxScreenDC::sm_overlayWindowX = 0;
-int wxScreenDC::sm_overlayWindowY = 0;
-
//-----------------------------------------------------------------------------
// wxScreenDC
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// wxScreenDC
//-----------------------------------------------------------------------------
int screen = DefaultScreen( (Display*) m_display );
m_cmap = (WXColormap) DefaultColormap( (Display*) m_display, screen );
int screen = DefaultScreen( (Display*) m_display );
m_cmap = (WXColormap) DefaultColormap( (Display*) m_display, screen );
{
XSetSubwindowMode( (Display*) m_display, (GC) m_penGC, ClipByChildren );
XSetSubwindowMode( (Display*) m_display, (GC) m_brushGC, ClipByChildren );
XSetSubwindowMode( (Display*) m_display, (GC) m_textGC, ClipByChildren );
XSetSubwindowMode( (Display*) m_display, (GC) m_bgGC, ClipByChildren );
{
XSetSubwindowMode( (Display*) m_display, (GC) m_penGC, ClipByChildren );
XSetSubwindowMode( (Display*) m_display, (GC) m_brushGC, ClipByChildren );
XSetSubwindowMode( (Display*) m_display, (GC) m_textGC, ClipByChildren );
XSetSubwindowMode( (Display*) m_display, (GC) m_bgGC, ClipByChildren );
-
- EndDrawingOnTop();
-}
-
-bool wxScreenDC::StartDrawingOnTop( wxWindow *window )
-{
- if (!window) return StartDrawingOnTop();
-
- int x = 0;
- int y = 0;
- window->GetPosition( &x, &y );
- int w = 0;
- int h = 0;
- window->GetSize( &w, &h );
- window->ClientToScreen( &x, &y );
-
- wxRect rect;
- rect.x = x;
- rect.y = y;
- rect.width = 0;
- rect.height = 0;
-
- return StartDrawingOnTop( &rect );
-bool wxScreenDC::StartDrawingOnTop( wxRect *WXUNUSED(rectIn) )
-{
- // VZ: should we do the same thing that wxMotif wxScreenDC does here?
- return true;
-}
-
-bool wxScreenDC::EndDrawingOnTop()
-{
- return true;
-}
-
-void wxScreenDC::DoGetSize(int *width, int *height) const
-{
- wxDisplaySize(width, height);
-}