From: Vadim Zeitlin Date: Mon, 22 Sep 2003 12:28:25 +0000 (+0000) Subject: added IsVertical(); initialize members in ctor X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9446dc2642d344ec80ef559697178a803320f36b added IsVertical(); initialize members in ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gauge.h b/include/wx/gauge.h index 925cca91dd..17fbc5206e 100644 --- a/include/wx/gauge.h +++ b/include/wx/gauge.h @@ -31,7 +31,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr; class WXDLLEXPORT wxGaugeBase : public wxControl { public: - wxGaugeBase() { } + wxGaugeBase() { m_rangeMax = m_gaugePos = 0; } virtual ~wxGaugeBase(); bool Create(wxWindow *parent, @@ -51,8 +51,11 @@ public: virtual void SetValue(int pos); virtual int GetValue() const; - // appearance params (not implemented for most ports) + // simple accessors + bool IsVertical() const { return HasFlag(wxGA_VERTICAL); } + + // appearance params (not implemented for most ports) virtual void SetShadowWidth(int w); virtual int GetShadowWidth() const;