]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mgl/app.h
document various enumerations defined in defs.h; give a name to the anonymous enum...
[wxWidgets.git] / include / wx / mgl / app.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/mgl/app.h
3// Purpose:
4// Author: Vaclav Slavik
5// Id: $Id$
6// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef __WX_APP_H__
11#define __WX_APP_H__
12
13#include "wx/frame.h"
14#include "wx/icon.h"
15#include "wx/vidmode.h"
16
17//-----------------------------------------------------------------------------
18// classes
19//-----------------------------------------------------------------------------
20
21class WXDLLIMPEXP_FWD_CORE wxApp;
22class WXDLLIMPEXP_FWD_BASE wxLog;
23class WXDLLIMPEXP_FWD_CORE wxEventLoop;
24
25//-----------------------------------------------------------------------------
26// wxApp
27//-----------------------------------------------------------------------------
28
29class WXDLLIMPEXP_CORE wxApp: public wxAppBase
30{
31public:
32 wxApp();
33 virtual ~wxApp();
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(). */
39 virtual bool OnInitGui();
40
41 // override base class (pure) virtuals
42 virtual bool Initialize(int& argc, wxChar **argv);
43 virtual void CleanUp();
44
45 virtual void Exit();
46 virtual void WakeUpIdle();
47 virtual bool Yield(bool onlyIfNeeded = FALSE);
48
49 virtual wxVideoMode GetDisplayMode() const { return m_displayMode; }
50 virtual bool SetDisplayMode(const wxVideoMode& mode);
51
52private:
53 DECLARE_DYNAMIC_CLASS(wxApp)
54
55 wxVideoMode m_displayMode;
56};
57
58#endif // __WX_APP_H__