]>
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "gaugebase.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
38 // ============================================================================
40 // ============================================================================
42 wxGaugeBase::~wxGaugeBase()
44 // this destructor is required for Darwin
47 // ----------------------------------------------------------------------------
49 // ----------------------------------------------------------------------------
51 bool wxGaugeBase::Create(wxWindow
*parent
,
57 const wxValidator
& validator
,
60 if ( !wxControl::Create(parent
, id
, pos
, size
, style
, validator
, name
) )
66 SetValidator(validator
);
67 #endif // wxUSE_VALIDATORS
75 // ----------------------------------------------------------------------------
76 // wxGauge range/position
77 // ----------------------------------------------------------------------------
79 void wxGaugeBase::SetRange(int range
)
84 int wxGaugeBase::GetRange() const
89 void wxGaugeBase::SetValue(int pos
)
94 int wxGaugeBase::GetValue() const
99 // ----------------------------------------------------------------------------
100 // wxGauge appearance params
101 // ----------------------------------------------------------------------------
103 void wxGaugeBase::SetShadowWidth(int WXUNUSED(w
))
107 int wxGaugeBase::GetShadowWidth() const
113 void wxGaugeBase::SetBezelFace(int WXUNUSED(w
))
117 int wxGaugeBase::GetBezelFace() const
122 #endif // wxUSE_GAUGE