2006-10-24 08:29:14 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/private/overlay.h
|
|
|
|
// Purpose: wxOverlayImpl declaration
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2006-10-20
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) wxWidgets team
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRIVATE_OVERLAY_H_
|
|
|
|
#define _WX_PRIVATE_OVERLAY_H_
|
|
|
|
|
|
|
|
#include "wx/overlay.h"
|
|
|
|
|
2006-10-25 08:12:56 -04:00
|
|
|
#ifdef wxHAS_NATIVE_OVERLAY
|
2006-10-24 08:29:14 -04:00
|
|
|
|
|
|
|
#if defined(__WXMAC__)
|
2008-06-11 15:17:41 -04:00
|
|
|
#include "wx/osx/carbon/private/overlay.h"
|
2006-10-24 08:29:14 -04:00
|
|
|
#elif defined(__WXDFB__)
|
|
|
|
#include "wx/dfb/private/overlay.h"
|
|
|
|
#else
|
|
|
|
#error "unknown native wxOverlay implementation"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else // !wxHAS_NATIVE_OVERLAY
|
|
|
|
|
2006-10-24 09:50:19 -04:00
|
|
|
#include "wx/bitmap.h"
|
2006-10-24 12:43:45 -04:00
|
|
|
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
2006-10-24 09:50:19 -04:00
|
|
|
|
2006-10-24 08:29:14 -04:00
|
|
|
// generic implementation of wxOverlay
|
|
|
|
class wxOverlayImpl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxOverlayImpl();
|
|
|
|
~wxOverlayImpl();
|
2006-10-24 09:50:19 -04:00
|
|
|
|
|
|
|
|
2006-10-24 08:29:14 -04:00
|
|
|
// clears the overlay without restoring the former state
|
|
|
|
// to be done eg when the window content has been changed and repainted
|
|
|
|
void Reset();
|
2006-10-24 09:50:19 -04:00
|
|
|
|
2006-10-24 08:29:14 -04:00
|
|
|
// returns true if it has been setup
|
|
|
|
bool IsOk();
|
2006-10-24 09:50:19 -04:00
|
|
|
|
2007-12-22 10:14:24 -05:00
|
|
|
void Init(wxDC* dc, int x , int y , int width , int height);
|
2006-10-24 09:50:19 -04:00
|
|
|
|
2007-12-22 10:14:24 -05:00
|
|
|
void BeginDrawing(wxDC* dc);
|
2006-10-24 09:50:19 -04:00
|
|
|
|
2007-12-22 10:14:24 -05:00
|
|
|
void EndDrawing(wxDC* dc);
|
2006-10-24 09:50:19 -04:00
|
|
|
|
2007-12-22 10:14:24 -05:00
|
|
|
void Clear(wxDC* dc);
|
2006-10-24 08:29:14 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
wxBitmap m_bmpSaved ;
|
|
|
|
int m_x ;
|
|
|
|
int m_y ;
|
|
|
|
int m_width ;
|
|
|
|
int m_height ;
|
|
|
|
wxWindow* m_window ;
|
2007-11-30 13:06:10 -05:00
|
|
|
};
|
2006-10-24 08:29:14 -04:00
|
|
|
|
|
|
|
#endif // wxHAS_NATIVE_OVERLAY/!wxHAS_NATIVE_OVERLAY
|
|
|
|
|
|
|
|
#endif // _WX_PRIVATE_OVERLAY_H_
|