]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/button.h
maintaint the mouse capture stack in all ports, not just wxUniv
[wxWidgets.git] / include / wx / gtk / button.h
index af4fdac9ee02392f8af7f848758af0ff2b606b9f..c239f5b7a1f48b6db22e6987643277291cc7e0e8 100644 (file)
@@ -7,7 +7,6 @@
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-
 #ifndef __GTKBUTTONH__
 #define __GTKBUTTONH__
 
@@ -38,10 +37,7 @@ extern const wxChar *wxButtonNameStr;
 
 class wxButton: public wxControl
 {
-  DECLARE_DYNAMIC_CLASS(wxButton)
-
-  public:
-
+public:
     wxButton();
     inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
            const wxPoint& pos = wxDefaultPosition,
@@ -63,9 +59,16 @@ class wxButton: public wxControl
 
     static wxSize GetDefaultSize();
     
-  // implementation        
+    // implementation
+    // --------------
   
     void ApplyWidgetStyle();    
+    
+protected:
+    virtual wxSize DoGetBestSize() const;
+
+private:
+    DECLARE_DYNAMIC_CLASS(wxButton)
 };
 
 #endif // __GTKBUTTONH__