]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/app.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
14 #pragma interface "app.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 class WXDLLEXPORT wxApp
;
25 class WXDLLEXPORT wxLog
;
26 class WXDLLEXPORT wxEventLoop
;
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 class WXDLLEXPORT wxApp
: public wxAppBase
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(). */
42 virtual bool OnInitGui();
44 // override base class (pure) virtuals
45 virtual int MainLoop();
46 virtual void ExitMainLoop();
47 virtual bool Initialized();
48 virtual bool Pending();
49 virtual void Dispatch();
51 virtual wxIcon
GetStdIcon(int which
) const;
53 // implementation only from now on
54 void OnIdle(wxIdleEvent
&event
);
55 bool SendIdleEvents();
56 bool SendIdleEvents(wxWindow
* win
);
58 static bool Initialize();
59 static void CleanUp();
62 void DeletePendingObjects();
64 virtual bool Yield(bool onlyIfNeeded
= FALSE
);
67 DECLARE_DYNAMIC_CLASS(wxApp
)
70 wxEventLoop
*m_mainLoop
;
73 int WXDLLEXPORT
wxEntry(int argc
, char *argv
[]);
75 #endif // __WX_APP_H__