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();
51 // implementation only from now on
52 void OnIdle(wxIdleEvent
&event
);
54 virtual bool Initialize(int& argc
, wxChar
**argv
);
55 virtual void CleanUp();
57 virtual bool Yield(bool onlyIfNeeded
= FALSE
);
59 virtual wxDisplayModeInfo
GetDisplayMode() const { return m_displayMode
; }
60 virtual bool SetDisplayMode(const wxDisplayModeInfo
& mode
);
63 DECLARE_DYNAMIC_CLASS(wxApp
)
66 wxEventLoop
*m_mainLoop
;
67 wxDisplayModeInfo m_displayMode
;
70 #endif // __WX_APP_H__