]>
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 license
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
21 #pragma implementation "gaugebase.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
38 // ============================================================================
40 // ============================================================================
42 // ----------------------------------------------------------------------------
44 // ----------------------------------------------------------------------------
46 bool wxGaugeBase::Create(wxWindow
*parent
,
52 const wxValidator
& validator
,
55 if ( !wxControl::Create(parent
, id
, pos
, size
, style
, validator
, name
) )
61 SetValidator(validator
);
62 #endif // wxUSE_VALIDATORS
70 // ----------------------------------------------------------------------------
71 // wxGauge range/position
72 // ----------------------------------------------------------------------------
74 void wxGaugeBase::SetRange(int range
)
79 int wxGaugeBase::GetRange() const
84 void wxGaugeBase::SetValue(int pos
)
89 int wxGaugeBase::GetValue() const
94 // ----------------------------------------------------------------------------
95 // wxGauge appearance params
96 // ----------------------------------------------------------------------------
98 void wxGaugeBase::SetShadowWidth(int WXUNUSED(w
))
102 int wxGaugeBase::GetShadowWidth() const
108 void wxGaugeBase::SetBezelFace(int WXUNUSED(w
))
112 int wxGaugeBase::GetBezelFace() const
117 #endif // wxUSE_GAUGE