Files
wxWidgets/src/palmos/dcmemory.cpp
Vadim Zeitlin 03647350fc No changes, just removed hard tabs and trailing white space.
This commit is huge but there are no non-white-space changes in it.

Some files containing third-party sources (src/msw/wince/time.cpp,
src/x11/pango*.cpp) were left unchanged.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-21 10:41:26 +00:00

94 lines
2.2 KiB
C++

/////////////////////////////////////////////////////////////////////////////
// Name: src/palmos/dcmemory.cpp
// Purpose: wxMemoryDC class
// Author: William Osborne - minimal working wxPalmOS port
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id$
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/dcmemory.h"
#include "wx/palmos/dcmemory.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/log.h"
#endif
// ----------------------------------------------------------------------------
// wxMemoryDCImpl
// ----------------------------------------------------------------------------
IMPLEMENT_ABSTRACT_CLASS(wxMemoryDCImpl, wxPalmDCImpl)
wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner )
: wxPalmDCImpl( owner )
{
CreateCompatible(NULL);
Init();
}
wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap )
: wxPalmDCImpl( owner )
{
CreateCompatible(NULL);
Init();
DoSelect(bitmap);
}
wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc )
: wxPalmDCImpl( owner )
{
wxCHECK_RET( dc, wxT("NULL dc in wxMemoryDC ctor") );
CreateCompatible(dc);
Init();
}
void wxMemoryDCImpl::Init()
{
}
bool wxMemoryDCImpl::CreateCompatible(wxDC *dc)
{
wxDCImpl *impl = dc ? dc->GetImpl() : NULL ;
wxPalmDCImpl *msw_impl = wxDynamicCast( impl, wxPalmDCImpl );
if ( dc && !msw_impl)
{
m_ok = false;
return false;
}
return false;
}
void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap )
{
}
void wxMemoryDCImpl::DoGetSize(int *width, int *height) const
{
}
wxBitmap wxMemoryDCImpl::DoGetAsBitmap(const wxRect* subrect) const
{
}