X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..99d82720737ebf91d3a387d53dd0cf6c8cf9a643:/include/wx/gtk/spinbutt.h diff --git a/include/wx/gtk/spinbutt.h b/include/wx/gtk/spinbutt.h index 7444e0732a..5449e2add7 100644 --- a/include/wx/gtk/spinbutt.h +++ b/include/wx/gtk/spinbutt.h @@ -18,7 +18,7 @@ class WXDLLIMPEXP_CORE wxSpinButton : public wxSpinButtonBase { public: - wxSpinButton() { } + wxSpinButton(); wxSpinButton(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, @@ -45,16 +45,19 @@ public: static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + virtual bool Enable( bool enable = true ); + // implementation void OnSize( wxSizeEvent &event ); - bool IsOwnGtkWindow( GdkWindow *window ); - - GtkAdjustment *m_adjust; - float m_oldPos; + int m_pos; protected: + void GtkDisableEvents() const; + void GtkEnableEvents() const; + virtual wxSize DoGetBestSize() const; + virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const; private: DECLARE_EVENT_TABLE()