]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/app.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 class 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 bool InitialzeVisual();
59 static void CleanUp();
63 void ProcessPendingEvents();
65 void DeletePendingObjects();
67 // This can be used to suppress the generation of Idle events.
68 void SuppressIdleEvents(bool arg
= TRUE
) { m_suppressIdleEvents
= arg
; }
69 bool GetSuppressIdleEvents() const { return m_suppressIdleEvents
; }
75 gint m_wakeUpTimerTag
;
77 unsigned char *m_colorCube
;
80 /// Set to TRUE while we are in wxYield().
81 bool m_suppressIdleEvents
;
83 DECLARE_DYNAMIC_CLASS(wxApp
)