]>
Commit | Line | Data |
---|---|---|
b3c86150 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/dfb/app.h | |
3 | // Purpose: wxApp class | |
4 | // Author: Vaclav Slavik | |
5 | // Created: 2006-08-10 | |
6 | // RCS-ID: $Id$ | |
7 | // Copyright: (c) 2006 REA Elektronik GmbH | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_DFB_APP_H_ | |
12 | #define _WX_DFB_APP_H_ | |
13 | ||
14 | #include "wx/dfb/ifacehelpers.h" | |
15 | ||
16 | wxDFB_DECLARE_INTERFACE(IDirectFB); | |
17 | ||
18 | //----------------------------------------------------------------------------- | |
19 | // wxApp | |
20 | //----------------------------------------------------------------------------- | |
21 | ||
22 | class WXDLLIMPEXP_CORE wxApp: public wxAppBase | |
23 | { | |
24 | public: | |
25 | wxApp(); | |
26 | ~wxApp(); | |
27 | ||
28 | // override base class (pure) virtuals | |
29 | virtual bool Initialize(int& argc, wxChar **argv); | |
30 | virtual void CleanUp(); | |
31 | ||
32 | virtual void WakeUpIdle(); | |
33 | virtual bool Yield(bool onlyIfNeeded = false); | |
34 | ||
35 | virtual wxVideoMode GetDisplayMode() const; | |
36 | virtual bool SetDisplayMode(const wxVideoMode& mode); | |
37 | ||
38 | // implementation - get singleton DirectFB interface | |
39 | IDirectFBPtr GetDirectFBInterface(); | |
40 | ||
41 | private: | |
42 | IDirectFBPtr m_dfb; | |
43 | wxVideoMode m_videoMode; | |
44 | ||
45 | DECLARE_DYNAMIC_CLASS(wxApp) | |
46 | DECLARE_EVENT_TABLE() | |
47 | }; | |
48 | ||
49 | #endif // _WX_DFB_APP_H_ |