X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12028905135250524409f1e7b9bfa9c55e5ce16b..9a63feff3a93d9d9dc36f155d3a5c3a36cb922f0:/include/wx/gtk1/gauge.h diff --git a/include/wx/gtk1/gauge.h b/include/wx/gtk1/gauge.h index f014fcf379..5ca47abcf6 100644 --- a/include/wx/gtk1/gauge.h +++ b/include/wx/gtk1/gauge.h @@ -75,6 +75,8 @@ public: int GetRange() const; int GetValue() const; + bool IsVertical() const { return HasFlag(wxGA_VERTICAL); } + // implementation // ------------- @@ -85,8 +87,8 @@ public: m_gaugePos; // obsolete functions, don't use -#ifdef WXWIN_COMPATIBILITY_2_2 - bool GetProgressBar() const { return TRUE; } +#if WXWIN_COMPATIBILITY_2_2 + bool GetProgressBar() const { return true; } #endif // WXWIN_COMPATIBILITY_2_2 protected: @@ -96,6 +98,8 @@ protected: // set the gauge value to the value of m_gaugePos void DoSetGauge(); + virtual wxSize DoGetBestSize() const; + private: DECLARE_DYNAMIC_CLASS(wxGauge) };