Use a common base class for wxOverlay implementations This will allow for the possibility of choosing the implementation dynamically at runtime.
29 lines
815 B
C++
29 lines
815 B
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/private/overlay.h
|
|
// Purpose: wxOverlayImpl declaration
|
|
// Author: Stefan Csomor
|
|
// Modified by:
|
|
// Created: 2006-10-20
|
|
// Copyright: (c) wxWidgets team
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_PRIVATE_OVERLAY_H_
|
|
#define _WX_PRIVATE_OVERLAY_H_
|
|
|
|
#include "wx/overlay.h"
|
|
|
|
class wxOverlay::Impl
|
|
{
|
|
public:
|
|
virtual ~Impl();
|
|
virtual bool IsOk() = 0;
|
|
virtual void Init(wxDC* dc, int x, int y, int width, int height) = 0;
|
|
virtual void BeginDrawing(wxDC* dc) = 0;
|
|
virtual void EndDrawing(wxDC* dc) = 0;
|
|
virtual void Clear(wxDC* dc) = 0;
|
|
virtual void Reset() = 0;
|
|
};
|
|
|
|
#endif // _WX_PRIVATE_OVERLAY_H_
|