]>
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
;
27 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 class WXDLLEXPORT wxApp
: public wxAppBase
37 /* override for altering the way wxGTK intializes the GUI
38 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
39 * default. when overriding this method, the code in it is likely to be
40 * platform dependent, otherwise use OnInit(). */
41 virtual bool OnInitGui();
43 // override base class (pure) virtuals
44 virtual int MainLoop();
45 virtual void ExitMainLoop();
46 virtual bool Initialized();
47 virtual bool Pending();
48 virtual void Dispatch();
50 virtual wxIcon
GetStdIcon(int which
) const;
52 // implementation only from now on
53 void OnIdle(wxIdleEvent
&event
);
54 bool SendIdleEvents();
55 bool SendIdleEvents(wxWindow
* win
);
57 static bool Initialize();
58 static void CleanUp();
61 void DeletePendingObjects();
64 DECLARE_DYNAMIC_CLASS(wxApp
)
68 int WXDLLEXPORT
wxEntry(int argc
, char *argv
[]);
70 #endif // __WX_APP_H__