1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/overlay.h
3 // Purpose: wxOverlayImpl declaration
4 // Author: Stefan Csomor
7 // Copyright: (c) wxWidgets team
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PRIVATE_OVERLAY_H_
12 #define _WX_PRIVATE_OVERLAY_H_
14 #include "wx/overlay.h"
16 #ifdef wxHAS_NATIVE_OVERLAY
18 #if defined(__WXMAC__)
19 #include "wx/osx/carbon/private/overlay.h"
20 #elif defined(__WXDFB__)
21 #include "wx/dfb/private/overlay.h"
23 #error "unknown native wxOverlay implementation"
26 #else // !wxHAS_NATIVE_OVERLAY
28 #include "wx/bitmap.h"
30 class WXDLLIMPEXP_FWD_CORE wxWindow
;
32 // generic implementation of wxOverlay
40 // clears the overlay without restoring the former state
41 // to be done eg when the window content has been changed and repainted
44 // returns true if it has been setup
47 void Init(wxDC
* dc
, int x
, int y
, int width
, int height
);
49 void BeginDrawing(wxDC
* dc
);
51 void EndDrawing(wxDC
* dc
);
64 #endif // wxHAS_NATIVE_OVERLAY/!wxHAS_NATIVE_OVERLAY
66 #endif // _WX_PRIVATE_OVERLAY_H_