]>
Commit | Line | Data |
---|---|---|
32b8ec41 | 1 | ///////////////////////////////////////////////////////////////////////////// |
71d59a4d | 2 | // Name: wx/mgl/app.h |
32b8ec41 VZ |
3 | // Purpose: |
4 | // Author: Vaclav Slavik | |
5 | // Id: $Id$ | |
52750c2e | 6 | // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) |
65571936 | 7 | // Licence: wxWindows licence |
32b8ec41 VZ |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | #ifndef __WX_APP_H__ | |
11 | #define __WX_APP_H__ | |
12 | ||
32b8ec41 VZ |
13 | #include "wx/frame.h" |
14 | #include "wx/icon.h" | |
71d59a4d | 15 | #include "wx/vidmode.h" |
32b8ec41 VZ |
16 | |
17 | //----------------------------------------------------------------------------- | |
18 | // classes | |
19 | //----------------------------------------------------------------------------- | |
20 | ||
b5dbe15d | 21 | class WXDLLIMPEXP_FWD_CORE wxApp; |
4f7d425f | 22 | class WXDLLIMPEXP_FWD_BASE wxLog; |
b5dbe15d | 23 | class WXDLLIMPEXP_FWD_CORE wxEventLoop; |
32b8ec41 VZ |
24 | |
25 | //----------------------------------------------------------------------------- | |
26 | // wxApp | |
27 | //----------------------------------------------------------------------------- | |
28 | ||
53a2db12 | 29 | class WXDLLIMPEXP_CORE wxApp: public wxAppBase |
32b8ec41 VZ |
30 | { |
31 | public: | |
7bdc1879 | 32 | wxApp(); |
d3c7fc99 | 33 | virtual ~wxApp(); |
32b8ec41 VZ |
34 | |
35 | /* override for altering the way wxGTK intializes the GUI | |
36 | * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by | |
37 | * default. when overriding this method, the code in it is likely to be | |
38 | * platform dependent, otherwise use OnInit(). */ | |
7bdc1879 | 39 | virtual bool OnInitGui(); |
32b8ec41 VZ |
40 | |
41 | // override base class (pure) virtuals | |
05e2b077 | 42 | virtual bool Initialize(int& argc, wxChar **argv); |
94826170 | 43 | virtual void CleanUp(); |
71d59a4d | 44 | |
752464f9 VS |
45 | virtual void Exit(); |
46 | virtual void WakeUpIdle(); | |
e1218bd6 | 47 | |
fedec981 VZ |
48 | virtual wxVideoMode GetDisplayMode() const { return m_displayMode; } |
49 | virtual bool SetDisplayMode(const wxVideoMode& mode); | |
634f6a1f | 50 | |
32b8ec41 VZ |
51 | private: |
52 | DECLARE_DYNAMIC_CLASS(wxApp) | |
1bf77ee5 | 53 | |
d48b06bd FM |
54 | virtual bool DoYield(bool onlyIfNeeded, long eventsToProcess); |
55 | ||
fedec981 | 56 | wxVideoMode m_displayMode; |
32b8ec41 VZ |
57 | }; |
58 | ||
32b8ec41 | 59 | #endif // __WX_APP_H__ |