X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..5a9b59346b4de5c27d2fa595eaaac5b78dda0bcf:/include/wx/gtk1/gauge.h?ds=inline diff --git a/include/wx/gtk1/gauge.h b/include/wx/gtk1/gauge.h index c1d22c1a98..e00e65d934 100644 --- a/include/wx/gtk1/gauge.h +++ b/include/wx/gtk1/gauge.h @@ -11,7 +11,7 @@ #ifndef __GTKGAUGEH__ #define __GTKGAUGEH__ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface #endif @@ -75,18 +75,21 @@ public: int GetRange() const; int GetValue() const; + bool IsVertical() const { return HasFlag(wxGA_VERTICAL); } + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + // implementation // ------------- - void ApplyWidgetStyle(); - // the max and current gauge values int m_rangeMax, 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 +99,10 @@ protected: // set the gauge value to the value of m_gaugePos void DoSetGauge(); + virtual wxSize DoGetBestSize() const; + + virtual wxVisualAttributes GetDefaultAttributes() const; + private: DECLARE_DYNAMIC_CLASS(wxGauge) };