]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/app.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
14 #pragma interface "app.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
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() {return 0;}
43 // override base class (pure) virtuals
44 virtual int MainLoop() {return 0;}
45 virtual void ExitMainLoop() {}
46 virtual bool Initialized() {return 0;}
47 virtual bool Pending() {return 0;}
48 virtual void Dispatch() {}
50 virtual wxIcon
GetStdIcon(int which
) const {return wxNullIcon
;}
52 // implementation only from now on
53 void OnIdle( wxIdleEvent
&event
) {}
54 bool SendIdleEvents() {return 0;}
55 bool SendIdleEvents( wxWindow
* win
) {return 0;}
57 static bool Initialize() {return 0;}
58 static bool InitialzeVisual() {return 0;}
59 static void CleanUp() {}
61 bool ProcessIdle() {return 0;}
62 void DeletePendingObjects() {}
64 // This can be used to suppress the generation of Idle events.
65 void SuppressIdleEvents(bool arg
= TRUE
) { m_suppressIdleEvents
= arg
; }
66 bool GetSuppressIdleEvents() const { return m_suppressIdleEvents
; }
73 gint m_wakeUpTimerTag
;
75 unsigned char *m_colorCube
;
79 /// Set to TRUE while we are in wxYield().
80 bool m_suppressIdleEvents
;
83 DECLARE_DYNAMIC_CLASS(wxApp
)
87 int WXDLLEXPORT
wxEntry( int argc
, char *argv
[] );
89 #endif // __WX_APP_H__