dcclient.cpp

来自「A*算法 A*算法 A*算法 A*算法A*算法A*算法」· C++ 代码 · 共 164 行

CPP
164
字号
/////////////////////////////////////////////////////////////////////////////
// Name:        src/palmos/dcclient.cpp
// Purpose:     wxClientDC class
// Author:      William Osborne - minimal working wxPalmOS port
// Modified by:
// Created:     10/13/04
// RCS-ID:      $Id: dcclient.cpp,v 1.3 2005/02/14 10:49:00 ABX Exp $
// Copyright:   (c) William Osborne
// Licence:     wxWindows licence
/////////////////////////////////////////////////////////////////////////////

// ===========================================================================
// declarations
// ===========================================================================

// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------

#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
    #pragma implementation "dcclient.h"
#endif

// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
    #pragma hdrstop
#endif

#include "wx/string.h"
#include "wx/log.h"
#include "wx/window.h"

#include "wx/dcclient.h"

// ----------------------------------------------------------------------------
// array/list types
// ----------------------------------------------------------------------------

struct WXDLLEXPORT wxPaintDCInfo
{
    wxPaintDCInfo(wxWindow *win, wxDC *dc)
    {
        handle = win->GetWinHandle();
        hdc    = dc->GetHDC();
        count  = 1;
    }

    WXWINHANDLE handle;       // window for this DC
    WXHDC       hdc;        // the DC handle
    size_t     count;      // usage count
};

#include "wx/arrimpl.cpp"

WX_DEFINE_OBJARRAY(wxArrayDCInfo);

// ----------------------------------------------------------------------------
// macros
// ----------------------------------------------------------------------------

IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC)
IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC)
IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxClientDC)
IMPLEMENT_CLASS(wxPaintDCEx, wxPaintDC)

// ----------------------------------------------------------------------------
// global variables
// ----------------------------------------------------------------------------

#ifdef __WXDEBUG__
    int g_isPainting = 0;
#endif // __WXDEBUG__

// ===========================================================================
// implementation
// ===========================================================================

// ----------------------------------------------------------------------------
// wxWindowDC
// ----------------------------------------------------------------------------

wxWindowDC::wxWindowDC()
{
}

wxWindowDC::wxWindowDC(wxWindow *canvas)
{
}

void wxWindowDC::InitDC()
{
}

void wxWindowDC::DoGetSize(int *width, int *height) const
{
}

// ----------------------------------------------------------------------------
// wxClientDC
// ----------------------------------------------------------------------------

wxClientDC::wxClientDC()
{
}

wxClientDC::wxClientDC(wxWindow *canvas)
{
}

void wxClientDC::InitDC()
{
}

wxClientDC::~wxClientDC()
{
}

void wxClientDC::DoGetSize(int *width, int *height) const
{
}

// ----------------------------------------------------------------------------
// wxPaintDC
// ----------------------------------------------------------------------------

wxArrayDCInfo wxPaintDC::ms_cache;

wxPaintDC::wxPaintDC()
{
}

wxPaintDC::wxPaintDC(wxWindow *canvas)
{
}

wxPaintDC::~wxPaintDC()
{
}

wxPaintDCInfo *wxPaintDC::FindInCache(size_t *index) const
{
    return NULL;
}

WXHDC wxPaintDC::FindDCInCache(wxWindow* win)
{
    return 0;
}

/*
 * wxPaintDCEx
 */

wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
{
}

wxPaintDCEx::~wxPaintDCEx()
{
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?