#ifndef _WX_APP_H_
#define _WX_APP_H_
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "app.h"
#endif
virtual bool Initialized();
virtual bool Pending();
virtual void Dispatch();
+
+ virtual void Exit();
+
virtual bool Yield(bool onlyIfNeeded = FALSE);
- virtual bool ProcessIdle();
+ virtual void WakeUpIdle();
virtual bool OnInitGui();
// implementation from now on
// --------------------------
- void OnIdle(wxIdleEvent& event);
-
- // Send idle event to all top-level windows.
- // Returns TRUE if more idle time is requested.
- bool SendIdleEvents();
-
- // Send idle event to window and all subwindows
- // Returns TRUE if more idle time is requested.
- bool SendIdleEvents(wxWindow* win);
-
// Processes an X event.
virtual bool ProcessXEvent(WXEvent* event);
public:
// Implementation
- static bool Initialize();
- static void CleanUp();
-
- void DeletePendingObjects();
+ virtual bool Initialize(int& argc, wxChar **argv);
+ virtual void CleanUp();
WXWindow GetTopLevelWidget() const { return m_topLevelWidget; }
WXColormap GetMainColormap(WXDisplay* display);
DECLARE_EVENT_TABLE()
};
-int WXDLLEXPORT wxEntry( int argc, char *argv[] );
-
-#endif
-// _WX_APP_H_
+#endif // _WX_APP_H_