]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mgl/app.h
made declaration of WXDLL_ENTRY_FUNCTION match it definition
[wxWidgets.git] / include / wx / mgl / app.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: app.h
3// Purpose:
4// Author: Vaclav Slavik
5// Id: $Id$
6// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef __WX_APP_H__
11#define __WX_APP_H__
12
13#ifdef __GNUG__
14#pragma interface "app.h"
15#endif
16
17#include "wx/frame.h"
18#include "wx/icon.h"
19
20//-----------------------------------------------------------------------------
21// classes
22//-----------------------------------------------------------------------------
23
24class WXDLLEXPORT wxApp;
25class WXDLLEXPORT wxLog;
26class WXDLLEXPORT wxEventLoop;
27class WXDLLEXPORT wxDesktopWindow;
28
29//-----------------------------------------------------------------------------
30// wxApp
31//-----------------------------------------------------------------------------
32
33class WXDLLEXPORT wxApp: public wxAppBase
34{
35public:
36 wxApp();
37 ~wxApp();
38
39 /* override for altering the way wxGTK intializes the GUI
40 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
41 * default. when overriding this method, the code in it is likely to be
42 * platform dependent, otherwise use OnInit(). */
43 virtual bool OnInitGui();
44
45 // override base class (pure) virtuals
46 virtual int MainLoop();
47 virtual void ExitMainLoop();
48 virtual bool Initialized();
49 virtual bool Pending();
50 virtual void Dispatch();
51
52 virtual wxIcon GetStdIcon(int which) const;
53
54 // implementation only from now on
55 void OnIdle(wxIdleEvent &event);
56 bool SendIdleEvents();
57 bool SendIdleEvents(wxWindow* win);
58
59 static bool Initialize();
60 static void CleanUp();
61
62 bool ProcessIdle();
63 void DeletePendingObjects();
64
65 virtual bool Yield(bool onlyIfNeeded = FALSE);
66
67private:
68 DECLARE_DYNAMIC_CLASS(wxApp)
69 DECLARE_EVENT_TABLE()
70
71 wxEventLoop *m_mainLoop;
72};
73
74int WXDLLEXPORT wxEntry(int argc, char *argv[]);
75
76#endif // __WX_APP_H__