// Author: David Elliott
// Modified by:
// Created: 2003/03/16
-// RCS-ID: $Id:
+// RCS-ID: $Id$
// Copyright: (c) 2002 David Elliott
-// Licence: wxWindows license
+// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
+
+#include "wx/dcscreen.h"
+
#ifndef WX_PRECOMP
- #include "wx/dcscreen.h"
#endif //WX_PRECOMP
//-----------------------------------------------------------------------------
wxScreenDC::wxScreenDC(void)
{
- m_ok = false;
-};
+ m_ok = false;
+}
wxScreenDC::wxScreenDC( wxDC *WXUNUSED(dc) )
{
- m_ok = false;
-};
+ m_ok = false;
+}
wxScreenDC::~wxScreenDC(void)
{
}
-
#if wxUSE_SASH
+#include "wx/sashwin.h"
+
#ifndef WX_PRECOMP
#include "wx/dialog.h"
#include "wx/frame.h"
#include "wx/settings.h"
#include "wx/dcclient.h"
+ #include "wx/dcscreen.h"
#endif
#include "wx/math.h"
#include <stdlib.h>
-#include "wx/dcscreen.h"
-#include "wx/sashwin.h"
#include "wx/laywin.h"
DEFINE_EVENT_TYPE(wxEVT_SASH_DRAGGED)
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/minifram.h"
-
#if wxUSE_MINIFRAME
-#include "wx/dcscreen.h"
+#include "wx/minifram.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcscreen.h"
+#endif
#include "gtk/gtk.h"
#include "wx/gtk/win_gtk.h"
if (!win->m_isDragging) return TRUE;
- win->m_isDragging = FALSE;
+ win->m_isDragging = false;
int x = (int)gdk_event->x;
int y = (int)gdk_event->y;
gdk_window_invalidate_rect( GTK_PIZZA(m_mainWidget)->bin_window, NULL, true );
}
-#endif
+#endif // wxUSE_MINIFRAME
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/minifram.h"
-
#if wxUSE_MINIFRAME
-#include "wx/dcscreen.h"
+#include "wx/minifram.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcscreen.h"
+#endif
#include "gtk/gtk.h"
#include "wx/gtk1/win_gtk.h"
if (!win->m_isDragging) return TRUE;
- win->m_isDragging = FALSE;
+ win->m_isDragging = false;
int x = (int)gdk_event->x;
int y = (int)gdk_event->y;
gtk_widget_draw( m_mainWidget, (GdkRectangle*) NULL );
}
-#endif
+#endif // wxUSE_MINIFRAME
/////////////////////////////////////////////////////////////////////////////
-// Name: dcscreen.cpp
+// Name: src/mac/carbon/dcscreen.cpp
// Purpose: wxScreenDC class
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#include "wx/dcscreen.h"
+
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
GetPort( &port ) ;
SetPort( (GrafPtr) m_macPort ) ;
Point pt = { 0,0 } ;
- LocalToGlobal( &pt ) ;
+ LocalToGlobal( &pt ) ;
SetPort( port ) ;
m_macLocalOrigin.x = -pt.h ;
m_macLocalOrigin.y = -pt.v ;
m_maxY = screenBits.bounds.bottom ;
#if wxMAC_USE_CORE_GRAPHICS
- m_graphicContext = new wxMacCGContext( port ) ;
+ m_graphicContext = new wxMacCGContext( port ) ;
#else
MacSetRectRgn( (RgnHandle) m_macBoundaryClipRgn , m_minX , m_minY , m_maxX , m_maxY ) ;
OffsetRgn( (RgnHandle) m_macBoundaryClipRgn , m_macLocalOrigin.x , m_macLocalOrigin.y ) ;
CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
#endif
- m_ok = TRUE ;
+ m_ok = true ;
}
wxScreenDC::~wxScreenDC()
-{
+{
#if wxMAC_USE_CORE_GRAPHICS
delete m_graphicContext ;
m_graphicContext = NULL ;
if ( m_macPort )
DisposePort( (CGrafPtr) m_macPort ) ;
}
-
/////////////////////////////////////////////////////////////////////////////
-// Name: dcscreen.cpp
+// Name: src/mac/classic/dcscreen.cpp
// Purpose: wxScreenDC class
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+#include "wx/wxprec.h"
+
#include "wx/dcscreen.h"
+
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
GetPort( &port ) ;
SetPort( (GrafPtr) m_macPort ) ;
Point pt = { 0,0 } ;
- LocalToGlobal( &pt ) ;
+ LocalToGlobal( &pt ) ;
SetPort( port ) ;
m_macLocalOrigin.x = -pt.h ;
m_macLocalOrigin.y = -pt.v ;
m_macLocalOrigin.x = 0 ;
m_macLocalOrigin.y = 0 ;
#endif
- m_ok = TRUE ;
+ m_ok = true ;
BitMap screenBits;
GetQDGlobalsScreenBits( &screenBits );
- m_minX = screenBits.bounds.left ;
- #if TARGET_CARBON
- SInt16 height ;
- GetThemeMenuBarHeight( &height ) ;
- m_minY = screenBits.bounds.top + height ;
- #else
- m_minY = screenBits.bounds.top + LMGetMBarHeight() ;
- #endif
+ m_minX = screenBits.bounds.left ;
+#if TARGET_CARBON
+ SInt16 height ;
+ GetThemeMenuBarHeight( &height ) ;
+ m_minY = screenBits.bounds.top + height ;
+#else
+ m_minY = screenBits.bounds.top + LMGetMBarHeight() ;
+#endif
m_maxX = screenBits.bounds.right ;
m_maxY = screenBits.bounds.bottom ;
MacSetRectRgn( (RgnHandle) m_macBoundaryClipRgn , m_minX , m_minY , m_maxX , m_maxY ) ;
{
// TODO
}
-
/////////////////////////////////////////////////////////////////////////////
-// Name: dcscreen.cpp
+// Name: src/mgl/dcscreen.cpp
// Author: Vaclav Slavik
// Id: $Id$
// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
#endif
#include "wx/dcscreen.h"
+
#include "wx/mgl/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
-wxScreenDC::wxScreenDC() : wxDC()
+wxScreenDC::wxScreenDC()
+ :wxDC()
{
SetMGLDC(g_displayDC, FALSE /* no ownership */);
-
+
// VS: we have to hide the mouse, otherwise rendering artifacts may occur
MS_obscure();
}
#include "wx/panel.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/dcscreen.h"
#endif
#if wxUSE_DRAG_AND_DROP
#include "wx/sysopt.h"
#include "wx/mgl/private.h"
-#include "wx/dcscreen.h"
#include "wx/caret.h"
#include <mgraph.hpp>
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
+#include "wx/dcscreen.h"
+
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/window.h"
#include "wx/msw/private.h"
-#include "wx/dcscreen.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
// Create a DC representing the whole screen
// DrawText() to OPAQUE as required, otherwise always TRANSPARENT
::SetBkMode( GetHdc(), TRANSPARENT );
}
-
#include "wx/log.h"
#include "wx/window.h"
#include "wx/dcmemory.h"
+ #include "wx/dcscreen.h"
#endif
#include "wx/colour.h"
#include "wx/listbox.h"
#include "wx/ownerdrw.h"
#include "wx/settings.h"
-#include "wx/dcscreen.h"
#define INCL_PM
#include <os2.h>
/////////////////////////////////////////////////////////////////////////////
-// Name: dcscreen.cpp
+// Name: src/os2/dcscreen.cpp
// Purpose: wxScreenDC class
// Author: David Webster
// Modified by:
// Created: 10/14/99
// RCS-ID: $Id$
// Copyright: (c) David Webster
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx.h".
#define INCL_PM
#include<os2.h>
+#include "wx/dcscreen.h"
+
#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/window.h"
+ #include "wx/string.h"
+ #include "wx/window.h"
#endif
#include "wx/os2/private.h"
-#include "wx/dcscreen.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
// Create a DC representing the whole screen
::GpiSetBackMix(m_hPS, BM_LEAVEALONE);
} // end of wxScreenDC::wxScreenDC()
-void wxScreenDC::DoGetSize(
- int* pnWidth
-, int* pnHeight
-) const
+void wxScreenDC::DoGetSize( int* pnWidth,
+ int* pnHeight ) const
{
//
// Skip wxWindowDC version because it doesn't work without a valid m_canvas
// (which we don't have)
//
- wxDC::DoGetSize( pnWidth
- ,pnHeight
- );
-} // end of wxScreenDC::DoGetSize
+ wxDC::DoGetSize( pnWidth, pnHeight );
+} // end of wxScreenDC::DoGetSize
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
+#include "wx/dcscreen.h"
+
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/window.h"
#endif
-#include "wx/dcscreen.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
// Create a DC representing the whole screen
void wxScreenDC::DoGetSize(int *width, int *height) const
{
}
-