// Created: 2003/03/16
// RCS-ID: $Id$
// Copyright: (c) 2002 David Elliott
-// Licence: wxWidgets licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
+
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/dcmemory.h"
operation: NSCompositeCopy
fraction: 1.0];
[m_cocoaNSImage unlockFocus];
-
+
[nsimage release];
}
}
width, height)
operation: NSCompositeCopy // FIXME: raster ops
fraction: 1.0];
-
+
[context restoreGraphicsState];
return false;
}
/////////////////////////////////////////////////////////////////////////////
-// Name: effects.cpp
+// Name: src/common/effects.cpp
// Purpose: wxEffects implementation
// Author: Julian Smart
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
+#include "wx/effects.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcmemory.h"
+#endif //WX_PRECOMP
+
#include "wx/gdicmn.h"
#include "wx/pen.h"
-#include "wx/dcmemory.h"
#include "wx/settings.h"
-#include "wx/effects.h"
/*
* wxEffects: various 3D effects
/////////////////////////////////////////////////////////////////////////////
-// Name: rgncmn.cpp
+// Name: src/common/rgncmn.cpp
// Purpose: Methods of wxRegion that have a generic implementation
// Author: Robin Dunn
// Modified by:
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#include "wx/region.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcmemory.h"
+#endif //WX_PRECOMP
+
#include "wx/bitmap.h"
+
#if wxUSE_IMAGE
-#include "wx/image.h"
+ #include "wx/image.h"
#endif
-#include "wx/dcmemory.h"
//---------------------------------------------------------------------------
tolerance);
#else
return false;
-#endif
+#endif
}
#else
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
+ #include "wx/dcmemory.h"
#endif // WX_PRECOMP
-#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/prntbase.h"
#include "wx/generic/prntdlgg.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/bitmap.h"
#include "wx/icon.h"
#include "wx/filefn.h"
#include "wx/image.h"
-#include "wx/dcmemory.h"
#include "wx/rawbmp.h"
// need this to get gdk_image_new_bitmap()
#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/dcmemory.h"
#endif
-#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/module.h"
#include "wx/fontutil.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: dcmemory.cpp
+// Name: src/gtk/dcmemory.cpp
// Purpose:
// Author: Robert Roebling
// RCS-ID: $Id$
wxMemoryDC::wxMemoryDC() : wxWindowDC()
{
- m_ok = FALSE;
+ m_ok = false;
m_cmap = gtk_widget_get_default_colormap();
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
: wxWindowDC()
{
- m_ok = FALSE;
+ m_ok = false;
m_cmap = gtk_widget_get_default_colormap();
m_selected.PurgeOtherRepresentations(wxBitmap::Pixmap);
- m_isMemDC = TRUE;
+ m_isMemDC = true;
SetUpDC();
}
else
{
- m_ok = FALSE;
+ m_ok = false;
m_window = (GdkWindow *) NULL;
}
}
if (height) (*height) = 0;
}
}
-
-
#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/math.h"
#include "wx/gtk/private.h"
#include "wx/module.h"
#include "wx/dynlib.h"
-#include "wx/dcmemory.h"
#include "wx/icon.h"
#include <libgnomeprint/gnome-print.h>
#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/dcmemory.h"
#endif // WX_PRECOMP
#include "wx/palette.h"
#include "wx/icon.h"
#include "wx/filefn.h"
#include "wx/image.h"
-#include "wx/dcmemory.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/dcmemory.h"
#endif
-#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/module.h"
#include "wx/fontutil.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: dcmemory.cpp
+// Name: src/gtk1/dcmemory.cpp
// Purpose:
// Author: Robert Roebling
// RCS-ID: $Id$
wxMemoryDC::wxMemoryDC() : wxWindowDC()
{
- m_ok = FALSE;
+ m_ok = false;
m_cmap = gtk_widget_get_default_colormap();
}
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
- : wxWindowDC()
+ : wxWindowDC()
{
- m_ok = FALSE;
+ m_ok = false;
m_cmap = gtk_widget_get_default_colormap();
m_window = m_selected.GetBitmap();
}
- m_isMemDC = TRUE;
+ m_isMemDC = true;
SetUpDC();
}
else
{
- m_ok = FALSE;
+ m_ok = false;
m_window = (GdkWindow *) NULL;
}
}
if (height) (*height) = 0;
}
}
-
-
#include "wx/intl.h"
#include "wx/dcclient.h"
#include "wx/frame.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/html/htmlwin.h"
#include "wx/clipbrd.h"
#include "wx/dataobj.h"
#include "wx/timer.h"
-#include "wx/dcmemory.h"
#include "wx/settings.h"
#include "wx/arrimpl.cpp"
#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/icon.h"
#endif
#include "wx/mac/uma.h"
-#include "wx/dcmemory.h"
// Implementation Notes
// --------------------
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/dcmemory.h"
#endif
-#include "wx/dcmemory.h"
#include "wx/mstream.h"
#include "wx/image.h"
#include "wx/metafile.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/mac/uma.h"
-#include "wx/dcmemory.h"
#include "wx/dcprint.h"
#include "wx/region.h"
#include "wx/image.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/mac/uma.h"
-#include "wx/dcmemory.h"
#include "wx/dcprint.h"
#include "wx/region.h"
#include "wx/image.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/window.h"
+ #include "wx/dcmemory.h"
#endif
-#include "wx/dcmemory.h"
#include "wx/region.h"
#include "wx/toplevel.h"
#include "wx/settings.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: dcmemory.cpp
+// Name: src/mac/carbon/dcmemory.cpp
// Purpose: wxMemoryDC class
// Author: Stefan Csomor
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#include "wx/dcmemory.h"
+
#include "wx/mac/private.h"
//-----------------------------------------------------------------------------
int h = bitmap.GetHeight() ;
// TODO: should this be kCGImageAlphaPremultiplied[First,Last] ?
- CGImageAlphaInfo a = kCGImageAlphaNoneSkipFirst ;
+ CGImageAlphaInfo a = kCGImageAlphaNoneSkipFirst ;
CGColorSpaceRef genericColorSpace = wxMacGetGenericRGBColorSpace();
CGContextRef bmCtx = CGBitmapContextCreate( data , w, h, bitsPerComp , bytesPerPixel * w , genericColorSpace, a );
if ( bmCtx )
{
- CGContextSetFillColorSpace( bmCtx, genericColorSpace );
- CGContextSetStrokeColorSpace( bmCtx, genericColorSpace );
+ CGContextSetFillColorSpace( bmCtx, genericColorSpace );
+ CGContextSetStrokeColorSpace( bmCtx, genericColorSpace );
CGContextTranslateCTM( bmCtx , 0 , m_selected.GetHeight() ) ;
CGContextScaleCTM( bmCtx , 1 , -1 ) ;
- m_graphicContext = new wxMacCGContext( bmCtx ) ;
+ m_graphicContext = new wxMacCGContext( bmCtx ) ;
m_graphicContext->SetPen( m_pen ) ;
- m_graphicContext->SetBrush( m_brush ) ;
+ m_graphicContext->SetBrush( m_brush ) ;
}
m_ok = (m_graphicContext != NULL) ;
///////////////////////////////////////////////////////////////////////////////
// Name: src/mac/carbon/taskbar.cpp
-// Purpose: wxTaskBarIcon
+// Purpose: wxTaskBarIcon
// Author: Ryan Norton
// Modified by:
// Created: 09/25/2004
#ifdef wxHAS_TASK_BAR_ICON
+#include "wx/taskbar.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcmemory.h"
+#endif
+
#include "wx/mac/private.h"
-#include "wx/taskbar.h"
#include "wx/menu.h"
#include "wx/icon.h"
-#include "wx/dcmemory.h"
class wxTaskBarIconImpl
{
public:
wxTaskBarIconWindow(wxTaskBarIconImpl *impl)
- : wxTopLevelWindow(NULL, -1, wxT("")), m_impl(impl)
+ : wxTopLevelWindow(NULL, wxID_ANY, wxEmptyString), m_impl(impl)
{
Connect(
-1, wxEVT_COMMAND_MENU_SELECTED,
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/mac/uma.h"
-#include "wx/dcmemory.h"
#include "wx/dcprint.h"
#include "wx/region.h"
#include "wx/image.h"
#ifndef WX_PRECOMP
#include "wx/window.h"
+ #include "wx/dcmemory.h"
#endif
-#include "wx/dcmemory.h"
#include "wx/region.h"
#include "wx/toplevel.h"
#include "wx/math.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: dcmemory.cpp
+// Name: src/mac/classic/dcmemory.cpp
// Purpose: wxMemoryDC class
// Author: Stefan Csomor
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+#include "wx/wxprec.h"
+
#include "wx/dcmemory.h"
+
#include "wx/mac/private.h"
//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC)
wxMemoryDC::wxMemoryDC(void)
-: m_selected()
+ : m_selected()
{
- m_ok = TRUE;
+ m_ok = true;
SetBackground(*wxWHITE_BRUSH);
SetBrush(*wxWHITE_BRUSH);
SetPen(*wxBLACK_PEN);
- m_ok = FALSE;
+ m_ok = false;
};
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
-: m_selected()
+ : m_selected()
{
- m_ok = TRUE;
+ m_ok = true;
SetBackground(*wxWHITE_BRUSH);
SetBrush(*wxWHITE_BRUSH);
SetPen(*wxBLACK_PEN);
- m_ok = FALSE;
+ m_ok = false;
};
wxMemoryDC::~wxMemoryDC()
}
SetRectRgn( (RgnHandle) m_macBoundaryClipRgn , 0 , 0 , m_selected.GetWidth() , m_selected.GetHeight() ) ;
CopyRgn( (RgnHandle) m_macBoundaryClipRgn ,(RgnHandle) m_macCurrentClipRgn ) ;
- m_ok = TRUE ;
+ m_ok = true ;
}
else
{
- m_ok = FALSE;
+ m_ok = false;
}
}
else
{
- m_ok = FALSE;
+ m_ok = false;
}
}
if (height) (*height) = 0;
}
}
-
-
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/icon.h"
#include "wx/filefn.h"
#include "wx/image.h"
-#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: dcmemory.cpp
+// Name: src/mgl/dcmemory.cpp
// Purpose:
// Author: Robert Roebling, Vaclav Slavik
// RCS-ID: $Id$
-// Copyright: (c) 1998 Robert Roebling,
+// Copyright: (c) 1998 Robert Roebling,
// 2001 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
wxMemoryDC::wxMemoryDC() : wxDC()
{
- m_isMemDC = TRUE;
+ m_isMemDC = true;
}
wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc)) : wxDC()
{
- m_isMemDC = TRUE;
+ m_isMemDC = true;
}
wxMemoryDC::~wxMemoryDC()
#include "wx/wxprec.h"
#include "wx/dc.h"
-#include "wx/dcmemory.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcmemory.h"
+#endif
IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
#include "wx/log.h"
#include "wx/app.h"
#include "wx/window.h"
+ #include "wx/dcmemory.h"
#endif
-#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/math.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/apptrait.h"
-#include "wx/dcmemory.h"
#include "wx/bitmap.h"
#include "wx/evtloop.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: dcmemory.cpp
+// Name: src/msw/dcmemory.cpp
// Purpose: wxMemoryDC class
// Author: Julian Smart
// Modified by:
#pragma hdrstop
#endif
+#include "wx/dcmemory.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/msw/private.h"
-#include "wx/dcmemory.h"
-
// ----------------------------------------------------------------------------
// wxWin macros
// ----------------------------------------------------------------------------
wxDC::DoDrawRectangle(x, y, width, height);
}
}
-
#include "wx/event.h"
#include "wx/app.h"
#include "wx/dcclient.h"
+ #include "wx/dcmemory.h"
#endif // WX_PRECOMP
#include "wx/imaglist.h"
#include "wx/control.h"
#include "wx/sysopt.h"
-#include "wx/dcmemory.h"
#include "wx/msw/private.h"
///////////////////////////////////////////////////////////////////////////////
-// Name: msw/ownerdrw.cpp
+// Name: src/msw/ownerdrw.cpp
// Purpose: implementation of wxOwnerDrawn class
// Author: Vadim Zeitlin
// Modified by:
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/msw/private.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#ifndef WX_PRECOMP
- #include "wx/window.h"
- #include "wx/msw/private.h"
- #include "wx/font.h"
- #include "wx/bitmap.h"
- #include "wx/dcmemory.h"
- #include "wx/menu.h"
- #include "wx/utils.h"
+ #include "wx/window.h"
+ #include "wx/msw/private.h"
+ #include "wx/font.h"
+ #include "wx/bitmap.h"
+ #include "wx/dcmemory.h"
+ #include "wx/menu.h"
+ #include "wx/utils.h"
#endif
#include "wx/settings.h"
// placed on top of each other.
if ( !m_strAccel.empty() )
{
- str.Pad(str.Length()%8);
+ str.Pad(str.length()%8);
str += m_strAccel;
}
xText += 3; // separate text from the highlight rectangle
SIZE sizeRect;
- ::GetTextExtentPoint32(hdc, strMenuText.c_str(), strMenuText.Length(), &sizeRect);
+ ::GetTextExtentPoint32(hdc, strMenuText.c_str(), strMenuText.length(), &sizeRect);
::DrawState(hdc, NULL, NULL,
(LPARAM)strMenuText.c_str(), strMenuText.length(),
xText, rc.y + (int) ((rc.GetHeight()-sizeRect.cy)/2.0), // centre text vertically
#endif // wxUSE_OWNER_DRAWN
-
/////////////////////////////////////////////////////////////////////////////
-// Name: msw/statbox.cpp
+// Name: src/msw/statbox.cpp
// Purpose: wxStaticBox
// Author: Julian Smart
// Modified by:
#if wxUSE_STATBOX
+#include "wx/statbox.h"
+
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/dcclient.h"
+ #include "wx/dcmemory.h"
#endif
-#include "wx/statbox.h"
#include "wx/notebook.h"
#include "wx/sysopt.h"
#include "wx/image.h"
-#include "wx/dcmemory.h"
#include "wx/sysopt.h"
#include "wx/msw/uxtheme.h"
#endif // !__WXWINCE__
#endif // wxUSE_STATBOX
-
#include "wx/object.h"
#include "wx/log.h"
#include "wx/window.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/colour.h"
#include "wx/listbox.h"
#include "wx/ownerdrw.h"
#include "wx/settings.h"
-#include "wx/dcmemory.h"
#include "wx/dcscreen.h"
#define INCL_PM
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#include "wx/dcmemory.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/os2/private.h"
-#include "wx/dcmemory.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
/////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
-// Name: msw/ownerdrw.cpp
+// Name: src/os2/ownerdrw.cpp
// Purpose: implementation of wxOwnerDrawn class
// Author: David Webster
// Modified by:
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_OWNER_DRAWN
+
#ifndef WX_PRECOMP
- #include "wx/window.h"
- #include "wx/os2/private.h"
- #include "wx/font.h"
- #include "wx/bitmap.h"
- #include "wx/dcmemory.h"
- #include "wx/menu.h"
- #include "wx/utils.h"
+ #include "wx/window.h"
+ #include "wx/os2/private.h"
+ #include "wx/font.h"
+ #include "wx/bitmap.h"
+ #include "wx/dcmemory.h"
+ #include "wx/menu.h"
+ #include "wx/utils.h"
#endif
-#if wxUSE_OWNER_DRAWN
-
#include "wx/settings.h"
#include "wx/ownerdrw.h"
#include "wx/menuitem.h"
// placed on top of each other.
if (!m_strAccel.empty() )
{
- sStr.Pad(sStr.Length()%8);
+ sStr.Pad(sStr.length()%8);
sStr += m_strAccel;
}
vDC.SetFont(GetFont());
#pragma hdrstop
#endif
+#include "wx/dcmemory.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/log.h"
#endif
-#include "wx/dcmemory.h"
-
// ----------------------------------------------------------------------------
// wxWin macros
// ----------------------------------------------------------------------------
void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
{
}
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#ifndef WX_PRECOMP
- #include "wx/window.h"
- #include "wx/font.h"
- #include "wx/bitmap.h"
- #include "wx/dcmemory.h"
- #include "wx/menu.h"
- #include "wx/utils.h"
+ #include "wx/window.h"
+ #include "wx/font.h"
+ #include "wx/bitmap.h"
+ #include "wx/dcmemory.h"
+ #include "wx/menu.h"
+ #include "wx/utils.h"
#endif
#include "wx/settings.h"
#endif // wxUSE_OWNER_DRAWN
-
#if wxUSE_NOTEBOOK
-#include "wx/imaglist.h"
#include "wx/notebook.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcmemory.h"
+#endif
+
+#include "wx/imaglist.h"
#include "wx/spinbutt.h"
-#include "wx/dcmemory.h"
#include "wx/univ/renderer.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/dcmemory.h"
#endif
#include "wx/icon.h"
#include "wx/image.h"
-#if wxUSE_NANOX
-#include "wx/dcmemory.h"
-#endif
#include "wx/x11/private.h"
#include "wx/wxprec.h"
#include "wx/dc.h"
-#include "wx/dcmemory.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcmemory.h"
+#endif
IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/window.h"
+ #include "wx/dcmemory.h"
#endif
-#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/module.h"
#include "wx/fontutil.h"