]>
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 // ============================================================================
36 // ============================================================================
38 wxGaugeBase::~wxGaugeBase()
40 // this destructor is required for Darwin
43 // ----------------------------------------------------------------------------
45 // ----------------------------------------------------------------------------
47 bool wxGaugeBase::Create(wxWindow
*parent
,
53 const wxValidator
& validator
,
56 if ( !wxControl::Create(parent
, id
, pos
, size
, style
, validator
, name
) )
62 SetValidator(validator
);
63 #endif // wxUSE_VALIDATORS
71 // ----------------------------------------------------------------------------
72 // wxGauge range/position
73 // ----------------------------------------------------------------------------
75 void wxGaugeBase::SetRange(int range
)
80 int wxGaugeBase::GetRange() const
85 void wxGaugeBase::SetValue(int pos
)
90 int wxGaugeBase::GetValue() const
95 // ----------------------------------------------------------------------------
96 // wxGauge appearance params
97 // ----------------------------------------------------------------------------
99 void wxGaugeBase::SetShadowWidth(int WXUNUSED(w
))
103 int wxGaugeBase::GetShadowWidth() const
109 void wxGaugeBase::SetBezelFace(int WXUNUSED(w
))
113 int wxGaugeBase::GetBezelFace() const
118 #endif // wxUSE_GAUGE