]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/private/overlay.h
SetTextColour is gone
[wxWidgets.git] / include / wx / dfb / private / overlay.h
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"
15
16 wxDFB_DECLARE_INTERFACE(IDirectFBSurface);
17
18 class WXDLLEXPORT wxWindow;
19
20
21 class wxOverlayImpl
22 {
23 public:
24 wxOverlayImpl();
25 ~wxOverlayImpl();
26
27 void Reset();
28 bool IsOk();
29 void Init(wxWindowDC* dc, int x , int y , int width , int height);
30 void BeginDrawing(wxWindowDC* dc);
31 void EndDrawing(wxWindowDC* dc);
32 void Clear(wxWindowDC* dc);
33
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; }
38
39 public:
40 // window the overlay is associated with
41 wxWindow *m_window;
42 // rectangle covered by the overlay, in m_window's window coordinates
43 wxRect m_rect;
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)
48 bool m_isEmpty;
49 };
50
51 #endif // _WX_DFB_PRIVATE_OVERLAY_H_