]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/app.h
Added __WXMAC_OSX__ guards around the CFRunLoop calls, CFRunLoop not available on...
[wxWidgets.git] / include / wx / mgl / app.h
CommitLineData
32b8ec41
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: app.h
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
12028905 13#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
32b8ec41
VZ
14#pragma interface "app.h"
15#endif
16
17#include "wx/frame.h"
18#include "wx/icon.h"
19
20//-----------------------------------------------------------------------------
21// classes
22//-----------------------------------------------------------------------------
23
7bdc1879
VS
24class WXDLLEXPORT wxApp;
25class WXDLLEXPORT wxLog;
ef344ff8 26class WXDLLEXPORT wxEventLoop;
32b8ec41
VZ
27
28//-----------------------------------------------------------------------------
29// wxApp
30//-----------------------------------------------------------------------------
31
32class WXDLLEXPORT wxApp: public wxAppBase
33{
34public:
7bdc1879
VS
35 wxApp();
36 ~wxApp();
32b8ec41
VZ
37
38 /* override for altering the way wxGTK intializes the GUI
39 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
40 * default. when overriding this method, the code in it is likely to be
41 * platform dependent, otherwise use OnInit(). */
7bdc1879 42 virtual bool OnInitGui();
32b8ec41
VZ
43
44 // override base class (pure) virtuals
05e2b077 45 virtual bool Initialize(int& argc, wxChar **argv);
94826170 46 virtual void CleanUp();
752464f9
VS
47
48 virtual void Exit();
49 virtual void WakeUpIdle();
e1218bd6
VS
50 virtual bool Yield(bool onlyIfNeeded = FALSE);
51
fedec981
VZ
52 virtual wxVideoMode GetDisplayMode() const { return m_displayMode; }
53 virtual bool SetDisplayMode(const wxVideoMode& mode);
634f6a1f 54
32b8ec41
VZ
55private:
56 DECLARE_DYNAMIC_CLASS(wxApp)
57 DECLARE_EVENT_TABLE()
1bf77ee5 58
fedec981 59 wxVideoMode m_displayMode;
32b8ec41
VZ
60};
61
32b8ec41 62#endif // __WX_APP_H__
6abf9dac 63