]>
Commit | Line | Data |
---|---|---|
30c841c8 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/dfb/private/overlay.h | |
3 | // Purpose: wxOverlayImpl declaration | |
4 | // Author: Vaclav Slavik | |
5 | // Created: 2006-10-20 | |
6 | // RCS-ID: $Id$ | |
7 | // Copyright: (c) wxWidgets team | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_DFB_PRIVATE_OVERLAY_H_ | |
12 | #define _WX_DFB_PRIVATE_OVERLAY_H_ | |
13 | ||
14 | #include "wx/dfb/dfbptr.h" | |
23205be8 | 15 | #include "wx/gdicmn.h" |
30c841c8 VS |
16 | |
17 | wxDFB_DECLARE_INTERFACE(IDirectFBSurface); | |
18 | ||
b5dbe15d | 19 | class WXDLLIMPEXP_FWD_CORE wxWindow; |
1d7ed729 | 20 | class WXDLLIMPEXP_FWD_CORE wxDC; |
30c841c8 VS |
21 | |
22 | class wxOverlayImpl | |
23 | { | |
24 | public: | |
25 | wxOverlayImpl(); | |
26 | ~wxOverlayImpl(); | |
27 | ||
28 | void Reset(); | |
29 | bool IsOk(); | |
1d7ed729 SC |
30 | void Init(wxDC* dc, int x , int y , int width , int height); |
31 | void BeginDrawing(wxDC* dc); | |
32 | void EndDrawing(wxDC* dc); | |
33 | void Clear(wxDC* dc); | |
30c841c8 VS |
34 | |
35 | // wxDFB specific methods: | |
36 | bool IsEmpty() const { return m_isEmpty; } | |
37 | wxRect GetRect() const { return m_rect; } | |
38 | wxIDirectFBSurfacePtr GetDirectFBSurface() const { return m_surface; } | |
39 | ||
40 | public: | |
41 | // window the overlay is associated with | |
42 | wxWindow *m_window; | |
43 | // rectangle covered by the overlay, in m_window's window coordinates | |
44 | wxRect m_rect; | |
45 | // surface of the overlay, same size as m_rect | |
46 | wxIDirectFBSurfacePtr m_surface; | |
47 | // this flag is set to true if nothing was drawn on the overlay (either | |
48 | // initially or Clear() was called) | |
49 | bool m_isEmpty; | |
50 | }; | |
51 | ||
52 | #endif // _WX_DFB_PRIVATE_OVERLAY_H_ |