1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001-2002 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();
50 virtual bool ProcessIdle();
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();
60 void DeletePendingObjects();
62 virtual bool Yield(bool onlyIfNeeded
= FALSE
);
64 virtual wxDisplayModeInfo
GetDisplayMode() const { return m_displayMode
; }
65 virtual bool SetDisplayMode(const wxDisplayModeInfo
& mode
);
68 DECLARE_DYNAMIC_CLASS(wxApp
)
71 wxEventLoop
*m_mainLoop
;
72 wxDisplayModeInfo m_displayMode
;
75 int WXDLLEXPORT
wxEntry(int argc
, char *argv
[]);
77 #endif // __WX_APP_H__