X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6cad4f1b21d36f629fc65259fcab11293e0a60cf..a3a28c50a1257048bab424cfbd1b6c733a94aa63:/include/wx/gtk/window.h diff --git a/include/wx/gtk/window.h b/include/wx/gtk/window.h index 104ed4e920..f5c690f5bc 100644 --- a/include/wx/gtk/window.h +++ b/include/wx/gtk/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(); @@ -172,6 +183,17 @@ public: // (i.e. in idle time, implemented in OnInternalIdle() ). void GtkUpdateSize() { m_sizeSet = FALSE; } + // fix up the mouse event coords, used by wxListBox only so far + virtual void FixUpMouseEvent(GtkWidget * WXUNUSED(widget), + wxCoord& WXUNUSED(x), + wxCoord& WXUNUSED(y)) { } + + // is this window transparent for the mouse events (as wxStaticBox is)? + virtual bool IsTransparentForMouse() const { return FALSE; } + + // is this a radiobutton (used by radiobutton code itself only)? + virtual bool IsRadioButton() const { return FALSE; } + // position and size of the window int m_x, m_y; int m_width, m_height; @@ -184,14 +206,21 @@ 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) + // We cannot make this distinction under GTK 2.0. wxRegion m_clearRegion; +#endif // scrolling stuff GtkAdjustment *m_hAdjust,*m_vAdjust; @@ -206,10 +235,6 @@ public: bool m_hasVMT:1; bool m_sizeSet:1; bool m_resizing:1; - bool m_isStaticBox:1; // faster than IS_KIND_OF - bool m_isRadioButton:1; // faster than IS_KIND_OF - bool m_isListBox:1; // faster than IS_KIND_OF - bool m_isFrame:1; // faster than IS_KIND_OF bool m_acceptsFocus:1; // true if not static bool m_hasFocus:1; // true if == FindFocus() bool m_isScrolling:1; // dragging scrollbar thumb? @@ -252,7 +277,8 @@ public: virtual void DoSetToolTip( wxToolTip *tip ); #endif // wxUSE_TOOLTIPS - // common part of all ctors (can't be virtual because called from ctor) +protected: + // common part of all ctors (not virtual because called from ctor) void Init(); private: