]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/app.h
compilation fix for wxString::Format("no variadic arguments") and VC6
[wxWidgets.git] / include / wx / mgl / app.h
CommitLineData
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
VS
21class WXDLLIMPEXP_FWD_CORE wxApp;
22class WXDLLIMPEXP_FWD_CORE wxLog;
23class WXDLLIMPEXP_FWD_CORE wxEventLoop;
32b8ec41
VZ
24
25//-----------------------------------------------------------------------------
26// wxApp
27//-----------------------------------------------------------------------------
28
29class WXDLLEXPORT wxApp: public wxAppBase
30{
31public:
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
VS
47 virtual bool Yield(bool onlyIfNeeded = FALSE);
48
fedec981
VZ
49 virtual wxVideoMode GetDisplayMode() const { return m_displayMode; }
50 virtual bool SetDisplayMode(const wxVideoMode& mode);
634f6a1f 51
32b8ec41
VZ
52private:
53 DECLARE_DYNAMIC_CLASS(wxApp)
1bf77ee5 54
fedec981 55 wxVideoMode m_displayMode;
32b8ec41
VZ
56};
57
32b8ec41 58#endif // __WX_APP_H__