X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc4025af9a663583878b02e30073e29205ae5d9f..e1aae5288576cd0066d2cbbf92935a969110bcea:/include/wx/x11/app.h diff --git a/include/wx/x11/app.h b/include/wx/x11/app.h index 4eab1ecb67..3621558b9f 100644 --- a/include/wx/x11/app.h +++ b/include/wx/x11/app.h @@ -55,6 +55,7 @@ public: virtual bool Pending(); virtual void Dispatch(); virtual bool Yield(bool onlyIfNeeded = FALSE); + virtual bool ProcessIdle(); virtual bool OnInitGui(); @@ -74,7 +75,9 @@ public: // Processes an X event. virtual bool ProcessXEvent(WXEvent* event); - virtual void OnAssert(const wxChar *file, int line, const wxChar *msg); +#ifdef __WXDEBUG__ + virtual void OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg); +#endif // __WXDEBUG__ protected: bool m_showOnInit; @@ -85,7 +88,6 @@ public: static void CleanUp(); void DeletePendingObjects(); - bool ProcessIdle(); WXWindow GetTopLevelWidget() const { return m_topLevelWidget; } WXColormap GetMainColormap(WXDisplay* display); @@ -99,6 +101,13 @@ public: const wxSize& GetInitialSize() const { return m_initialSize; } bool GetShowIconic() const { return m_showIconic; } +#if wxUSE_UNICODE + // Global context for Pango layout. Either use X11 + // or use Xft rendering according to GDK_USE_XFT + // environment variable + PangoContext* GetPangoContext(); +#endif + // We need this before creating the app static WXDisplay* GetDisplay() { return ms_display; } static WXDisplay* ms_display; @@ -107,7 +116,8 @@ public: static long sm_lastMessageTime; bool m_showIconic; wxSize m_initialSize; - + +#if !wxUSE_NANOX // Someone find a better place for these int m_visualType; // TrueColor, DirectColor etc. int m_visualDepth; @@ -125,6 +135,7 @@ public: int m_visualBluePrec; unsigned char *m_colorCube; +#endif protected: bool m_keepGoing;