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 virtual bool Initialize(int& argc
, wxChar
**argv
);
58 virtual void CleanUp();
60 virtual bool Yield(bool onlyIfNeeded
= FALSE
);
62 virtual wxDisplayModeInfo
GetDisplayMode() const { return m_displayMode
; }
63 virtual bool SetDisplayMode(const wxDisplayModeInfo
& mode
);
66 DECLARE_DYNAMIC_CLASS(wxApp
)
69 wxEventLoop
*m_mainLoop
;
70 wxDisplayModeInfo m_displayMode
;
73 #endif // __WX_APP_H__