X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/20123d495814b8b8543bf43fbd63aa7ec21e5d78..35d11700a5c88842e01e426a53d25ce1a3ecdffd:/include/wx/gtk/button.h?ds=sidebyside diff --git a/include/wx/gtk/button.h b/include/wx/gtk/button.h index e0d5e0d0ee..a395a617ca 100644 --- a/include/wx/gtk/button.h +++ b/include/wx/gtk/button.h @@ -10,10 +10,6 @@ #ifndef __GTKBUTTONH__ #define __GTKBUTTONH__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface -#endif - #include "wx/defs.h" #include "wx/object.h" #include "wx/list.h" @@ -29,7 +25,7 @@ class WXDLLIMPEXP_CORE wxButton; // global data //----------------------------------------------------------------------------- -extern WXDLLIMPEXP_CORE const wxChar *wxButtonNameStr; +extern WXDLLIMPEXP_CORE const wxChar wxButtonNameStr[]; //----------------------------------------------------------------------------- // wxButton @@ -65,7 +61,6 @@ public: // implementation // -------------- - void DoApplyWidgetStyle(GtkRcStyle *style); bool IsOwnGtkWindow( GdkWindow *window ); // Since this wxButton doesn't derive from wxButtonBase (why?) we need @@ -75,8 +70,12 @@ public: static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + // helper to allow access to protected member from GTK callback + void MoveWindow(int x, int y, int width, int height) { DoMoveWindow(x, y, width, height); } + protected: virtual wxSize DoGetBestSize() const; + void DoApplyWidgetStyle(GtkRcStyle *style); private: DECLARE_DYNAMIC_CLASS(wxButton)