X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/331a0b6b7aeb8b41d4ac27aeedbdca11b6f0b38e..b8e7b6738fe00529fdeae26e6cfea1ccc2a00a76:/include/wx/gtk1/window.h?ds=inline diff --git a/include/wx/gtk1/window.h b/include/wx/gtk1/window.h index 730e840c43..f5c690f5bc 100644 --- a/include/wx/gtk1/window.h +++ b/include/wx/gtk1/window.h @@ -11,7 +11,7 @@ #ifndef __GTKWINDOWH__ #define __GTKWINDOWH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface #endif @@ -69,7 +69,7 @@ public: virtual void Refresh( bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL ); virtual void Update(); - virtual void Clear(); + virtual void ClearBackground(); virtual bool SetBackgroundColour( const wxColour &colour ); virtual bool SetForegroundColour( const wxColour &colour ); @@ -157,6 +157,17 @@ public: // and sets m_widgetStyle to this value. GtkStyle *GetWidgetStyle(); +#ifdef __WXGTK20__ + // Returns the default context which usually is anti-aliased + PangoContext *GtkGetPangoDefaultContext(); + + // Returns the X11 context which renders on the X11 client + // side (which can be remote) and which usually is not + // anti-aliased and is thus faster + PangoContext *GtkGetPangoX11Context(); + PangoContext *m_x11Context; +#endif + // Called by SetFont() and SetXXXColour etc void SetWidgetStyle(); @@ -195,11 +206,15 @@ public: // this widget will be queried for GTK's focus events GtkWidget *m_focusWidget; +#ifdef __WXGTK20__ + GtkIMMulticontext *m_imContext; +#else #if HAVE_XIM // XIM support for wxWindows GdkIC *m_ic; GdkICAttr *m_icattr; #endif +#endif #ifndef __WXGTK20__ // The area to be cleared (and not just refreshed)