]>
git.saurik.com Git - wxWidgets.git/blob - src/common/gaugecmn.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/gaugecmn.cpp
3 // Purpose: wxGaugeBase: common to all ports methods of wxGauge
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
9 // License: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
34 const wxChar wxGaugeNameStr
[] = wxT("gauge");
36 // ============================================================================
38 // ============================================================================
40 wxGaugeBase::~wxGaugeBase()
42 // this destructor is required for Darwin
45 // ----------------------------------------------------------------------------
47 // ----------------------------------------------------------------------------
49 bool wxGaugeBase::Create(wxWindow
*parent
,
55 const wxValidator
& validator
,
58 if ( !wxControl::Create(parent
, id
, pos
, size
, style
, validator
, name
) )
64 SetValidator(validator
);
65 #endif // wxUSE_VALIDATORS
73 // ----------------------------------------------------------------------------
74 // wxGauge range/position
75 // ----------------------------------------------------------------------------
77 void wxGaugeBase::SetRange(int range
)
82 int wxGaugeBase::GetRange() const
87 void wxGaugeBase::SetValue(int pos
)
92 int wxGaugeBase::GetValue() const
97 // ----------------------------------------------------------------------------
98 // wxGauge appearance params
99 // ----------------------------------------------------------------------------
101 void wxGaugeBase::SetShadowWidth(int WXUNUSED(w
))
105 int wxGaugeBase::GetShadowWidth() const
111 void wxGaugeBase::SetBezelFace(int WXUNUSED(w
))
115 int wxGaugeBase::GetBezelFace() const
120 #endif // wxUSE_GAUGE