1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/private/overlay.h
3 // Purpose: wxOverlayImpl declaration
4 // Author: Vaclav Slavik
6 // Copyright: (c) wxWidgets team
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_DFB_PRIVATE_OVERLAY_H_
11 #define _WX_DFB_PRIVATE_OVERLAY_H_
13 #include "wx/dfb/dfbptr.h"
14 #include "wx/gdicmn.h"
16 wxDFB_DECLARE_INTERFACE(IDirectFBSurface
);
18 class WXDLLIMPEXP_FWD_CORE wxWindow
;
19 class WXDLLIMPEXP_FWD_CORE wxDC
;
29 void Init(wxDC
* dc
, int x
, int y
, int width
, int height
);
30 void BeginDrawing(wxDC
* dc
);
31 void EndDrawing(wxDC
* dc
);
34 // wxDFB specific methods:
35 bool IsEmpty() const { return m_isEmpty
; }
36 wxRect
GetRect() const { return m_rect
; }
37 wxIDirectFBSurfacePtr
GetDirectFBSurface() const { return m_surface
; }
40 // window the overlay is associated with
42 // rectangle covered by the overlay, in m_window's window coordinates
44 // surface of the overlay, same size as m_rect
45 wxIDirectFBSurfacePtr m_surface
;
46 // this flag is set to true if nothing was drawn on the overlay (either
47 // initially or Clear() was called)
51 #endif // _WX_DFB_PRIVATE_OVERLAY_H_