#ifndef __GTKWINDOWH__
#define __GTKWINDOWH__
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface
#endif
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 );
// 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();
// see the docs in src/gtk/window.cpp
GtkWidget *m_widget; // mostly the widget seen by the rest of GTK
- GtkWidget *m_wxwindow; // mostly the client area as per wxWindows
+ GtkWidget *m_wxwindow; // mostly the client area as per wxWidgets
// 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
+ // XIM support for wxWidgets
GdkIC *m_ic;
GdkICAttr *m_icattr;
#endif
+#endif
#ifndef __WXGTK20__
// The area to be cleared (and not just refreshed)