1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/overlay.h
3 // Purpose: wxOverlayImpl declaration
4 // Author: Stefan Csomor
8 // Copyright: (c) wxWidgets team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRIVATE_OVERLAY_H_
13 #define _WX_PRIVATE_OVERLAY_H_
15 #include "wx/overlay.h"
17 #ifdef wxHAS_NATIVE_OVERLAY
19 #if defined(__WXMAC__)
20 #include "wx/mac/carbon/private/overlay.h"
21 #elif defined(__WXDFB__)
22 #include "wx/dfb/private/overlay.h"
24 #error "unknown native wxOverlay implementation"
27 #else // !wxHAS_NATIVE_OVERLAY
29 #include "wx/bitmap.h"
31 class WXDLLIMPEXP_FWD_CORE wxWindow
;
33 // generic implementation of wxOverlay
41 // clears the overlay without restoring the former state
42 // to be done eg when the window content has been changed and repainted
45 // returns true if it has been setup
48 void Init(wxDC
* dc
, int x
, int y
, int width
, int height
);
50 void BeginDrawing(wxDC
* dc
);
52 void EndDrawing(wxDC
* dc
);
65 #endif // wxHAS_NATIVE_OVERLAY/!wxHAS_NATIVE_OVERLAY
67 #endif // _WX_PRIVATE_OVERLAY_H_